Thread Tools Display Modes
08-21-09, 04:37 AM   #1
Bomyne
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 123
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).
 
08-21-09, 05:45 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
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.
__________________
 
08-21-09, 05:48 AM   #3
Vis
A Pyroguard Emberseer
 
Vis's Avatar
Join Date: Mar 2009
Posts: 1,827
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,
	},
 
08-21-09, 05:51 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Beat Ya :P

But only by a few minutes
__________________
 
08-21-09, 05:52 AM   #5
Seer
A Molten Giant
Join Date: Dec 2007
Posts: 649
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..
__________________
Take it as you want or leave it as it is.
 
08-21-09, 05:53 AM   #6
Vis
A Pyroguard Emberseer
 
Vis's Avatar
Join Date: Mar 2009
Posts: 1,827
Originally Posted by Xrystal View Post
Beat Ya :P

But only by a few minutes
LOL! It's only because you knew were to look, I had to find it
 
08-21-09, 06:26 AM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Originally Posted by Vis View Post
LOL! It's only because you knew were to look, I had to find it
Rofl, .. erm .. maybe
__________________
 
08-21-09, 07:07 AM   #8
Bomyne
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 123
Thanks guys! You're awesome! :P
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Suggestion Box » Request: Ignore certain minimap icons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off