Thanks for the help so far, both tips worked fine.
So i made a code like this:
Lua Code:
local function InstallMBF()
MBFDB = {
["profiles"] = {
["Default"] = {
["ButtonOverride"] = {
[11] = "QueueStatusMinimapButton",
},
["columns_or_rows"] = 4,
["locked"] = true,
["currentMinimapIcon"] = "QueueStatusMinimapButtonIcon",
["mbfHidden"] = true,
["GrowUp"] = false,
["currentButtonOverride"] = "QueueStatusMinimapButton",
["minimapButton"] = {
["minimapPos"] = 192.7577142010699,
},
["mbfAnchor"] = "TOPLEFT",
["MBF_FrameLocation"] = {
"TOPLEFT", -- [1]
nil, -- [2]
-172.2963331240912, -- [3]
-223.7184393402793, -- [4]
},
["currentChild"] = "LibDBIcon10_KLE",
["colorLocked"] = "All",
["MinimapIcons"] = {
[14] = "Compass",
[17] = "ArchyMinimap",
[18] = "QueueStatusMinimapButtonIcon",
},
["currentTexture"] = "simple Square",
["customChildren"] = {
"MinimapButtonFrameDragButton", -- [1]
"MiniMapMailFrameDisabled", -- [2]
"LibDBIcon10_MrPlowLDB", -- [3]
"LibDBIcon10_Bartender4", -- [4]
"DBMMinimapButton", -- [5]
"LibDBIcon10_PitBull4", -- [6]
"LibDBIcon10_Broker_Auditor", -- [7]
"LibDBIcon10_TravelAgent", -- [8]
"LibDBIcon10_Omen", -- [9]
"LibDBIcon10_Skada", -- [10]
"tdpsButtonFrame", -- [11]
"LibDBIcon10_DXE", -- [12]
"LibDBIcon10_Broker_Portals", -- [13]
"ZygorGuidesViewerMapIcon", -- [14]
"LibDBIcon10_BugSack", -- [15]
"FuBarPluginAtlasLootFuFrameMinimapButton", -- [16]
"OutfitterMinimapButton", -- [17]
"VuhDoMinimapButton", -- [18]
"LibDBIcon10_MorgDKP2", -- [19]
"MageNug_MinimapFrame", -- [20]
"LibDBIcon10_Broker_Calendar", -- [21]
"BT_Minimapbtn", -- [22]
"FuBarPluginBig BrotherFrameMinimapButton", -- [23]
"LibDBIcon10_ElkGuild", -- [24]
"RA_MinimapButton", -- [25]
"Minimalist_Map", -- [26]
"LibDBIcon10_WoWProIcon", -- [27]
"LibDBIcon10_AtlasLoot", -- [28]
"LibDBIcon10_ArchyLDB", -- [29]
"ArchyMinimap_POI1", -- [30]
"ArchyMinimap_POI2", -- [31]
"ArchyMinimap_POI3", -- [32]
"ArchyMinimap_POI4", -- [33]
"ArchyMinimap_POI5", -- [34]
"ArchyMinimap_POI6", -- [35]
"ArchyMinimap_POI7", -- [36]
"ArchyMinimap_POI8", -- [37]
"ArchyMinimap_POI9", -- [38]
"ArchyMinimap_POI10", -- [39]
"ArchyMinimap_POI11", -- [40]
"ArchyMinimap_POI12", -- [41]
"ArchyMinimap_POI13", -- [42]
"ArchyMinimap_POI14", -- [43]
"PS_MinimapButton", -- [44]
"RBSMinimapButton", -- [45]
"LibDBIcon10_BigWigs", -- [46]
"kgPanel7", -- [47]
"TenTonHammer_MinimapButton", -- [48]
"LibDBIcon10_KLE", -- [49]
"Compass", -- [50]
"LibDBIcon10_MBF", -- [51]
"LibDBIcon10_Archy", -- [52]
"LibDBIcon10_TradeSkillMaster", -- [53]
"bUnitFrames_MinimapButton", -- [54]
"LibDBIcon10_Masque", -- [55]
"QueueStatusMinimapButton", -- [56]
"HealBot_ButtonFrame", -- [57]
"MMHolder", -- [58]
"LeftMiniPanel", -- [59]
"RightMiniPanel", -- [60]
},
["padding"] = 3,
},
},
}
ReloadUI()
end
local function Decline()
print('|cffff6000Minimap Button Frame:|r Settings not initialized, you can do so later with /settingsmbf')
end
StaticPopupDialogs.INSTALL_MBF = {
text = "Setup MBF",
button1 = ACCEPT,
button2 = CANCEL,
OnAccept = InstallMBF,
OnCancel = Decline,
timeout = 0,
whileDead = 1,
hideOnEscape = false,
preferredIndex = 5,
}
SLASH_CONFIGURE1 = "/settingsmbf"
SlashCmdList.CONFIGURE = function() StaticPopup_Show("INSTALL_MBF") end
And that works just fine. I also made one for Bartender. But bartender have default profile set to username. Is there a way i can make it switch to the profile i created (default)?
I also did ran into another problem with Masque. Toc says it's MasqueDB and the savedvariable also confirms this, but using the same as above (with MasqueDB = { ) doesn't work. Any tip?