You could also adjust the nUI_ButtonBag.lua file to exculde button bag control of your addon's button.
This is the default code for the section that you could change to suit:
Code:
local ButtonBagConfig =
{
-- transient minimap buttons we want on the top row
TopRow =
{
["MiniMapMeetingStoneFrame"] = 1,
["MiniMapVoiceChatFrame"] = 1,
["MiniMapRecordingButton"] = 1,
},
-- buttons we want to force ignore of
Excludes =
{
["MiniMapMailFrame"] = 1,
["MiniMapBattlefieldFrame"] = 1,
["MinimapBackdrop"] = 1,
["MiniMapPing"] = 1,
["MiniMapCompassRing"] = 1,
["MinimapZoomIn"] = 1,
["MinimapZoomOut"] = 1,
["MiniMapTracking"] = 1,
["MiniMapWorldMapButton"] = 1,
["GatherMiniNoteUpdateFrame"] = 1,
["TimeManagerClockButton"] = 1,
["FishingBuddyMinimapMenuButton"] = 1,
},
-- buttons we want to force inclusion of
Includes =
{
["WIM_IconFrame"] = 1,
["CTMod2_MinimapButton"] = 1,
["PoisonerMinimapButton"] = 1,
["GameTimeFrame"] = 1,
["MobMapMinimapButtonFrame"] = 1,
["BaudGearMinimapButton"] = 1,
},
-- button name patterns to be excluded (mostly Minimap POI's)
ExcludePatterns =
{
[1] = "GatherNote.",
[2] = "CartographerNotes.",
[3] = "GatherMatePin.",
[4] = "FishingExtravaganza.",
[5] = "RecipeRadarMinimapIcon.",
},
-- for a table of unnamed buttons we have to locate by object instance
Unnamed =
{
},
-- fixed button sizes for buttons that misreport their width (for scaling)
ButtonSize =
{
["Enchantrix"] = 36,
["FeedbackUIButton"] = 31,
},
};
Come to think of it we could sort out the WIM animation problem by excluding that button as well. But anyways, I suspect including the respective variable in the exclude list you could get what you want.