View Single Post
08-07-14, 01:25 AM   #6
VikingP
A Deviate Faerie Dragon
Join Date: Aug 2014
Posts: 10
Thanks for the help so far, both tips worked fine.

So i made a code like this:
Lua Code:
  1. local function InstallMBF()
  2. MBFDB = {
  3.     ["profiles"] = {
  4.         ["Default"] = {
  5.             ["ButtonOverride"] = {
  6.                 [11] = "QueueStatusMinimapButton",
  7.             },
  8.             ["columns_or_rows"] = 4,
  9.             ["locked"] = true,
  10.             ["currentMinimapIcon"] = "QueueStatusMinimapButtonIcon",
  11.             ["mbfHidden"] = true,
  12.             ["GrowUp"] = false,
  13.             ["currentButtonOverride"] = "QueueStatusMinimapButton",
  14.             ["minimapButton"] = {
  15.                 ["minimapPos"] = 192.7577142010699,
  16.             },
  17.             ["mbfAnchor"] = "TOPLEFT",
  18.             ["MBF_FrameLocation"] = {
  19.                 "TOPLEFT", -- [1]
  20.                 nil, -- [2]
  21.                 -172.2963331240912, -- [3]
  22.                 -223.7184393402793, -- [4]
  23.             },
  24.             ["currentChild"] = "LibDBIcon10_KLE",
  25.             ["colorLocked"] = "All",
  26.             ["MinimapIcons"] = {
  27.                 [14] = "Compass",
  28.                 [17] = "ArchyMinimap",
  29.                 [18] = "QueueStatusMinimapButtonIcon",
  30.             },
  31.             ["currentTexture"] = "simple Square",
  32.             ["customChildren"] = {
  33.                 "MinimapButtonFrameDragButton", -- [1]
  34.                 "MiniMapMailFrameDisabled", -- [2]
  35.                 "LibDBIcon10_MrPlowLDB", -- [3]
  36.                 "LibDBIcon10_Bartender4", -- [4]
  37.                 "DBMMinimapButton", -- [5]
  38.                 "LibDBIcon10_PitBull4", -- [6]
  39.                 "LibDBIcon10_Broker_Auditor", -- [7]
  40.                 "LibDBIcon10_TravelAgent", -- [8]
  41.                 "LibDBIcon10_Omen", -- [9]
  42.                 "LibDBIcon10_Skada", -- [10]
  43.                 "tdpsButtonFrame", -- [11]
  44.                 "LibDBIcon10_DXE", -- [12]
  45.                 "LibDBIcon10_Broker_Portals", -- [13]
  46.                 "ZygorGuidesViewerMapIcon", -- [14]
  47.                 "LibDBIcon10_BugSack", -- [15]
  48.                 "FuBarPluginAtlasLootFuFrameMinimapButton", -- [16]
  49.                 "OutfitterMinimapButton", -- [17]
  50.                 "VuhDoMinimapButton", -- [18]
  51.                 "LibDBIcon10_MorgDKP2", -- [19]
  52.                 "MageNug_MinimapFrame", -- [20]
  53.                 "LibDBIcon10_Broker_Calendar", -- [21]
  54.                 "BT_Minimapbtn", -- [22]
  55.                 "FuBarPluginBig BrotherFrameMinimapButton", -- [23]
  56.                 "LibDBIcon10_ElkGuild", -- [24]
  57.                 "RA_MinimapButton", -- [25]
  58.                 "Minimalist_Map", -- [26]
  59.                 "LibDBIcon10_WoWProIcon", -- [27]
  60.                 "LibDBIcon10_AtlasLoot", -- [28]
  61.                 "LibDBIcon10_ArchyLDB", -- [29]
  62.                 "ArchyMinimap_POI1", -- [30]
  63.                 "ArchyMinimap_POI2", -- [31]
  64.                 "ArchyMinimap_POI3", -- [32]
  65.                 "ArchyMinimap_POI4", -- [33]
  66.                 "ArchyMinimap_POI5", -- [34]
  67.                 "ArchyMinimap_POI6", -- [35]
  68.                 "ArchyMinimap_POI7", -- [36]
  69.                 "ArchyMinimap_POI8", -- [37]
  70.                 "ArchyMinimap_POI9", -- [38]
  71.                 "ArchyMinimap_POI10", -- [39]
  72.                 "ArchyMinimap_POI11", -- [40]
  73.                 "ArchyMinimap_POI12", -- [41]
  74.                 "ArchyMinimap_POI13", -- [42]
  75.                 "ArchyMinimap_POI14", -- [43]
  76.                 "PS_MinimapButton", -- [44]
  77.                 "RBSMinimapButton", -- [45]
  78.                 "LibDBIcon10_BigWigs", -- [46]
  79.                 "kgPanel7", -- [47]
  80.                 "TenTonHammer_MinimapButton", -- [48]
  81.                 "LibDBIcon10_KLE", -- [49]
  82.                 "Compass", -- [50]
  83.                 "LibDBIcon10_MBF", -- [51]
  84.                 "LibDBIcon10_Archy", -- [52]
  85.                 "LibDBIcon10_TradeSkillMaster", -- [53]
  86.                 "bUnitFrames_MinimapButton", -- [54]
  87.                 "LibDBIcon10_Masque", -- [55]
  88.                 "QueueStatusMinimapButton", -- [56]
  89.                 "HealBot_ButtonFrame", -- [57]
  90.                 "MMHolder", -- [58]
  91.                 "LeftMiniPanel", -- [59]
  92.                 "RightMiniPanel", -- [60]
  93.             },
  94.             ["padding"] = 3,
  95.         },
  96.     },
  97. }  
  98. ReloadUI()
  99. end
  100.  
  101. local function Decline()
  102.     print('|cffff6000Minimap Button Frame:|r Settings not initialized, you can do so later with /settingsmbf')
  103. end
  104.  
  105. StaticPopupDialogs.INSTALL_MBF = {
  106.     text = "Setup MBF",
  107.     button1 = ACCEPT,
  108.     button2 = CANCEL,
  109.     OnAccept = InstallMBF,
  110.     OnCancel = Decline,
  111.     timeout = 0,
  112.     whileDead = 1,
  113.     hideOnEscape = false,
  114.     preferredIndex = 5,
  115. }
  116.  
  117. SLASH_CONFIGURE1 = "/settingsmbf"
  118. 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?

Last edited by VikingP : 08-07-14 at 01:30 AM.
  Reply With Quote