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
    Professional 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,675
    Likes Received:
    865
    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
    Professional 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 Wiki Moderator Stratics Veteran Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,469
    Likes Received:
    361
    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,675
    Likes Received:
    865
    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
    Professional 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,675
    Likes Received:
    865
    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:
    370
    Likes Received:
    723
  9. Storm

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

    Joined:
    Mar 18, 2004
    Messages:
    7,469
    Likes Received:
    361
  10. Storm

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

    Joined:
    Mar 18, 2004
    Messages:
    7,469
    Likes Received:
    361
    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,675
    Likes Received:
    865
    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:
    7,936
    Likes Received:
    3,588
    I hope so Pinco :)
     
  13. DJAd

    DJAd Stratics Legend
    Stratics Veteran

    Joined:
    Aug 17, 2007
    Messages:
    7,936
    Likes Received:
    3,588
    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.
  • About Us

    Stratics is the oldest continually running MMORPG Fansite on the Internet. Founded in 1997 Stratics has served the Ultima Online Community for 18 years. We strive to provide the most complete social experience for Ultima Online players.
  • Subscribe Now!

    Want to provide Continual Support? Subscribe and gain additional benefits as a patron of Stratics.com!
    Subscribe Now!

    Stratics Professional Accounts feature the following advantages:

    • Ad-Free Browsing of our Forums
    • Upload a custom Profile Cover
    • Unlimited media upload storage space
    • Use of the theme styler
    • Ability to collapse the sidebar
    • Premium background themes to choose from
    • Access to additional features of the Classifieds System
    • Ability to Customize Your User Title
    • No Post Delays
    • Additional Signature Allowances:
    • Special Professional Banner Display with your Account
    • PM Allowance Upgrade
    • Additional Thread Allowances
  • Support Us!

    Don't feel like subscribing? Donations to benefit the further development of Stratics and for purchase and inclusion of additional features are always welcome.

    Donate to us!