1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

PATCH: Multiple filters in Mobiles/Enhancepack

Discussion in 'Pinco's UI' started by kongomongo, Oct 1, 2012.

  1. kongomongo

    kongomongo Lore Master
    Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
    Hi there,

    Just wanna say that I totally love Pinco's UI.

    Something that (in my eyes) is missing from it though is the possibility to filter mobiles/items with multiple names. For example in bedlam I want to focus on the named monsters (Red Death, Master xxx, Sir yyy, Lady zzz).

    So I changed the 2 locations in Pinco's UI to be able to set a filter "red|master|sir|lady" and it will only show me those. Much easier for provo AND looting.

    I used the pipe symbol as this is what's used in regular expressions for alternatives and I think its quite easy to pick up.

    Changed in EnhancePack.CreateObjectHandles:
    Code:
                if (ObjectHandleToggleWindow.CurrentFilter ~= "" and name and name ~= "" and name ~= L"") then
                    local matchesFilter = false
                    for filtrs in wstring.gmatch(ObjectHandleToggleWindow.CurrentFilter, L"[^|]+") do
                        if wstring.find(wstring.lower(name), wstring.lower(filtrs)) then
                            matchesFilter = true
                        end
                    end
     
                    if not matchesFilter then
                        UnregisterWindowData(WindowData.ObjectInfo.Type, objectId)
                        continue
                    end
                end
    
    Changed in MobilesOnScreen.UpdateAnchors :
    Code:
            if (MobilesOnScreen.STRFilter ~= "") then -- filter
                local matchesFilter = false
               
                for filtrs in wstring.gmatch(MobilesOnScreen.STRFilter, L"[^|]+") do
                    if wstring.find(wstring.lower(data.MobName), wstring.lower(filtrs)) then
                        matchesFilter = true
                    end
                end
     
                if not matchesFilter then
                    MobilesOnScreen.RemoveHealthBar(mobileId)
                    continue
                end
            end
    
    Possible optimization would be if matchesFilter = true, then skip rest of for loop altogether, but I don't know Lua at all and dont know how one would do that. (jumps? break?)

    Pinco: If you like the change please include it in your UI (this bit is public domain). That would be most awesome!
     
    Storm likes this.
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,682
    Likes Received:
    867
    I had this request time ago, but I still on strike for lack of improvements on the client, so the UI will still in maintenance mode without additions :|
     
  3. kongomongo

    kongomongo Lore Master
    Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
    You mean you are protesting against EA for not fixing the EC?
     
  4. Storm

    Storm UO Forum Moderator
    Moderator Professional Premium Stratics Veteran Wiki Moderator Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,476
    Likes Received:
    365
    I believe its the fact EC is still in beta, The fact they have not made much if any fixes/improvements additions or much of anything for that matter to make the EC live up to its potential!
    Not to put words in pinco's mouth
    But this is many peoples complaint at the moment
     
  5. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,682
    Likes Received:
    867
    the EC project is drifting, you can see more improvements by watching a plant growing in a day than EC in 5 years...
     
  6. kongomongo

    kongomongo Lore Master
    Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
    Hmm I agree. Is there a place where we all can send emails about the bugs so that they get a lot of feedback?
     
  7. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,682
    Likes Received:
    867
    try to send a letter to santa, probably he could do something that ea cannot :p
     
  8. Bleak

    Bleak UO Software Engineer
    VIP Stratics Veteran

    Joined:
    Feb 18, 2010
    Messages:
    403
    Likes Received:
    826
    If it is specific detailed client features then sbrown@ea.com and I will make sure Santa gets them.
    The "Bug Tracking" section on Stratics is checked often as well.
     
  9. Storm

    Storm UO Forum Moderator
    Moderator Professional Premium Stratics Veteran Wiki Moderator Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,476
    Likes Received:
    365
  10. Storm

    Storm UO Forum Moderator
    Moderator Professional Premium Stratics Veteran Wiki Moderator Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,476
    Likes Received:
    365
    Responses like this are not helpful at all.
    I realize you feel like you have been ignored, The EC has been getting attention of late and we just received more features to add to what modders like yourself can achieve. You have done more than most for this community. And there is not a single person in the EC community who does not appreciate this.
    But please try to help us maintain a positive community

    Thank you, Storm EC Forum Moderator
     
  11. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,682
    Likes Received:
    867
    the meaning was that maybe you may see something under the xmas tree :p
    besides now you can't consider every joke an insult :D
     
  12. DJAd

    DJAd Stratics Legend
    Stratics Veteran

    Joined:
    Aug 17, 2007
    Messages:
    8,126
    Likes Received:
    3,804
    I hope so Pinco :)
     
  13. DJAd

    DJAd Stratics Legend
    Stratics Veteran

    Joined:
    Aug 17, 2007
    Messages:
    8,126
    Likes Received:
    3,804
    kongomongo this looks like a great addition but how do I add this? It would be cool with the mobiles list, if the nearest enemy could be shown at the top of the list. Is this something that could be implemented?
     
    Storm likes this.