PetJournal Enhanced

93 - Enh: Display filtered count

Enhancement request:

Would really like a small counter display showing the number of pets in the current filtered list.

So for example, if I wanted to see how many level 25 pets I have, I could filter by level == 25 and then read the counter. Similarly for any other criteria the user chooses to filter on. The Blizzard statistics for Pets are basically non-existent, so this could go a long way towards providing useful stat info (without manual counting).

User When Change
Nullberri Jun 22, 2013 at 22:06 UTC Changed status from New to Accepted
oscarucb Jun 22, 2013 at 21:54 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of oscarucb oscarucb Aug 04, 2013 at 12:09 UTC - 0 likes

    I wrote a quick implementation for modules/Sorting.lua (just call it at the end of Sorting:SortPets()):

            local function UpdateCount() -- oscarucb
                    if not Sorting.countframe then
                            local frame = CreateFrame("frame","PJESortedPetCount",PetJournal,"InsetFrameTemplate3")
                            Sorting.countframe = frame
                            frame:ClearAllPoints()
                            frame:SetPoint("TOPLEFT",PetJournal,200,-42)
                            frame:SetSize(80,18)
                            frame.staticText = frame:CreateFontString(nil,"ARTWORK","GameFontNormalSmall")
                            frame.listCount = frame:CreateFontString(nil,"ARTWORK","GameFontHighlightSmall")
                            frame.staticText:SetPoint("LEFT",frame,10,0)
                            frame.staticText:SetText("Listed")
    
                            frame.listCount:SetPoint("RIGHT",frame,-10,0)
                            frame.listCount:SetText("0")
                    end
                    Sorting.countframe.listCount:SetText(Sorting:GetNumPets())
            end
    
  • Avatar of Nullberri Nullberri Jun 22, 2013 at 22:06 UTC - 0 likes

    Sure. Ill add it as an option to display in parentheses before the current total count.

  • 2 comments

Facts

Last updated
Mar 23, 2015
Reported
Jun 22, 2013
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees