A Rage Talon Dragon Guard
Join Date: Aug 2009
Posts: 325
|
Am I doing this correctly or am I missing a step?
Core:
Lua Code:
local BasicUI = LibStub("AceAddon-3.0"):NewAddon("BasicUI") -- Media -- local BASIC_BORDER = [[Interface\Tooltips\UI-Tooltip-Border]] local BASIC_BACKGROUND = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]] local BASIC_STATUSBAR = [[Interface\TargetingFrame\UI-StatusBar]] local BASIC_BORDERPANEL = [[Interface\AddOns\BasicUI\Media\UI-DialogBox-Border.blp]] SlashCmdList['RELOADUI'] = function() ReloadUI() end SLASH_RELOADUI1 = '/rl' local defaults = { profile = { ModuleEnabledState = { ["*"] = true }, fontNormal = [[Interface\Addons\BasicUI\Media\NORMAL.ttf]], fontBold = [[Interface\Addons\BasicUI\Media\BOLD.ttf]], fontItalic = [[Interface\Addons\BasicUI\Media\ITALIC.ttf]], fontBoldItalic = [[Interface\Addons\BasicUI\Media\BOLDITALIC.ttf]], fontNumber = [[Interface\Addons\BasicUI\Media\NUMBER.ttf]], fontSize = 15, classcolor = true, actionbar = { showHotKeys = false, showMacronames = false, auraborder = false, -- Button Colors color = { enable = true, OutOfRange = { r = 0.9, g = 0, b = 0 }, OutOfMana = { r = 0, g = 0, b = 0.9 }, NotUsable = { r = 0.3, g = 0.3, b = 0.3 }, }, }, buff = { scale = 1.19, }, castbar = { border = BASIC_BORDER, background = BASIC_BACKGROUND, statusbar = BASIC_STATUSBAR, CastingBarFrame = { enable = true, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "BOTTOM", relAnchor = "BOTTOM", offSetX = 0, offSetY = 175, }, TargetFrameSpellBar = { enable = false, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -250, }, FocusFrameSpellBar = { enable = true, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -165, }, MirrorTimer1 = { enable = true, fontSize = 18, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -75, }, PetCastingBarFrame = { enable = true, fontSize = 18, textPosition = "CENTER", enableTimer = true, selfAnchor = "BOTTOM", relAnchor = "BOTTOM", offSetX = 0, offSetY = 200, }, }, chat = { disableFade = false, chatOutline = false, windowborder = false, enableborder = false, -- Chat Media border = BASIC_BORDER, background = BASIC_BACKGROUND, editboxborder = BASIC_BORDER, editboxbackground = BASIC_BACKGROUND, sound = [[Interface\Addons\BasicUI\Media\Whisper.mp3]], enableBottomButton = true, enableHyperlinkTooltip = true, enableBorderColoring = true, tab = { fontSize = 15, fontOutline = true, normalColor = {r = 1, g = 1, b = 1}, specialColor = {r = 1, g = 0, b = 1}, selectedColor = {r = 0, g = 0.75, b = 1}, }, }, datapanel = { enable = true, battleground = true, -- enable 3 stats in battleground only that replace stat1,stat2,stat3. bag = false, -- True = Open Backpack; False = Open All bags -- nData Media border = BASIC_BORDERPANEL, -- Border for Datapanel ( Choose either Datapanel or Neav for border choice) background = BASIC_BACKGROUND, -- Background for Datapanel -- Color Datatext color = true, -- Enable Datatext Coloring customcolor = { r = 1, g = 1, b = 1}, -- Color of Text for Datapanel classcolor = true, -- Enable Classcolor for Text panel = "bottom", -- 3 Choices for panel placement = "top", "bottom", or "shortbar". Shortbar is to match nMainbar shortbar. armor = 0, -- show your armor value against the level mob you are currently targeting. avd = 0, -- show your current avoidance against the level of the mob your targeting bags = 9, -- show space used in bags on panel. haste = 0, -- show your haste rating on panels. system = 0, -- show total memory and others systems info (FPS/MS) on panel. guild = 4, -- show number on guildmate connected on panel. dur = 8, -- show your equipment durability on panel. friends = 6, -- show number of friends connected. dps_text = 0, -- show a dps meter on panel. hps_text = 0, -- show a heal meter on panel. spec = 5, -- show your current spec on panel. coords = 0, -- show your current coords on panel. pro = 7, -- shows your professions and tradeskills stat1 = 1, -- Stat Based on your Role (Avoidance-Tank, AP-Melee, SP/HP-Caster) stat2 = 3, -- Stat Based on your Role (Armor-Tank, Crit-Melee, Crit-Caster) recount = 2, -- Stat Based on Recount"s DPS recountraiddps = false, -- Enables tracking or Recounts Raid DPS calltoarms = 0, -- Show Current Call to Arms. }, -- Merchant Options merchant = { sellMisc = true, -- allows the user to add spacific items to sell at merchant (please see the local filter in merchant.lua) autoSellGrey = true, -- autosell grey items at merchant. autoRepair = true, -- autorepair at merchant. gpay = false, -- let your guild pay for your repairs if they allow. }, minimap = { enable = true, gameclock = true, farm = false, farmscale = 1.5, }, nameplates = { enableTankMode = true, -- Color the nameplate threat border green, if you have no aggro colorNameWithThreat = true, -- The name has the same color as the threat of the unit (better visibility) showFullHP = true, showLevel = true, showTargetBorder = true, showEliteBorder = true, showTotemIcon = true, abbrevLongNames = true, }, -- Quest Options quest = { enable = true, -- enable quest module. autocomplete = false, -- enable the autoaccept quest and autocomplete quest if no reward. }, vendor = { enable = true, }, vellum = { enable = true, }, -- Tooltip tooltip = { fontSize = 15, fontOutline = true, disableFade = false, -- Can cause errors or a buggy tooltip! abbrevRealmNames = true, border = BASIC_BORDER, background = BASIC_BACKGROUND, statusbar = BASIC_STATUSBAR, hideInCombat = false, -- Hide unit frame tooltips during combat hideRealmText = true, -- Hide the coalesced/interactive realm text reactionBorderColor = true, itemqualityBorderColor = true, showPlayerTitles = true, showPVPIcons = false, -- Show pvp icons instead of just a prefix showMouseoverTarget = true, showOnMouseover = false, showUnitRole = true, showItemLevel = true, showSpecializationIcon = false, position = { selfAnchor = "BOTTOM", relAnchor = "BOTTOM", offSetX = 0, offSetY = 200, }, healthbar = { showHealthValue = true, showOutline = true, healthFormat = '$cur / $max', -- Possible: $cur, $max, $deficit, $perc, $smartperc, $smartcolorperc, $colorperc healthFullFormat = '$cur', -- if the tooltip unit has 100% hp textPos = "CENTER", -- Possible "TOP" "BOTTOM" "CENTER" reactionColoring = false, custom = { apply = false, color = { r = 1, g = 1, b = 0}, }, fontSize = 15, }, }, -- Unitframes unitframes = { player = { enable = true, -- Enable Player Frame Adjustments scale = 1.15, -- Player Frame Scale fontSize = 13, -- Stausbar Font Size fontSizepet = 10, -- Stausbar Font Size }, target = { enable = true, -- Enable Target Frame Adjustments scale = 1.15, -- Target Frame Scale fontSize = 13, -- Stausbar Font Size }, focus = { enable = true, -- Enable Focus Frame Adjustments scale = 1.15, -- Focus Frame Scale fontSize = 13, -- Stausbar Font Size }, party = { enable = true, scale = 1.15, fontSize = 11, -- Stausbar Font Size position = { relAnchor = "TOPLEFT", offSetX = 10, -- Controls the X offset. (Left - Right) offSetY = -150, -- Controls the Y offset. (Up - Down) }, }, arena = { enable = true, scale = 1.5, fontSize = 11, -- Stausbar Font Size tracker = true, }, boss = { enable = true, scale = 1.15, fontSize = 13, -- Stausbar Font Size position = { relAnchor = "TOPRIGHT", offSetX = -50, -- Controls the X offset. (Left - Right) offSetY = -250, -- Controls the Y offset. (Up - Down) }, }, }, }, } function BasicUI:OnInitialize() -- Assuming the .toc says ## SavedVariables: MyAddonDB self.db = LibStub("AceDB-3.0"):New("BasicDB", defaults, true) self.db.RegisterCallback(self, "OnProfileChanged", "OnProfileChanged") self.db.RegisterCallback(self, "OnProfileCopied", "OnProfileChanged") self.db.RegisterCallback(self, "OnProfileReset", "OnProfileChanged") for name, module in self:IterateModules() do module:SetEnabledState(self.db.profile.ModuleEnabledState[name] or false) end --self:SetUpOptions(); self.OnInitialize = nil end function BasicUI:OnProfileChanged(event, database, newProfileKey) for name, module in self:IterateModules() do if self.db.profile.ModuleEnabledState[name] then module:Enable() else module:Disable() end end end
Ill only post one module instead of all 8 or 9 this one is the smallest one:
Lua Code:
local BasicUI = LibStub("AceAddon-3.0"):GetAddon("BasicUI") local BasicUI_Buffs = BasicUI:NewModule("Buffs", "AceEvent-3.0") ----------- -- Buffs -- ----------- function BasicUI_Buffs:OnEnable() local db = BasicUI.db.profile BuffFrame:ClearAllPoints() BuffFrame:SetScale(db.buff.scale) BuffFrame:SetPoint('TOPRIGHT', Minimap, 'TOPLEFT', -25, 0) end
Just a couple questions: - Am I using the Modules from Ace correctly?
- How do I enable/disable a module?
- When creating the options how to I set up the get/set functions without haveing to create a popup that reloads the ui?
Thanks for any help with this.
Coke
EDIT:
I was able to get my in-game options working again but still have to do a reloadUI to get them to set.
Here are my core and options if anyone cares to help on the get/set.
Core:
Lua Code:
local BasicUI = LibStub("AceAddon-3.0"):NewAddon("BasicUI") -- Media -- local BASIC_BORDER = [[Interface\Tooltips\UI-Tooltip-Border]] local BASIC_BACKGROUND = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]] local BASIC_STATUSBAR = [[Interface\TargetingFrame\UI-StatusBar]] local BASIC_BORDERPANEL = [[Interface\AddOns\BasicUI\Media\UI-DialogBox-Border.blp]] SlashCmdList['RELOADUI'] = function() ReloadUI() end SLASH_RELOADUI1 = '/rl' local defaults = { profile = { ModuleEnabledState = { ["*"] = true }, fontNormal = [[Interface\Addons\BasicUI\Media\NORMAL.ttf]], fontBold = [[Interface\Addons\BasicUI\Media\BOLD.ttf]], fontItalic = [[Interface\Addons\BasicUI\Media\ITALIC.ttf]], fontBoldItalic = [[Interface\Addons\BasicUI\Media\BOLDITALIC.ttf]], fontNumber = [[Interface\Addons\BasicUI\Media\NUMBER.ttf]], media = { fontSize = 15, classcolor = true, }, actionbar = { enable = true, showHotKeys = false, showMacronames = false, auraborder = false, -- Button Colors color = { enable = true, OutOfRange = { r = 0.9, g = 0, b = 0 }, OutOfMana = { r = 0, g = 0, b = 0.9 }, NotUsable = { r = 0.3, g = 0.3, b = 0.3 }, }, }, buff = { enable = true, scale = 1.19, }, castbar = { enable = true, border = BASIC_BORDER, background = BASIC_BACKGROUND, statusbar = BASIC_STATUSBAR, CastingBarFrame = { enable = true, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "BOTTOM", relAnchor = "BOTTOM", offSetX = 0, offSetY = 175, }, TargetFrameSpellBar = { enable = false, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -250, }, FocusFrameSpellBar = { enable = true, fontSize = 18, textPosition = "CENTER", enableLag = true, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -165, }, MirrorTimer1 = { enable = true, fontSize = 18, enableTimer = true, selfAnchor = "TOP", relAnchor = "TOP", offSetX = 0, offSetY = -75, }, PetCastingBarFrame = { enable = true, fontSize = 18, textPosition = "CENTER", enableTimer = true, selfAnchor = "BOTTOM", relAnchor = "BOTTOM", offSetX = 0, offSetY = 200, }, }, chat = { enable = true, disableFade = false, chatOutline = false, windowborder = false, enableborder = false, -- Chat Media border = BASIC_BORDER, background = BASIC_BACKGROUND, editboxborder = BASIC_BORDER, editboxbackground = BASIC_BACKGROUND, sound = [[Interface\Addons\BasicUI\Media\Whisper.mp3]], enableBottomButton = true, enableHyperlinkTooltip = true, enableBorderColoring = true, tab = { fontSize = 15, fontOutline = true, normalColor = {r = 1, g = 1, b = 1}, specialColor = {r = 1, g = 0, b = 1}, selectedColor = {r = 0, g = 0.75, b = 1}, }, }, datapanel = { enable = true, enablepanel = true, battleground = true, -- enable 3 stats in battleground only that replace stat1,stat2,stat3. bag = false, -- True = Open Backpack; False = Open All bags -- nData Media border = BASIC_BORDERPANEL, -- Border for Datapanel ( Choose either Datapanel or Neav for border choice) background = BASIC_BACKGROUND, -- Background for Datapanel -- Color Datatext color = true, -- Enable Datatext Coloring customcolor = { r = 1, g = 1, b = 1}, -- Color of Text for Datapanel classcolor = true, -- Enable Classcolor for Text panel = "bottom", -- 3 Choices for panel placement = "top", "bottom", or "shortbar". Shortbar is to match nMainbar shortbar. armor = 0, -- show your armor value against the level mob you are currently targeting. avd = 0, -- show your current avoidance against the level of the mob your targeting bags = 9, -- show space used in bags on panel. haste = 0, -- show your haste rating on panels. system = 0, -- show total memory and others systems info (FPS/MS) on panel. guild = 4, -- show number on guildmate connected on panel. dur = 8, -- show your equipment durability on panel. friends = 6, -- show number of friends connected. dps_text = 0, -- show a dps meter on panel. hps_text = 0, -- show a heal meter on panel. spec = 5, -- show your current spec on panel. coords = 0, -- show your current coords on panel. pro = 7, -- shows your professions and tradeskills stat1 = 1, -- Stat Based on your Role (Avoidance-Tank, AP-Melee, SP/HP-Caster) stat2 = 3, -- Stat Based on your Role (Armor-Tank, Crit-Melee, Crit-Caster) recount = 2, -- Stat Based on Recount"s DPS recountraiddps = false, -- Enables tracking or Recounts Raid DPS calltoarms = 0, -- Show Current Call to Arms. }, -- Merchant Options merchant = { enable = true, sellMisc = true, -- allows the user to add spacific items to sell at merchant (please see the local filter in merchant.lua) autoSellGrey = true, -- autosell grey items at merchant. autoRepair = true, -- autorepair at merchant. gpay = false, -- let your guild pay for your repairs if they allow. }, minimap = { enable = true, gameclock = true, farm = false, farmscale = 1.5, }, nameplates = { enable = true, enableTankMode = true, -- Color the nameplate threat border green, if you have no aggro colorNameWithThreat = true, -- The name has the same color as the threat of the unit (better visibility) showFullHP = true, showLevel = true, showTargetBorder = true, showEliteBorder = true, showTotemIcon = true, abbrevLongNames = true, }, -- Quest Options quest = { enable = true, -- enable quest module. autocomplete = false, -- enable the autoaccept quest and autocomplete quest if no reward. }, vendor = { enable = true, }, vellum = { enable = true, }, -- Tooltip tooltip = { enable = true, fontSize = 15, fontOutline = true, disableFade = false, -- Can cause errors or a buggy tooltip! abbrevRealmNames = true, border = BASIC_BORDER, background = BASIC_BACKGROUND, statusbar = BASIC_STATUSBAR, hideInCombat = false, -- Hide unit frame tooltips during combat hideRealmText = true, -- Hide the coalesced/interactive realm text reactionBorderColor = true, itemqualityBorderColor = true, showPlayerTitles = true, showPVPIcons = false, -- Show pvp icons instead of just a prefix showMouseoverTarget = true, showOnMouseover = false, showUnitRole = true, showItemLevel = true, showSpecializationIcon = false, healthbar = { showHealthValue = true, showOutline = true, healthFormat = '$cur / $max', -- Possible: $cur, $max, $deficit, $perc, $smartperc, $smartcolorperc, $colorperc healthFullFormat = '$cur', -- if the tooltip unit has 100% hp textPos = "CENTER", -- Possible "TOP" "BOTTOM" "CENTER" reactionColoring = false, custom = { apply = false, color = { r = 1, g = 1, b = 0}, }, fontSize = 15, }, }, -- Unitframes unitframes = { enable = true, player = { enable = true, -- Enable Player Frame Adjustments scale = 1.15, -- Player Frame Scale fontSize = 13, -- Stausbar Font Size fontSizepet = 10, -- Stausbar Font Size }, target = { enable = true, -- Enable Target Frame Adjustments scale = 1.15, -- Target Frame Scale fontSize = 13, -- Stausbar Font Size }, focus = { enable = true, -- Enable Focus Frame Adjustments scale = 1.15, -- Focus Frame Scale fontSize = 13, -- Stausbar Font Size }, party = { enable = true, scale = 1.15, fontSize = 11, -- Stausbar Font Size position = { relAnchor = "TOPLEFT", offSetX = 10, -- Controls the X offset. (Left - Right) offSetY = -150, -- Controls the Y offset. (Up - Down) }, }, arena = { enable = true, scale = 1.5, fontSize = 11, -- Stausbar Font Size tracker = true, }, boss = { enable = true, scale = 1.15, fontSize = 13, -- Stausbar Font Size position = { relAnchor = "TOPRIGHT", offSetX = -50, -- Controls the X offset. (Left - Right) offSetY = -250, -- Controls the Y offset. (Up - Down) }, }, }, }, } function BasicUI:OnInitialize() -- Assuming the .toc says ## SavedVariables: MyAddonDB self.db = LibStub("AceDB-3.0"):New("BasicDB", defaults, true) self.db.RegisterCallback(self, "OnProfileChanged", "OnProfileChanged") self.db.RegisterCallback(self, "OnProfileCopied", "OnProfileChanged") self.db.RegisterCallback(self, "OnProfileReset", "OnProfileChanged") for name, module in self:IterateModules() do module:SetEnabledState(self.db.profile.ModuleEnabledState[name] or false) end self:SetUpOptions(); self.OnInitialize = nil end function BasicUI:OnProfileChanged(event, database, newProfileKey) for name, module in self:IterateModules() do if self.db.profile.ModuleEnabledState[name] then module:Enable() else module:Disable() end end end
Options:
Lua Code:
local BasicUI = LibStub("AceAddon-3.0"):GetAddon("BasicUI") local L = setmetatable({}, { __index = function(t,k) local v = tostring(k) rawset(t, k, v) return v end }) local options = nil; local function GetOptions() db = BasicUI.db.profile local regions ={['TOPLEFT'] = L['TOPLEFT'], ['TOP'] = L['TOP'], ['TOPRIGHT'] = L['TOPRIGHT'], ['LEFT'] = L['LEFT'], ['CENTER'] = L['CENTER'], ['RIGHT'] = L['RIGHT'], ['BOTTOMLEFT'] = L['BOTTOMLEFT'], ['BOTTOM'] = L['BOTTOM'], ['BOTTOMRIGHT'] = L['BOTTOMRIGHT']} StaticPopupDialogs["CFG_RELOAD"] = { text = L["One or more of the changes you have made require a ReloadUI."], button1 = ACCEPT, button2 = CANCEL, OnAccept = function() ReloadUI() end, timeout = 0, whileDead = 1, } ----------------------- -- Options Order Chart ----------------------- -- toggle = 1 -- select = 2 -- color = 3 -- range = 4 -- group = 5 if not options then options = { type = "group", name = "|cff00B4FFBasic|rUI", handler = BasicUI, childGroups = "tree", args = { Header = { type = "header", order = 1, name = L["Welcome to |cff00B4FFBasic|rUI Config Area!"], width = "full", }, Text = { type = "header", order = 2, name = L["When changes are made a Reload of the UI is needed."], width = "full", }, sep1 = { type = "description", order = 3, name = " ", }, Text2 = { type = "description", order = 4, name = L["Special Thanks for |cff00B4FFBasic|rUI goes out to: Neav, Tuks, Elv, Baine, Treeston, and many more."], width = "full", fontSize = "large", }, Text3 = { type = "description", order = 5, name = L["Thank you all for your AddOns, coding help, and support in creating |cff00B4FFBasic|rUI."], width = "full", fontSize = "large", }, sep2 = { type = "description", order = 6, name = " ", }, media = { type = "group", order = 0, name = L["|cff00B4FFMedia|r"], desc = L["Media Module for |cff00B4FFBasic|rUI."], --childGroups = "tree", get = function(info) return db.media[ info[#info] ] end, set = function(info, value) db.media[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- classcolor = { type = "toggle", order = 1, name = L["Class Color"], desc = L["Use your classcolor for border and some text color."], }, fontSize = { type = "range", order = 5, name = L["Game Font Size"], desc = L["Controls the Size of the Game Font"], min = 0, max = 30, step = 1, }, }, }, vellum = { type = "toggle", order = 1, name = L["Vellum"], desc = L["Enables a vellum button for Enchanters to click."], }, actionbar = { type = "group", order = 5, name = L["|cff00B4FFActionbar|r"], desc = L["Actionbar Button Modifications."], childGroups = "tree", get = function(info) return db.actionbar[ info[#info] ] end, set = function(info, value) db.actionbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Actionbar Button Module"], width = "full", }, auraborder = { type = "toggle", order = 1, name = L["Aura Border"], desc = L["Make & Color Aura Borders."], disabled = function() return not db.actionbar.enable end, }, showHotKeys = { type = "toggle", order = 1, name = L["Show Hot Keys"], desc = L["If Checked Hot Keys will Show."], disabled = function() return not db.actionbar.enable end, }, showMacronames = { type = "toggle", order = 1, name = L["Show Macro Names"], desc = L["If Checked Macros Will Show."], disabled = function() return not db.actionbar.enable end, }, color = { type = "group", order = 5, name = L["Actionbar Button Color"], desc = L["Enables Actionbar Button Color Modifications."], guiInline = true, get = function(info) return db.actionbar.color[ info[#info] ] end, set = function(info, value) db.actionbar.color[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Coloring"], width = "full", }, OutOfRange = { type = "color", order = 3, name = L["Out of Range"], desc = L["Picks the Out of Range Button Fade Color."], disabled = function() return not db.actionbar.enable or not db.actionbar.color.enable end, get = function(info) local rc = db.actionbar.color[ info[#info] ] return rc.r, rc.g, rc.b end, set = function(info, r, g, b) db.actionbar.color[ info[#info] ] = {} local rc = db.actionbar.color[ info[#info] ] rc.r, rc.g, rc.b = r, g, b end, }, OutOfMana = { type = "color", order = 3, name = L["Out of Mana"], desc = L["Picks the Out of Mana Button Fade Color."], disabled = function() return not db.actionbar.enable or not db.actionbar.color.enable end, get = function(info) local mc = db.actionbar.color[ info[#info] ] return mc.r, mc.g, mc.b end, set = function(info, r, g, b) db.actionbar.color[ info[#info] ] = {} local mc = db.actionbar.color[ info[#info] ] mc.r, mc.g, mc.b = r, g, b end, }, NotUsable = { type = "color", order = 3, name = L["Not Usable"], desc = L["Picks the Not Usable Button Fade Color."], disabled = function() return not db.actionbar.enable or not db.actionbar.color.enable end, get = function(info) local nu = db.actionbar.color[ info[#info] ] return nu.r, nu.g, nu.b end, set = function(info, r, g, b) db.actionbar.color[ info[#info] ] = {} local nu = db.actionbar.color[ info[#info] ] nu.r, nu.g, nu.b = r, g, b end, }, }, }, }, }, buff = { type = "group", order = 2, name = L["|cff00B4FFBuff|r"], desc = L["Buff Module for |cff00B4FFBasic|rUI."], get = function(info) return db.buff[ info[#info] ] end, set = function(info, value) db.buff[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Buff Module."], width = "full", }, scale = { type = "range", order = 4, name = L["Buff Scale"], --desc = L["Controls the scaling of the Buff Frames"], min = 0.5, max = 5, step = 0.05, disabled = function() return not db.buff.enable end, }, }, }, castbar = { type = "group", order = 3, name = L["|cff00B4FFCastbar|r"], desc = L["Castbar Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.castbar[ info[#info] ] end, set = function(info, value) db.castbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Buff Module"], width = "full", }, CastingBarFrame = { type = "group", order = 5, name = L["Player's Castbar."], desc = L["Settings for the Player Castbar."], guiInline = true, disabled = function() return not db.castbar.enable end, get = function(info) return db.castbar.CastingBarFrame[ info[#info] ] end, set = function(info, value) db.castbar.CastingBarFrame[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Player's Castbar."], disabled = function() return not db.castbar.enable end, width = "full", }, fontSize = { type = "range", order = 0, name = L["Font Size"], desc = L["Controls the Size of the Font"], min = 0, max = 30, step = 1, }, textPosition = { type = "select", order = 2, name = L["Text Position"], desc = L["Spell Text Position."], disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, values = regions; }, enableLag = { type = "toggle", order = 1, name = L["Enable Lag"], desc = L["Enables lag to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, }, enableTimer = { type = "toggle", order = 1, name = L["Show Timer"], desc = L["Enables timer to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, }, selfAnchor = { type = "select", order = 2, name = L["Self Anchor"], desc = L["Self Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, values = regions; }, relAnchor = { type = "select", order = 2, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, values = regions; }, offSetX = { type = "range", order = 4, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, }, offSetY = { type = "range", order = 4, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end, }, }, }, PetCastingBarFrame = { type = "group", order = 6, name = L["Pet Castbar"], desc = L["Settings for the Pet Casting Bar."], guiInline = true, disabled = function() return not db.castbar.enable end, get = function(info) return db.castbar.PetCastingBarFrame[ info[#info] ] end, set = function(info, value) db.castbar.PetCastingBarFrame[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Pet's Castbar."], disabled = function() return not db.castbar.enable end, width = "full", }, fontSize = { type = "range", order = 0, name = L["Font Size"], desc = L["Controls the Size of the Font"], min = 0, max = 30, step = 1, }, textPosition = { type = "select", order = 2, name = L["Text Position"], desc = L["Spell Text Position."], disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, values = regions; }, enableTimer = { type = "toggle", order = 1, name = L["Show Timer"], desc = L["Enables timer to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, }, selfAnchor = { type = "select", order = 2, name = L["Self Anchor"], desc = L["Self Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, values = regions; }, relAnchor = { type = "select", order = 2, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, values = regions; }, offSetX = { type = "range", order = 4, name = L["X Offset."], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, }, offSetY = { type = "range", order = 4, name = L["Y Offset."], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end, }, }, }, TargetFrameSpellBar = { type = "group", order = 7, name = L["Target's Castbar."], desc = L["Settings for the Target Castbar."], guiInline = true, disabled = function() return not db.castbar.enable end, get = function(info) return db.castbar.TargetFrameSpellBar[ info[#info] ] end, set = function(info, value) db.castbar.TargetFrameSpellBar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Target's Castbar."], disabled = function() return not db.castbar.enable end, width = "full", }, fontSize = { type = "range", order = 0, name = L["Font Size"], desc = L["Controls the Size of the Font"], min = 0, max = 30, step = 1, }, textPosition = { type = "select", order = 2, name = L["Text Position"], desc = L["Spell Text Position."], disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, values = regions; }, enableLag = { type = "toggle", order = 1, name = L["Enable Lag"], desc = L["Enables lag to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, }, enableTimer = { type = "toggle", order = 1, name = L["Show Timer"], desc = L["Enables timer to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, }, selfAnchor = { type = "select", order = 2, name = L["Self Anchor"], desc = L["Self Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, values = regions; }, relAnchor = { type = "select", order = 2, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, values = regions; }, offSetX = { type = "range", order = 4, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, }, offSetY = { type = "range", order = 4, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end, }, }, }, FocusFrameSpellBar = { type = "group", order = 8, name = L["Focus Castbar."], desc = L["Settings for the Focus Castbar."], guiInline = true, disabled = function() return not db.castbar.enable end, get = function(info) return db.castbar.FocusFrameSpellBar[ info[#info] ] end, set = function(info, value) db.castbar.FocusFrameSpellBar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Focus' Castbar."], disabled = function() return not db.castbar.enable end, width = "full", }, fontSize = { type = "range", order = 0, name = L["Font Size"], desc = L["Controls the Size of the Font"], min = 0, max = 30, step = 1, }, textPosition = { type = "select", order = 2, name = L["Text Position"], desc = L["Spell Text Position."], disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, values = regions; }, enableLag = { type = "toggle", order = 1, name = L["Enable Lag"], desc = L["Enables lag to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, }, enableTimer = { type = "toggle", order = 1, name = L["Show Timer"], desc = L["Enables timer to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, }, selfAnchor = { type = "select", order = 2, name = L["Self Anchor"], desc = L["Self Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, values = regions; }, relAnchor = { type = "select", order = 2, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, values = regions; }, offSetX = { type = "range", order = 4, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, }, offSetY = { type = "range", order = 4, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end, }, }, }, MirrorTimer1 = { type = "group", order = 9, name = L["Mirror Timer."], desc = L["Settings for Mirror Timer."], guiInline = true, disabled = function() return not db.castbar.enable end, get = function(info) return db.castbar.MirrorTimer1[ info[#info] ] end, set = function(info, value) db.castbar.MirrorTimer1[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Mirror Timer."], disabled = function() return not db.castbar.enable end, width = "full", }, fontSize = { type = "range", order = 0, name = L["Font Size"], desc = L["Controls the Size of the Font"], min = 0, max = 30, step = 1, }, enableTimer = { type = "toggle", order = 1, name = L["Show Timer"], desc = L["Enables timer to show on castbar."], disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end, }, selfAnchor = { type = "select", order = 2, name = L["Self Anchor"], desc = L["Self Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end, values = regions; }, relAnchor = { type = "select", order = 2, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end, values = regions; }, offSetX = { type = "range", order = 4, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end, }, offSetY = { type = "range", order = 4, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end, }, }, }, }, }, chat = { type = "group", order = 4, name = L["|cff00B4FFChat|r"], desc = L["Chat Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.chat[ info[#info] ] end, set = function(info, value) db.chat[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Chat Module."], width = "full", }, windowborder = { type = "toggle", order = 1, name = L["Window Border"], desc = L["Enables Chat Window Border."], disabled = function() return not db.chat.enable end, }, disableFade = { type = "toggle", order = 1, name = L["Disable Fade"], desc = L["Disables Chat Fading."], disabled = function() return not db.chat.enable end, }, chatOutline = { type = "toggle", order = 1, name = L["Chat Outline"], desc = L["Outlines the chat Text."], disabled = function() return not db.chat.enable end, }, enableBottomButton = { type = "toggle", order = 1, name = L["Enable Bottom Button"], desc = L["Enables the scroll down button in the lower right hand corner."], disabled = function() return not db.chat.enable end, }, enableHyperlinkTooltip = { type = "toggle", order = 1, name = L["Enable Hyplerlink Tooltip"], desc = L["Enables the mouseover items in chat tooltip."], disabled = function() return not db.chat.enable end, }, enableBorderColoring = { type = "toggle", order = 1, name = L["Enable Editbox Channel Border Coloring"], desc = L["Enables the coloring of the border to the edit box to match what channel you are typing in."], disabled = function() return not db.chat.enable end, }, tab = { type = "group", order = 5, name = L["Tabs"], desc = L["Tab Font Settings."], guiInline = true, disabled = function() return not db.chat.enable end, get = function(info) return db.chat.tab[ info[#info] ] end, set = function(info, value) db.chat.tab[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- fontSize = { type = "range", order = 4, name = L["Font Size"], desc = L["Controls the size of the tab font"], type = "range", min = 9, max = 20, step = 1, }, fontOutline = { type = "toggle", order = 1, name = L["Outline Tab Font"], desc = L["Enables the outlineing of tab font."], }, normalColor = { type = "color", order = 3, name = L["Tab Normal Color"], desc = L["Picks the Normal Color of the Chat Tab."], hasAlpha = false, disabled = function() return not db.chat.enable end, get = function(info) local hb = db.chat.tab[ info[#info] ] return hb.r, hb.g, hb.b end, set = function(info, r, g, b) db.chat.tab[ info[#info] ] = {} local hb = db.chat.tab[ info[#info] ] hb.r, hb.g, hb.b = r, g, b StaticPopup_Show("CFG_RELOAD") end, }, specialColor = { type = "color", order = 3, name = L["Tab Special Color"], desc = L["Picks the Special Color of the Chat Tab."], hasAlpha = false, disabled = function() return not db.chat.enable end, get = function(info) local hb = db.chat.tab[ info[#info] ] return hb.r, hb.g, hb.b end, set = function(info, r, g, b) db.chat.tab[ info[#info] ] = {} local hb = db.chat.tab[ info[#info] ] hb.r, hb.g, hb.b = r, g, b StaticPopup_Show("CFG_RELOAD") end, }, selectedColor = { type = "color", order = 3, name = L["Tab Selected Color"], desc = L["Picks the Selected Color of the Chat Tab."], hasAlpha = false, disabled = function() return not db.chat.enable end, get = function(info) local hb = db.chat.tab[ info[#info] ] return hb.r, hb.g, hb.b end, set = function(info, r, g, b) db.chat.tab[ info[#info] ] = {} local hb = db.chat.tab[ info[#info] ] hb.r, hb.g, hb.b = r, g, b StaticPopup_Show("CFG_RELOAD") end, }, }, }, }, }, datapanel = { type = "group", order = 5, name = L["|cff00B4FFDatapanel|r"], desc = L["datapanel Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.datapanel[ info[#info] ] end, set = function(info, value) db.datapanel[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables datapanel Module."], }, time24 = { type = "toggle", order = 1, name = L["24-Hour Time"], desc = L["Display time datapanel on a 24 hour time scale"], disabled = function() return not db.datapanel.enable end, }, bag = { type = "toggle", order = 1, name = L["Bag Open"], desc = L["Checked opens Backpack only, Unchecked opens all bags."], disabled = function() return not db.datapanel.enable end, }, battleground = { type = "toggle", order = 1, name = L["Battleground Text"], desc = L["Display special datapanels when inside a battleground"], disabled = function() return not db.datapanel.enable end, }, recountraiddps = { type = "toggle", order = 1, name = L["Recount Raid DPS"], desc = L["Display Recount's Raid DPS (RECOUNT MUST BE INSTALLED)"], disabled = function() return not db.datapanel.enable end, }, DataGroup = { type = "group", order = 5, name = L["Text Positions"], guiInline = true, disabled = function() return not db.datapanel.enable end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- bags = { type = "range", order = 4, name = L["Bags"], desc = L["Display ammount of bag space"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, calltoarms = { type = "range", order = 4, name = L["Call to Arms"], desc = L["Display the active roles that will recieve a reward for completing a random dungeon"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, coords = { type = "range", order = 4, name = L["Coordinates"], desc = L["Display Player's Coordinates"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, dps_text = { type = "range", order = 4, name = L["DPS"], desc = L["Display ammount of DPS"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, dur = { type = "range", order = 4, name = L["Durability"], desc = L["Display your current durability"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, friends = { type = "range", order = 4, name = L["Friends"], desc = L["Display current online friends"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, guild = { type = "range", order = 4, name = L["Guild"], desc = L["Display current online people in guild"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, hps_text = { type = "range", order = 4, name = L["HPS"], desc = L["Display ammount of HPS"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, pro = { type = "range", order = 4, name = L["Professions"], desc = L["Display Professions"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, recount = { type = "range", order = 4, name = L["Recount"], desc = L["Display Recount's DPS (RECOUNT MUST BE INSTALLED)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, spec = { type = "range", order = 4, name = L["Talent Spec"], desc = L["Display current spec"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, stat1 = { type = "range", order = 4, name = L["Stat #1"], desc = L["Display stat based on your role (Avoidance-Tank, AP-Melee, SP/HP-Caster)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, stat2 = { type = "range", order = 4, name = L["Stat #2"], desc = L["Display stat based on your role (Armor-Tank, Crit-Melee, Crit-Caster)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, system = { type = "range", order = 4, name = L["System"], desc = L["Display FPS and Latency"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, wowtime = { type = "range", order = 4, name = L["Time"], desc = L["Display current time"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, zone = { type = "range", order = 4, name = L["Zone"], desc = L["Display Player's Current Zone."]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"], min = 0, max = 9, step = 1, disabled = function() return not db.datapanel.enable end, }, }, }, }, }, merchant = { type = "group", order = 6, name = L["|cff00B4FFMerchant|r"], desc = L["Merchant Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.merchant[ info[#info] ] end, set = function(info, value) db.merchant[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enable Merchant Settings"], width = "full", }, autoRepair = { type = "toggle", order = 1, name = L["Auto Repair"], desc = L["Automatically repair when visiting a vendor"], disabled = function() return not db.merchant.enable end, }, autoSellGrey = { type = "toggle", order = 1, name = L["Sell Grays"], desc = L["Automatically sell gray items when visiting a vendor"], disabled = function() return not db.merchant.enable end, }, sellMisc = { type = "toggle", order = 1, name = L["Sell Misc Items"], desc = L["Automatically sell a user selected item."], disabled = function() return not db.merchant.enable end, }, }, }, minimap = { type = "group", order = 7, name = L["|cff00B4FFMinimap|r"], desc = L["Enables Minimap Modifications."], get = function(info) return db.minimap[ info[#info] ] end, set = function(info, value) db.minimap[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Minimap Modifications."], width = "full" }, farm = { type = "toggle", order = 1, name = L["Farming"], desc = L["Enlarges the Minimap when Farming."], disabled = function() return not db.minimap.enable end, }, farmscale = { type = "range", order = 4, name = L["Farming Map Scale"], desc = L["Controls the Size of the Farming Map"], disabled = function() return not db.minimap.enable or not db.minimap.farm end, min = 1, max = 5, step = 0.1, }, gameclock = { type = "toggle", order = 1, name = L["Game Clock"], desc = L["Enable the Clock Frame on Minimap."], disabled = function() return not db.minimap.enable end, }, }, }, nameplates = { type = "group", order = 6, name = L["|cff00B4FFNameplate|r"], desc = L["Nameplate Module for |cff00B4FFBasic|rUI."], get = function(info) return db.nameplates[ info[#info] ] end, set = function(info, value) db.nameplates[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enable Nameplate Settings"], width = "full", }, enableTankMode = { type = "toggle", order = 1, name = L["Enable Tank Mode"], disabled = function() return not db.nameplates.enable end, }, colorNameWithThreat = { type = "toggle", order = 1, name = L["Color Name With Threat"], disabled = function() return not db.nameplates.enable end, }, showFullHP = { type = "toggle", order = 1, name = L["Show Full HP"], disabled = function() return not db.nameplates.enable end, }, showLevel = { type = "toggle", order = 1, name = L["Show Level"], disabled = function() return not db.nameplates.enable end, }, showTargetBorder = { type = "toggle", order = 1, name = L["Show Target Border"], disabled = function() return not db.nameplates.enable end, }, showEliteBorder = { type = "toggle", order = 1, name = L["Show Elite Border"], disabled = function() return not db.nameplates.enable end, }, showTotemIcon = { type = "toggle", order = 1, name = L["Show Totem Icon"], disabled = function() return not db.nameplates.enable end, }, abbrevLongNames = { type = "toggle", order = 1, name = L["Abbrev Long Names"], disabled = function() return not db.nameplates.enable end, }, }, }, quest = { type = "group", order = 10, name = L["|cff00B4FFQuest|r"], desc = L["Quest Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.quest[ info[#info] ] end, set = function(info, value) db.quest[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Quest Module"], }, autocomplete = { type = "toggle", order = 1, name = L["Autocomplete"], desc = L["Automatically complete your quest."], disabled = function() return not db.quest.enable end, }, }, }, tooltip = { type = "group", order = 12, name = L["|cff00B4FFTooltip|r"], desc = L["Tooltip Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.tooltip[ info[#info] ] end, set = function(info, value) db.tooltip[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Tooltip Module"], }, disableFade = { type = "toggle", order = 1, name = L["Disable Fade"], desc = L["Disables Tooltip Fade."], disabled = function() return not db.tooltip.enable end, }, reactionBorderColor = { type = "toggle", order = 1, name = L["Reaction Border Color"], desc = L["Colors the borders match targets classcolors."], disabled = function() return not db.tooltip.enable end, }, itemqualityBorderColor = { type = "toggle", order = 1, name = L["Item Quality Border Color"], desc = L["Colors the border of the tooltip to match the items quality."], disabled = function() return not db.tooltip.enable end, }, showPlayerTitles = { type = "toggle", order = 1, name = L["Player Titles"], desc = L["Shows players title in tooltip."], disabled = function() return not db.tooltip.enable end, }, showPVPIcons = { type = "toggle", order = 1, name = L["PVP Icons"], desc = L["Shows PvP Icons in tooltip."], disabled = function() return not db.tooltip.enable end, }, showUnitRole = { type = "toggle", order = 1, name = L["Show Units Role"], desc = L["Shows Units Role in tooltip."], disabled = function() return not db.tooltip.enable end, }, abbrevRealmNames = { type = "toggle", order = 1, name = L["Abberviate Realm Names"], desc = L["Abberviates Players Realm Name."], disabled = function() return not db.tooltip.enable end, }, showMouseoverTarget = { type = "toggle", order = 1, name = L["Mouseover Target"], desc = L["Shows mouseover target."], disabled = function() return not db.tooltip.enable end, }, showItemLevel = { type = "toggle", order = 1, name = L["Item Level"], desc = L["Shows targets average item level."], disabled = function() return not db.tooltip.enable end, }, hideInCombat = { type = "toggle", order = 1, name = L["Hide in Combat"], desc = L["Hides unit frame tooltips during combat."], disabled = function() return not db.tooltip.enable end, }, hideRealmText = { type = "toggle", order = 1, name = L["Hide Realm Text"], desc = L["Hide the coalesced/interactive realm text."], disabled = function() return not db.tooltip.enable end, }, healthbar = { type = "group", order = 5, name = L["Healthbar"], desc = L["Players Healthbar Options."], guiInline = true, disabled = function() return not db.tooltip.enable end, get = function(info) return db.tooltip.healthbar[ info[#info] ] end, set = function(info, value) db.tooltip.healthbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 2, name = " ", }, sep2 = { type = "description", order = 3, name = " ", }, sep3 = { type = "description", order = 4, name = " ", }, sep4 = { type = "description", order = 5, name = " ", }, --------------------------- showHealthValue = { type = "toggle", order = 1, name = L["Health Value"], desc = L["Shows health value over healthbar."], disabled = function() return not db.tooltip.enable end, }, showOutline = { type = "toggle", order = 1, name = L["Font Outline"], desc = L["Adds a font outline to health value."], disabled = function() return not db.tooltip.enable end, }, reactionColoring = { type = "toggle", order = 1, name = L["Reaction Coloring"], desc = L["Change healthbar color to targets classcolor. (Overides Custom Color)"], disabled = function() return not db.tooltip.enable end, }, custom = { type = "group", order = 5, name = L["Custom"], desc = L["Custom Coloring"], childGroups = "tree", disabled = function() return not db.tooltip.enable end, get = function(info) return db.tooltip.healthbar.custom[ info[#info] ] end, set = function(info, value) db.tooltip.healthbar.custom[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", name = " ", order = 2, }, sep2 = { type = "description", name = " ", order = 3, }, sep3 = { type = "description", name = " ", order = 4, }, sep4 = { type = "description", name = " ", order = 5, }, --------------------------- apply = { type = "toggle", order = 1, name = L["Apply Custom Color"], desc = L["Use the Custom Color you have chosen."], disabled = function() return not db.tooltip.enable end, }, color = { type = "color", order = 3, name = L["Custom Color"], desc = L["Picks a Custom Color for the tooltip border."], hasAlpha = false, disabled = function() return not db.tooltip.healthbar.custom.apply or not db.tooltip.enable end, get = function(info) local hb = db.tooltip.healthbar.custom[ info[#info] ] return hb.r, hb.g, hb.b end, set = function(info, r, g, b) db.tooltip.healthbar.custom[ info[#info] ] = {} local hb = db.tooltip.healthbar.custom[ info[#info] ] hb.r, hb.g, hb.b = r, g, b end, }, }, }, textPos = { type = "select", order = 2, name = L["Text Position"], desc = L["Health Value Position."], disabled = function() return not db.tooltip.enable end, values = regions; }, fontSize= { type = "range", order = 4, name = L["Font Size"], desc = L["Controls the healthbar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.tooltip.enable end, }, }, }, }, }, unitframes = { type = "group", order = 13, name = L["|cff00B4FFUnitframes|r"], desc = L["Unitframes Module for |cff00B4FFBasic|rUI."], childGroups = "tree", get = function(info) return db.unitframes[ info[#info] ] end, set = function(info, value) db.unitframes[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, sep5 = { type = "description", order = 5, name = " ", }, sep6 = { type = "description", order = 6, name = " ", }, sep7 = { type = "description", order = 7, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Uniframes Module"], }, player = { type = "group", order = 3, name = L["Player Frame"], desc = L["Adjust the Player Frame."], guiInline = true, get = function(info) return db.unitframes.player[ info[#info] ] end, set = function(info, value) db.unitframes.player[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Player Frame Adjustments"], }, scale = { type = "range", order = 1, name = L["Frame Scale"], desc = L["Controls the scaling of Blizzard's Player Frame"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable or not db.unitframes.player.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Player Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.player.enable end, }, fontSizepet= { type = "range", order = 2, name = L["HP/Mana Font Size for your pet"], desc = L["Controls the Player Pet Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.player.enable end, }, }, }, target = { type = "group", order = 4, name = L["Target Frame"], desc = L["Adjust the Target Frame."], guiInline = true, get = function(info) return db.unitframes.target[ info[#info] ] end, set = function(info, value) db.unitframes.target[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Target Frame Adjustments"], }, scale = { type = "range", order = 1, name = L["Frame Scale"], desc = L["Controls the scaling of Blizzard's Target Frame"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable or not db.unitframes.target.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Target Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.target.enable end, }, }, }, focus = { type = "group", order = 5, name = L["Focus Frame"], desc = L["Adjust the Focus Frame."], guiInline = true, get = function(info) return db.unitframes.focus[ info[#info] ] end, set = function(info, value) db.unitframes.focus[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Focus Frame Adjustments"], }, scale = { type = "range", order = 1, name = L["Frame Scale"], desc = L["Controls the scaling of Blizzard's Focus Frame"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable or not db.unitframes.focus.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Focus Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.focus.enable end, }, }, }, party = { type = "group", order = 6, name = L["Party Frame"], desc = L["Adjust the scale of Blizzards Unit Frames."], guiInline = true, get = function(info) return db.unitframes.party[ info[#info] ] end, set = function(info, value) db.unitframes.party[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, sep5 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Party Frame Adjustments"], }, scale = { type = "range", order = 1, name = L["Scale"], desc = L["Controls the scaling of Blizzard's Party Frame"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Party Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.party.enable end, }, position = { type = "group", order = 2, childGroups = "tree", name = L["Position"], --desc = L["Combo Points Options"], disabled = function() return not db.unitframes.enable end, get = function(info) return db.unitframes.party.position[ info[#info] ] end, set = function(info, value) db.unitframes.party.position[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- relAnchor = { order = 1, name = L["Self Anchor"], --desc = L["Style of Border for Sqaure Minimap."], disabled = function() return not db.unitframes.enable end, type = "select", values = regions; }, offSetX = { type = "range", order = 2, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.unitframes.enable end, }, offSetY = { type = "range", order = 3, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.unitframes.enable end, }, }, }, }, }, arena = { type = "group", order = 7, name = L["Arena Frames"], desc = L["Adjust the Arena Frames."], guiInline = true, get = function(info) return db.unitframes.arena[ info[#info] ] end, set = function(info, value) db.unitframes.arena[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Arena Frame Adjustments"], }, tracker = { type = "toggle", order = 1, name = L["Trinket Tracker"], desc = L["This puts icons to the right of the arena frames. Does not track WotF - it now simply shares 30 seconds CD with trinkets, so it's impossible to track with just 1 icon. Only enables in arenas"], }, scale = { type = "range", order = 2, name = L["Scale"], desc = L["Controls the scaling of Blizzard's Arena Frames"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Arena Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.arena.enable end, }, }, }, boss = { type = "group", order = 8, name = L["Boss Frame"], desc = L["Adjust the Boss Frames."], guiInline = true, get = function(info) return db.unitframes.boss[ info[#info] ] end, set = function(info, value) db.unitframes.boss[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, sep5 = { type = "description", order = 5, name = " ", }, --------------------------- enable = { type = "toggle", order = 0, name = L["Enable"], desc = L["Enables Boss Frame Adjustments"], }, scale = { type = "range", order = 1, name = L["Scale"], desc = L["Controls the scaling of Blizzard's Boss Frames"], min = 0.5, max = 2, step = 0.05, disabled = function() return not db.unitframes.enable end, }, fontSize= { type = "range", order = 2, name = L["HP/Mana Font Size"], desc = L["Controls the Boss Healthbar/Manabar value font size."], min = 8, max = 25, step = 1, disabled = function() return not db.unitframes.enable or not db.unitframes.boss.enable end, }, position = { type = "group", order = 5, childGroups = "tree", name = L["Position"], --desc = L["Combo Points Options"], disabled = function() return not db.unitframes.enable end, get = function(info) return db.unitframes.boss.position[ info[#info] ] end, set = function(info, value) db.unitframes.boss.position[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end, args = { --------------------------- --Option Type Seperators sep1 = { type = "description", order = 1, name = " ", }, sep2 = { type = "description", order = 2, name = " ", }, sep3 = { type = "description", order = 3, name = " ", }, sep4 = { type = "description", order = 4, name = " ", }, --------------------------- relAnchor = { type = "select", order = 1, name = L["Relative Anchor"], desc = L["Relative Anchor Position."], disabled = function() return not db.unitframes.enable end, values = regions; }, offSetX = { type = "range", order = 2, name = L["X Offset"], desc = L["Controls the X offset. (Left - Right)"], min = -250, max = 250, step = 5, disabled = function() return not db.unitframes.enable end, }, offSetY = { type = "range", order = 3, name = L["Y Offset"], desc = L["Controls the Y offset. (Up - Down)"], min = -250, max = 250, step = 5, disabled = function() return not db.unitframes.enable end, }, }, }, }, }, }, }, }, } end return options end function BasicUI:SetUpOptions() db = BasicUI.db.profile; LibStub("AceConfig-3.0"):RegisterOptionsTable("BasicUI", GetOptions); LibStub("AceConfig-3.0"):RegisterOptionsTable("BasicUI-Profiles", LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db)); self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("BasicUI", "|cff00B4FFBasic|rUI"); self.profilesFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("BasicUI-Profiles", "Profiles", "|cff00B4FFBasic|rUI"); end
Hope these aren't to long.
Thanks
Coke
Last edited by cokedrivers : 03-24-14 at 03:16 PM.
|