WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Suggestion Box (https://www.wowinterface.com/forums/forumdisplay.php?f=91)
-   -   Request: Ignore certain minimap icons (https://www.wowinterface.com/forums/showthread.php?t=26690)

Bomyne 08-21-09 04:37 AM

Request: Ignore certain minimap icons
 
I would like to request a feature to ignore and not automatically manage certain minimap items.

For the most part, I love the button bin feature of nUI. It's awesome. But there are a couple of buttons that I want to hover around the minimap (which is in it's default Blizzard location for me).

Xrystal 08-21-09 05:45 AM

You can do this by editing the lua files.

If you look in the WTF nui.lua file you will see a section similar to this :

Code:

        ["ButtonBag"] = {
                ["FuBarPluginHeadCount v.1.6.0FrameMinimapButton"] = "autodetected and moved button",
                ["GuildOrg_Toggle"] = "does not appear to be a button",
                ["MinimapBackdrop"] = "skipped forced ignore button",
                ["MiniMapRecordingButton"] = "does not appear to be a button",
                ["LibDBIcon10_Omen"] = "autodetected and moved button",
                ["LibDBIcon10_Skada"] = "autodetected and moved button",
                ["MinimapPing"] = "does not appear to be a button",
                ["OutfitterMinimapButton"] = "autodetected and moved button",
                ["AtlasButtonFrame"] = "does not appear to be a button",
                ["AtlasButton"] = "autodetected and moved button",
                ["MiniMapVoiceChatFrame"] = "autodetected and moved button",
                ["LibDBIcon10_BugSack"] = "autodetected and moved button",
                ["MiniMapMeetingStoneFrame"] = "autodetected and moved button",
                ["WIM3MinimapButton"] = "autodetected and moved button",
                ["MinimapZoomIn"] = "skipped forced ignore button",
                ["MiniMapMailFrame"] = "skipped forced ignore button",
                ["FuBarPluginAtlasLootFuFrameMinimapButton"] = "autodetected and moved button",
                ["MiniMapWorldMapButton"] = "skipped forced ignore button",
                ["MiniMapTracking"] = "skipped forced ignore button",
                ["GameTimeFrame"] = "moved forced include button",
                ["AltoholicMinimapButton"] = "autodetected and moved button",
                ["GuildOrg_ToggleButton"] = "autodetected and moved button",
                ["MinimapZoomOut"] = "skipped forced ignore button",
                ["LibDBIcon10_Broker_BonusScanner"] = "autodetected and moved button",
                ["MiniMapBattlefieldFrame"] = "skipped forced ignore button",
                ["DBMMinimapButton"] = "autodetected and moved button",
                ["HealBot_ButtonFrame"] = "does not appear to be a button",
                ["HealBot_MMButton"] = "autodetected and moved button",
                ["LibDBIcon10_SpellAlerter"] = "autodetected and moved button",
                ["LibDBIcon10_Decursive"] = "autodetected and moved button",
        },

Look through that list and see if you can identify the minimap button name that was autodetected and moved and note it down somewhere.

Then in the folder nUI\Plugins you will find nui_buttonbag.lua file. Open that and look for the section as follows :

Code:

        Excludes =
        {               
                ["MiniMapMailFrame"] = true,
                ["MiniMapBattlefieldFrame"] = true,
                ["MinimapBackdrop"] = true,
                ["MiniMapPing"] = true,
                ["MiniMapCompassRing"] = true,
                ["MinimapZoomIn"] = true,
                ["MinimapZoomOut"] = true,
                ["MiniMapTracking"] = true,
                ["MiniMapWorldMapButton"] = true,
                ["GatherMiniNoteUpdateFrame"] = true,
                ["TimeManagerClockButton"] = true,
                ["FishingBuddyMinimapMenuButton"] = true,
                ["PoisonerMinimapButton"] = true,
                ["GameTimeFrame"] = false,
        },

Simply add the button to this list and add it to this list and set it to true to force exclusion. Reload the UI or relog and you should see the button permanently on the map.

Vis 08-21-09 05:48 AM

You can manually edit the lua file associated with the ButtonBag to exclude specific addons. I believe you have to know the name of the minimap button that you want to exclude though. Someone else will likely know how to get the name of the Buttons for you :)

The file you need to edit is in: \nUI\Plugins\nUI_ButtonBag.lua

The exclusion code starts around line 115 and looks like this:

Code:

        -- buttons we want to force ignore of
       
        Excludes =
        {               
                ["MiniMapMailFrame"] = true,
                ["MiniMapBattlefieldFrame"] = true,
                ["MinimapBackdrop"] = true,
                ["MiniMapPing"] = true,
                ["MiniMapCompassRing"] = true,
                ["MinimapZoomIn"] = true,
                ["MinimapZoomOut"] = true,
                ["MiniMapTracking"] = true,
                ["MiniMapWorldMapButton"] = true,
                ["GatherMiniNoteUpdateFrame"] = true,
                ["TimeManagerClockButton"] = true,
                ["FishingBuddyMinimapMenuButton"] = true,
                ["PoisonerMinimapButton"] = true,
                ["GameTimeFrame"] = false,
        },       
       
        -- buttons we want to force inclusion of
       
        Includes =
        {               
                ["WIM_IconFrame"] = true,
                ["CTMod2_MinimapButton"] = true,
                ["PoisonerMinimapButton"] = true,
                ["GameTimeFrame"] = true,
                ["MobMapMinimapButtonFrame"] = true,
                ["BaudGearMinimapButton"] = true,
        },


Xrystal 08-21-09 05:51 AM

Beat Ya :P

But only by a few minutes :D

Seer 08-21-09 05:52 AM

That's allready possible I think, tho you'll have to edit the nui lua files yourself.

I'll try to look up the files that you need to edit when I get home, or someone else will butt in and tell you the needed files.

/edit never mind... Should teach me to press submi and not forget..

Vis 08-21-09 05:53 AM

Quote:

Originally Posted by Xrystal (Post 154966)
Beat Ya :P

But only by a few minutes :D

LOL! It's only because you knew were to look, I had to find it :D

Xrystal 08-21-09 06:26 AM

Quote:

Originally Posted by Vis (Post 154968)
LOL! It's only because you knew were to look, I had to find it :D

Rofl, .. erm .. maybe :D :banana:

Bomyne 08-21-09 07:07 AM

Thanks guys! You're awesome! :P:banana:


All times are GMT -6. The time now is 03:11 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI