mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update and locale
This commit is contained in:
@@ -504,6 +504,12 @@ function CH:PositionChat(override)
|
||||
self.initialMove = true
|
||||
end
|
||||
|
||||
function CH:Panels_ColorUpdate()
|
||||
local panelColor = E.db.chat.panelColor
|
||||
LeftChatPanel.backdrop:SetBackdropColor(panelColor.r, panelColor.g, panelColor.b, panelColor.a)
|
||||
RightChatPanel.backdrop:SetBackdropColor(panelColor.r, panelColor.g, panelColor.b, panelColor.a)
|
||||
end
|
||||
|
||||
local function UpdateChatTabColor(_, r, g, b)
|
||||
for i = 1, CreatedFrames do
|
||||
_G["ChatFrame"..i.."TabText"]:SetTextColor(r, g, b)
|
||||
|
||||
@@ -552,6 +552,7 @@ P["chat"] = {
|
||||
["tabFont"] = "PT Sans Narrow",
|
||||
["tabFontSize"] = 12,
|
||||
["tabFontOutline"] = "NONE",
|
||||
["panelColor"] = {r = .06,g = .06,b = .06, a = 0.8}
|
||||
}
|
||||
|
||||
--Datatexts
|
||||
|
||||
+154
-75
@@ -1,6 +1,7 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local AB = E:GetModule("ActionBars");
|
||||
local ACD = LibStub("AceConfigDialog-3.0");
|
||||
local group
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
@@ -18,14 +19,13 @@ local points = {
|
||||
["BOTTOMRIGHT"] = "BOTTOMRIGHT"
|
||||
}
|
||||
|
||||
local group
|
||||
local function BuildABConfig()
|
||||
group["general"] = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = L["General Options"],
|
||||
childGroups = "tab",
|
||||
disabled = function() return not E.private.actionbar.enable end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
args = {
|
||||
info = {
|
||||
order = 1,
|
||||
@@ -36,11 +36,7 @@ local function BuildABConfig()
|
||||
order = 2,
|
||||
type = "execute",
|
||||
name = L["Keybind Mode"],
|
||||
func = function()
|
||||
AB:ActivateBindMode()
|
||||
E:ToggleConfig()
|
||||
GameTooltip:Hide()
|
||||
end
|
||||
func = function() AB:ActivateBindMode() E:ToggleConfig() GameTooltip:Hide() end
|
||||
},
|
||||
cooldownText = {
|
||||
order = 3,
|
||||
@@ -49,32 +45,38 @@ local function BuildABConfig()
|
||||
func = function() ACD:SelectGroup("ElvUI", "general", "cooldown") end
|
||||
},
|
||||
spacer = {
|
||||
order = 4,
|
||||
order = 3,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
macrotext = {
|
||||
order = 5,
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Macro Text"],
|
||||
desc = L["Display macro names on action buttons."]
|
||||
},
|
||||
hotkeytext = {
|
||||
order = 6,
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = L["Keybind Text"],
|
||||
desc = L["Display bind names on action buttons."]
|
||||
},
|
||||
keyDown = {
|
||||
order = 8,
|
||||
order = 6,
|
||||
type = "toggle",
|
||||
name = L["Key Down"],
|
||||
desc = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN
|
||||
desc = L["Action button keybinds will respond on key down, rather than on key up"]
|
||||
},
|
||||
useRangeColorText = {
|
||||
order = 7,
|
||||
type = "toggle",
|
||||
name = L["Color Keybind Text"],
|
||||
desc = L["Color Keybind Text when Out of Range, instead of the button."]
|
||||
},
|
||||
lockActionBars = {
|
||||
order = 9,
|
||||
order = 8,
|
||||
type = "toggle",
|
||||
name = LOCK_ACTIONBAR_TEXT,
|
||||
name = L["Lock Actionbars"],
|
||||
desc = L["If you unlock actionbars then trying to move a spell might instantly cast it if you cast spells on key press instead of key release."],
|
||||
set = function(info, value)
|
||||
E.db.actionbar[ info[getn(info)] ] = value
|
||||
@@ -84,18 +86,18 @@ local function BuildABConfig()
|
||||
movementModifier = {
|
||||
order = 10,
|
||||
type = "select",
|
||||
name = L["Pick Up Action Key"],
|
||||
name = L["Pickup Actionkey"],
|
||||
desc = L["The button you must hold down in order to drag an ability to another action button."],
|
||||
disabled = function() return (not E.private.actionbar.enable or not E.db.actionbar.lockActionBars) end,
|
||||
values = {
|
||||
["NONE"] = L["None"],
|
||||
["SHIFT"] = "SHIFT_KEY",
|
||||
["ALT"] = "ALT_KEY",
|
||||
["CTRL"] = "CTRL_KEY"
|
||||
["SHIFT"] = L["Shift Key"],
|
||||
["ALT"] = L["ALT-Key"],
|
||||
["CTRL"] = L["CTRL-Key"]
|
||||
}
|
||||
},
|
||||
globalFadeAlpha = {
|
||||
order = 11,
|
||||
order = 12,
|
||||
type = "range",
|
||||
name = L["Global Fade Transparency"],
|
||||
desc = L["Transparency level when not in combat, no target exists, full health, not casting, and no focus target exists."],
|
||||
@@ -135,7 +137,7 @@ local function BuildABConfig()
|
||||
order = 2,
|
||||
type = "color",
|
||||
name = L["Out of Power"],
|
||||
desc = L["Color of the actionbutton when out of power (Mana, Rage, Focus, Holy Power)."]
|
||||
desc = L["Color of the actionbutton when out of power (Mana, Rage)."]
|
||||
},
|
||||
usableColor = {
|
||||
order = 3,
|
||||
@@ -152,7 +154,7 @@ local function BuildABConfig()
|
||||
}
|
||||
},
|
||||
fontGroup = {
|
||||
order = 13,
|
||||
order = 14,
|
||||
type = "group",
|
||||
guiInline = true,
|
||||
name = L["Fonts"],
|
||||
@@ -166,8 +168,8 @@ local function BuildABConfig()
|
||||
fontSize = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
min = 4, max = 212, step = 1
|
||||
name = L["Font Size"],
|
||||
min = 4, max = 32, step = 1
|
||||
},
|
||||
fontOutline = {
|
||||
order = 6,
|
||||
@@ -184,7 +186,8 @@ local function BuildABConfig()
|
||||
fontColor = {
|
||||
order = 7,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
width = "full",
|
||||
get = function(info)
|
||||
local t = E.db.actionbar[ info[getn(info)] ]
|
||||
local d = P.actionbar[ info[getn(info)] ]
|
||||
@@ -195,6 +198,80 @@ local function BuildABConfig()
|
||||
t.r, t.g, t.b = r, g, b
|
||||
AB:UpdateButtonSettings()
|
||||
end
|
||||
},
|
||||
textPosition = {
|
||||
order = 8,
|
||||
type = "group",
|
||||
name = L["Text Position"],
|
||||
guiInline = true,
|
||||
args = {
|
||||
countTextPosition = {
|
||||
order = 1,
|
||||
type = "select",
|
||||
name = L["Stack Text Position"],
|
||||
values = {
|
||||
["BOTTOMRIGHT"] = "BOTTOMRIGHT",
|
||||
["BOTTOMLEFT"] = "BOTTOMLEFT",
|
||||
["TOPRIGHT"] = "TOPRIGHT",
|
||||
["TOPLEFT"] = "TOPLEFT",
|
||||
["BOTTOM"] = "BOTTOM",
|
||||
["TOP"] = "TOP"
|
||||
}
|
||||
},
|
||||
countTextXOffset = {
|
||||
order = 2,
|
||||
type = "range",
|
||||
name = L["Stack Text X-Offset"],
|
||||
min = -10, max = 10, step = 1
|
||||
},
|
||||
countTextYOffset = {
|
||||
order = 3,
|
||||
type = "range",
|
||||
name = L["Stack Text Y-Offset"],
|
||||
min = -10, max = 10, step = 1
|
||||
},
|
||||
hotkeyTextPosition = {
|
||||
order = 4,
|
||||
type = "select",
|
||||
name = L["Hotkey Text Position"],
|
||||
values = {
|
||||
["BOTTOMRIGHT"] = "BOTTOMRIGHT",
|
||||
["BOTTOMLEFT"] = "BOTTOMLEFT",
|
||||
["TOPRIGHT"] = "TOPRIGHT",
|
||||
["TOPLEFT"] = "TOPLEFT",
|
||||
["BOTTOM"] = "BOTTOM",
|
||||
["TOP"] = "TOP"
|
||||
}
|
||||
},
|
||||
hotkeyTextXOffset = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = L["Hotkey Text X-Offset"],
|
||||
min = -10, max = 10, step = 1
|
||||
},
|
||||
hotkeyTextYOffset = {
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = L["Hotkey Text Y-Offset"],
|
||||
min = -10, max = 10, step = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
lbf = {
|
||||
order = 15,
|
||||
type = "group",
|
||||
guiInline = true,
|
||||
name = L["LBF Support"],
|
||||
get = function(info) return E.private.actionbar.lbf[info[getn(info)]] end,
|
||||
set = function(info, value) E.private.actionbar.lbf[info[getn(info)]] = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
args = {
|
||||
enable = {
|
||||
order = 1,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
desc = L["Allow LBF to handle the skinning of this element."]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,9 +282,9 @@ local function BuildABConfig()
|
||||
name = L["Pet Bar"],
|
||||
type = "group",
|
||||
guiInline = false,
|
||||
disabled = function() return not E.private.actionbar.enable end,
|
||||
get = function(info) return E.db.actionbar["barPet"][ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.actionbar["barPet"][ info[getn(info)] ] = value AB:PositionAndSizeBarPet() end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
get = function(info) return E.db.actionbar.barPet[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.actionbar.barPet[ info[getn(info)] ] = value AB:PositionAndSizeBarPet() end,
|
||||
args = {
|
||||
info = {
|
||||
order = 1,
|
||||
@@ -224,7 +301,8 @@ local function BuildABConfig()
|
||||
type = "execute",
|
||||
name = L["Restore Bar"],
|
||||
desc = L["Restore the actionbars default settings"],
|
||||
func = function() E:CopyTable(E.db.actionbar["barPet"], P.actionbar["barPet"]) E:ResetMovers(L["Pet Bar"]) AB:PositionAndSizeBarPet() end,
|
||||
buttonElvUI = true,
|
||||
func = function() E:CopyTable(E.db.actionbar.barPet, P.actionbar.barPet) E:ResetMovers(L["Pet Bar"]) AB:PositionAndSizeBarPet() end,
|
||||
disabled = function() return not E.db.actionbar.barPet.enabled end
|
||||
},
|
||||
spacer = {
|
||||
@@ -290,7 +368,7 @@ local function BuildABConfig()
|
||||
type = "range",
|
||||
name = L["Button Spacing"],
|
||||
desc = L["The spacing between buttons."],
|
||||
min = -1, max = 10, step = 1,
|
||||
min = -3, max = 20, step = 1,
|
||||
disabled = function() return not E.db.actionbar.barPet.enabled end
|
||||
},
|
||||
backdropSpacing = {
|
||||
@@ -333,8 +411,8 @@ local function BuildABConfig()
|
||||
type = "group",
|
||||
guiInline = false,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
get = function(info) return E.db.actionbar["barShapeShift"][ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.actionbar["barShapeShift"][ info[getn(info)] ] = value; AB:PositionAndSizeBarShapeShift() end,
|
||||
get = function(info) return E.db.actionbar.barShapeShift[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.actionbar.barShapeShift[ info[getn(info)] ] = value AB:PositionAndSizeBarShapeShift() end,
|
||||
args = {
|
||||
info = {
|
||||
order = 1,
|
||||
@@ -351,7 +429,8 @@ local function BuildABConfig()
|
||||
type = "execute",
|
||||
name = L["Restore Bar"],
|
||||
desc = L["Restore the actionbars default settings"],
|
||||
func = function() E:CopyTable(E.db.actionbar["barShapeShift"], P.actionbar["barShapeShift"]) E:ResetMovers(L["Stance Bar"]) AB:PositionAndSizeBarShapeShift() end,
|
||||
buttonElvUI = true,
|
||||
func = function() E:CopyTable(E.db.actionbar.barShapeShift, P.actionbar.barShapeShift) E:ResetMovers(L["Stance Bar"]) AB:PositionAndSizeBarShapeShift() end,
|
||||
disabled = function() return not E.db.actionbar.barShapeShift.enabled end
|
||||
},
|
||||
spacer = {
|
||||
@@ -417,7 +496,7 @@ local function BuildABConfig()
|
||||
type = "range",
|
||||
name = L["Button Spacing"],
|
||||
desc = L["The spacing between buttons."],
|
||||
min = -1, max = 10, step = 1,
|
||||
min = -3, max = 20, step = 1,
|
||||
disabled = function() return not E.db.actionbar.barShapeShift.enabled end
|
||||
},
|
||||
backdropSpacing = {
|
||||
@@ -574,10 +653,8 @@ local function BuildABConfig()
|
||||
type = "execute",
|
||||
name = L["Restore Bar"],
|
||||
desc = L["Restore the actionbars default settings"],
|
||||
func = function()
|
||||
E:CopyTable(E.db.actionbar[barNum], P.actionbar[barNum])
|
||||
E:ResetMovers(name) AB:PositionAndSizeBar(barNum)
|
||||
end,
|
||||
buttonElvUI = true,
|
||||
func = function() E:CopyTable(E.db.actionbar[barNum], P.actionbar[barNum]) E:ResetMovers(name) AB:PositionAndSizeBar(barNum) end,
|
||||
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||
},
|
||||
spacer = {
|
||||
@@ -596,10 +673,7 @@ local function BuildABConfig()
|
||||
order = 6,
|
||||
type = "toggle",
|
||||
name = L["Show Empty Buttons"],
|
||||
set = function(info, value)
|
||||
E.db.actionbar[barNum][ info[getn(info)] ] = value
|
||||
AB:UpdateButtonSettingsForBar(barNum)
|
||||
end,
|
||||
set = function(info, value) E.db.actionbar[barNum][ info[getn(info)] ] = value AB:UpdateButtonSettingsForBar(barNum) end,
|
||||
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||
},
|
||||
mouseover = {
|
||||
@@ -653,7 +727,7 @@ local function BuildABConfig()
|
||||
type = "range",
|
||||
name = L["Button Spacing"],
|
||||
desc = L["The spacing between buttons."],
|
||||
min = -1, max = 10, step = 1,
|
||||
min = -3, max = 20, step = 1,
|
||||
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||
},
|
||||
backdropSpacing = {
|
||||
@@ -695,7 +769,7 @@ end
|
||||
|
||||
E.Options.args.actionbar = {
|
||||
type = "group",
|
||||
name = ACTIONBAR_LABEL,
|
||||
name = L["ActionBars"],
|
||||
childGroups = "tree",
|
||||
get = function(info) return E.db.actionbar[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.actionbar[ info[getn(info)] ] = value AB:UpdateButtonSettings() end,
|
||||
@@ -715,20 +789,20 @@ E.Options.args.actionbar = {
|
||||
header = {
|
||||
order = 3,
|
||||
type = "header",
|
||||
name = L["Shortcuts"],
|
||||
name = L["Shortcuts"]
|
||||
},
|
||||
spacer1 = {
|
||||
order = 4,
|
||||
type = "description",
|
||||
name = " ",
|
||||
name = " "
|
||||
},
|
||||
generalShortcut = {
|
||||
order = 5,
|
||||
type = "execute",
|
||||
name = GENERAL,
|
||||
name = L["General"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "general") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
petBarShortcut = {
|
||||
order = 6,
|
||||
@@ -736,68 +810,73 @@ E.Options.args.actionbar = {
|
||||
name = L["Pet Bar"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "barPet") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
},
|
||||
stanceBarShortcut = {
|
||||
order = 7,
|
||||
type = "execute",
|
||||
name = L["Stance Bar"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "stanceBar") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
spacer2 = {
|
||||
order = 8,
|
||||
type = "description",
|
||||
name = " ",
|
||||
name = " "
|
||||
},
|
||||
stanceBarShortcut = {
|
||||
order = 9,
|
||||
type = "execute",
|
||||
name = L["Stance Bar"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "stanceBar") end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
microbarShortcut = {
|
||||
order = 9,
|
||||
order = 10,
|
||||
type = "execute",
|
||||
name = L["Micro Bar"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "microbar") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
bar1Shortcut = {
|
||||
order = 10,
|
||||
order = 11,
|
||||
type = "execute",
|
||||
name = L["Bar "]..1,
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar1") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
},
|
||||
bar2Shortcut = {
|
||||
order = 11,
|
||||
type = "execute",
|
||||
name = L["Bar "]..2,
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar2") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
spacer3 = {
|
||||
order = 12,
|
||||
type = "description",
|
||||
name = " ",
|
||||
name = " "
|
||||
},
|
||||
bar2Shortcut = {
|
||||
order = 13,
|
||||
type = "execute",
|
||||
name = L["Bar "]..2,
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar2") end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
bar3Shortcut = {
|
||||
order = 13,
|
||||
order = 14,
|
||||
type = "execute",
|
||||
name = L["Bar "]..3,
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar3") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
bar4Shortcut = {
|
||||
order = 14,
|
||||
order = 15,
|
||||
type = "execute",
|
||||
name = L["Bar "]..4,
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar4") end,
|
||||
disabled = function() return not E.ActionBars end,
|
||||
disabled = function() return not E.ActionBars end
|
||||
},
|
||||
spacer4 = {
|
||||
order = 16,
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
bar5Shortcut = {
|
||||
order = 15,
|
||||
order = 17,
|
||||
type = "execute",
|
||||
name = L["Bar "]..5,
|
||||
buttonElvUI = true,
|
||||
|
||||
@@ -157,7 +157,7 @@ E.Options.args.auras = {
|
||||
},
|
||||
fontSize = {
|
||||
order = 3,
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
type = "range",
|
||||
min = 6, max = 33, step = 1
|
||||
},
|
||||
|
||||
+9
-27
@@ -8,8 +8,6 @@ local gsub, match = string.gsub, string.match
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local GameTooltip = _G["GameTooltip"]
|
||||
local FONT_SIZE, NONE, COLOR = FONT_SIZE, NONE, COLOR
|
||||
local GENERAL = GENERAL
|
||||
|
||||
E.Options.args.bags = {
|
||||
type = "group",
|
||||
@@ -34,13 +32,13 @@ E.Options.args.bags = {
|
||||
general = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
name = GENERAL,
|
||||
name = L["General"],
|
||||
disabled = function() return not E.bags end,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = GENERAL
|
||||
name = L["General"]
|
||||
},
|
||||
strata = {
|
||||
order = 2,
|
||||
@@ -119,7 +117,7 @@ E.Options.args.bags = {
|
||||
countFontSize = {
|
||||
order = 2,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 4, max = 22, step = 1,
|
||||
set = function(info, value) E.db.bags.countFontSize = value B:UpdateCountDisplay() end
|
||||
},
|
||||
@@ -138,7 +136,7 @@ E.Options.args.bags = {
|
||||
countFontColor = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
get = function(info)
|
||||
local t = E.db.bags[ info[getn(info)] ]
|
||||
local d = P.bags[ info[getn(info)] ]
|
||||
@@ -213,7 +211,7 @@ E.Options.args.bags = {
|
||||
itemLevelFontSize = {
|
||||
order = 7,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 6, max = 33, step = 1,
|
||||
disabled = function() return not E.db.bags.itemLevel end,
|
||||
set = function(info, value) E.db.bags.itemLevelFontSize = value B:UpdateItemLevelDisplay() end
|
||||
@@ -288,12 +286,12 @@ E.Options.args.bags = {
|
||||
colorGroup = {
|
||||
order = 5,
|
||||
type = "group",
|
||||
name = COLOR,
|
||||
name = L["Colors"],
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = COLOR
|
||||
name = L["Colors"]
|
||||
},
|
||||
bags = {
|
||||
order = 2,
|
||||
@@ -351,7 +349,7 @@ E.Options.args.bags = {
|
||||
items = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
name = ITEMS,
|
||||
name = L["Items"],
|
||||
guiInline = true,
|
||||
get = function(info)
|
||||
local t = E.db.bags.colors.items[ info[getn(info)] ]
|
||||
@@ -374,7 +372,7 @@ E.Options.args.bags = {
|
||||
questItem = {
|
||||
order = 2,
|
||||
type = "color",
|
||||
name = ITEM_BIND_QUEST
|
||||
name = L["Quest Item"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -458,22 +456,6 @@ E.Options.args.bags = {
|
||||
["HORIZONTAL"] = L["Horizontal"]
|
||||
},
|
||||
disabled = function() return not E.private.bags.bagBar end
|
||||
},
|
||||
visibility = {
|
||||
order = 10,
|
||||
type = "input",
|
||||
name = L["Visibility State"],
|
||||
desc = L["This works like a macro, you can run different situations to get the actionbar to show/hide differently.\n Example: '[combat] show;hide'"],
|
||||
width = "full",
|
||||
multiline = true,
|
||||
set = function(info, value)
|
||||
if value and match(value, "[\n\r]") then
|
||||
value = gsub(value, "[\n\r]","")
|
||||
end
|
||||
E.db.bags.bagBar["visibility"] = value
|
||||
B:SizeAndPositionBagBar()
|
||||
end,
|
||||
disabled = function() return not E.private.bags.bagBar end
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+67
-40
@@ -3,13 +3,15 @@ local CH = E:GetModule("Chat");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local gsub, lower = string.gsub, string.lower
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local CHAT_LABEL, GENERAL, NONE = CHAT_LABEL, GENERAL, NONE
|
||||
local GameTooltip = _G["GameTooltip"]
|
||||
|
||||
E.Options.args.chat = {
|
||||
type = "group",
|
||||
name = CHAT_LABEL,
|
||||
name = L["Chat"],
|
||||
childGroups = "tab",
|
||||
get = function(info) return E.db.chat[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value end,
|
||||
@@ -29,12 +31,13 @@ E.Options.args.chat = {
|
||||
general = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
name = GENERAL,
|
||||
name = L["General"],
|
||||
disabled = function() return not E.private.chat.enable end,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = GENERAL
|
||||
name = L["General"]
|
||||
},
|
||||
url = {
|
||||
order = 2,
|
||||
@@ -120,7 +123,7 @@ E.Options.args.chat = {
|
||||
spacer = {
|
||||
order = 11,
|
||||
type = "description",
|
||||
name = " "
|
||||
name = ""
|
||||
},
|
||||
throttleInterval = {
|
||||
order = 12,
|
||||
@@ -162,13 +165,13 @@ E.Options.args.chat = {
|
||||
spacer2 = {
|
||||
order = 16,
|
||||
type = "description",
|
||||
name = " "
|
||||
name = ""
|
||||
},
|
||||
timeStampFormat = {
|
||||
order = 17,
|
||||
type = "select",
|
||||
name = L["Chat Timestamps"],
|
||||
desc = "OPTION_TOOLTIP_TIMESTAMPS",
|
||||
desc = L["Select the format of timestamps for chat messages."],
|
||||
values = {
|
||||
["NONE"] = L["None"],
|
||||
["%I:%M "] = "03:27",
|
||||
@@ -183,14 +186,14 @@ E.Options.args.chat = {
|
||||
order = 18,
|
||||
type = "toggle",
|
||||
name = L["Custom Timestamp Color"],
|
||||
disabled = function() return not E.db.chat.timeStampFormat == "NONE" end
|
||||
disabled = function() return not E.private.chat.enable or E.db.chat.timeStampFormat == "NONE" end
|
||||
},
|
||||
customTimeColor = {
|
||||
order = 19,
|
||||
type = "color",
|
||||
hasAlpha = false,
|
||||
name = L["Timestamp Color"],
|
||||
disabled = function() return (not E.db.chat.timeStampFormat == "NONE" or not E.db.chat.useCustomTimeColor) end,
|
||||
disabled = function() return not E.private.chat.enable or (E.db.chat.timeStampFormat == "NONE" or not E.db.chat.useCustomTimeColor) end,
|
||||
get = function(info)
|
||||
local t = E.db.chat.customTimeColor
|
||||
local d = P.chat.customTimeColor
|
||||
@@ -207,6 +210,7 @@ E.Options.args.chat = {
|
||||
order = 4,
|
||||
type = "group",
|
||||
name = L["Alerts"],
|
||||
disabled = function() return not E.private.chat.enable end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
@@ -217,13 +221,13 @@ E.Options.args.chat = {
|
||||
order = 1,
|
||||
type = "select", dialogControl = "LSM30_Sound",
|
||||
name = L["Whisper Alert"],
|
||||
values = AceGUIWidgetLSMlists.sound,
|
||||
values = AceGUIWidgetLSMlists.sound
|
||||
},
|
||||
keywordSound = {
|
||||
order = 2,
|
||||
type = "select", dialogControl = "LSM30_Sound",
|
||||
name = L["Keyword Alert"],
|
||||
values = AceGUIWidgetLSMlists.sound,
|
||||
values = AceGUIWidgetLSMlists.sound
|
||||
},
|
||||
noAlertInCombat = {
|
||||
order = 3,
|
||||
@@ -232,11 +236,11 @@ E.Options.args.chat = {
|
||||
},
|
||||
keywords = {
|
||||
order = 4,
|
||||
type = "input",
|
||||
name = L["Keywords"],
|
||||
desc = L["List of words to color in chat if found in a message. If you wish to add multiple words you must seperate the word with a comma. To search for your current name you can use %MYNAME%.\n\nExample:\n%MYNAME%, ElvUI, RBGs, Tank"],
|
||||
type = "input",
|
||||
width = "full",
|
||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value; CH:UpdateChatKeywords() end
|
||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value CH:UpdateChatKeywords() end
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -244,6 +248,7 @@ E.Options.args.chat = {
|
||||
order = 5,
|
||||
type = "group",
|
||||
name = L["Panels"],
|
||||
disabled = function() return not E.private.chat.enable end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
@@ -266,14 +271,14 @@ E.Options.args.chat = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Tab Panel Transparency"],
|
||||
set = function(info, value) E.db.chat.panelTabTransparency = value; E:GetModule("Layout"):SetChatTabStyle() end
|
||||
set = function(info, value) E.db.chat.panelTabTransparency = value E:GetModule("Layout"):SetChatTabStyle() end
|
||||
},
|
||||
panelTabBackdrop = {
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = L["Tab Panel"],
|
||||
desc = L["Toggle the chat tab panel backdrop."],
|
||||
set = function(info, value) E.db.chat.panelTabBackdrop = value; E:GetModule("Layout"):ToggleChatPanels() end
|
||||
set = function(info, value) E.db.chat.panelTabBackdrop = value E:GetModule("Layout"):ToggleChatPanels() end
|
||||
},
|
||||
editBoxPosition = {
|
||||
order = 4,
|
||||
@@ -291,7 +296,7 @@ E.Options.args.chat = {
|
||||
type = "select",
|
||||
name = L["Panel Backdrop"],
|
||||
desc = L["Toggle showing of the left and right chat panels."],
|
||||
set = function(info, value) E.db.chat.panelBackdrop = value; E:GetModule("Layout"):ToggleChatPanels(); E:GetModule("Chat"):PositionChat(true); E:GetModule("Chat"):UpdateAnchors() end,
|
||||
set = function(info, value) E.db.chat.panelBackdrop = value E:GetModule("Layout"):ToggleChatPanels() E:GetModule("Chat"):PositionChat(true) E:GetModule("Chat"):UpdateAnchors() end,
|
||||
values = {
|
||||
["HIDEBOTH"] = L["Hide Both"],
|
||||
["SHOWBOTH"] = L["Show Both"],
|
||||
@@ -321,7 +326,7 @@ E.Options.args.chat = {
|
||||
name = L["Panel Height"],
|
||||
desc = L["PANEL_DESC"],
|
||||
min = 50, max = 600, step = 1,
|
||||
set = function(info, value) E.db.chat.panelHeight = value; E:GetModule("Chat"):PositionChat(true) end
|
||||
set = function(info, value) E.db.chat.panelHeight = value E:GetModule("Chat"):PositionChat(true) end
|
||||
},
|
||||
panelWidth = {
|
||||
order = 9,
|
||||
@@ -332,30 +337,46 @@ E.Options.args.chat = {
|
||||
set = function(info, value)
|
||||
E.db.chat.panelWidth = value
|
||||
E:GetModule("Chat"):PositionChat(true)
|
||||
local bags = E:GetModule("Bags");
|
||||
local bags = E:GetModule("Bags")
|
||||
if not E.db.chat.separateSizes then
|
||||
bags:Layout()
|
||||
end
|
||||
bags:Layout(true)
|
||||
end
|
||||
},
|
||||
spacer2 = {
|
||||
panelColor = {
|
||||
order = 10,
|
||||
type = "color",
|
||||
name = L["Backdrop Color"],
|
||||
hasAlpha = true,
|
||||
get = function(info)
|
||||
local t = E.db.chat.panelColor
|
||||
local d = P.chat.panelColor
|
||||
return t.r, t.g, t.b, t.a, d.r, d.g, d.b, d.a
|
||||
end,
|
||||
set = function(info, r, g, b, a)
|
||||
local t = E.db.chat.panelColor
|
||||
t.r, t.g, t.b, t.a = r, g, b, a
|
||||
CH:Panels_ColorUpdate()
|
||||
end
|
||||
},
|
||||
spacer2 = {
|
||||
order = 11,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
panelHeightRight = {
|
||||
order = 11,
|
||||
order = 12,
|
||||
type = "range",
|
||||
name = L["Right Panel Height"],
|
||||
desc = L["Adjust the height of your right chat panel."],
|
||||
min = 50, max = 600, step = 1,
|
||||
disabled = function() return not E.db.chat.separateSizes end,
|
||||
hidden = function() return not E.db.chat.separateSizes end,
|
||||
set = function(info, value) E.db.chat.panelHeightRight = value; E:GetModule("Chat"):PositionChat(true) end
|
||||
set = function(info, value) E.db.chat.panelHeightRight = value E:GetModule("Chat"):PositionChat(true) end
|
||||
},
|
||||
panelWidthRight = {
|
||||
order = 12,
|
||||
order = 13,
|
||||
type = "range",
|
||||
name = L["Right Panel Width"],
|
||||
desc = L["Adjust the width of your right chat panel."],
|
||||
@@ -369,7 +390,7 @@ E.Options.args.chat = {
|
||||
end
|
||||
},
|
||||
panelBackdropNameLeft = {
|
||||
order = 13,
|
||||
order = 14,
|
||||
type = "input",
|
||||
width = "full",
|
||||
name = L["Panel Texture (Left)"],
|
||||
@@ -380,7 +401,7 @@ E.Options.args.chat = {
|
||||
end
|
||||
},
|
||||
panelBackdropNameRight = {
|
||||
order = 14,
|
||||
order = 15,
|
||||
type = "input",
|
||||
width = "full",
|
||||
name = L["Panel Texture (Right)"],
|
||||
@@ -396,21 +417,22 @@ E.Options.args.chat = {
|
||||
order = 6,
|
||||
type = "group",
|
||||
name = L["Fonts"],
|
||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value; CH:SetupChat() end,
|
||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value CH:SetupChat() end,
|
||||
disabled = function() return not E.private.chat.enable end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["Fonts"]
|
||||
},
|
||||
font = {
|
||||
order = 1,
|
||||
order = 2,
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font
|
||||
},
|
||||
fontOutline = {
|
||||
order = 2,
|
||||
order = 3,
|
||||
name = L["Font Outline"],
|
||||
desc = L["Set the font outline."],
|
||||
type = "select",
|
||||
@@ -421,20 +443,25 @@ E.Options.args.chat = {
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
}
|
||||
},
|
||||
spacer = {
|
||||
order = 4,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
tabFont = {
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
order = 4,
|
||||
order = 5,
|
||||
name = L["Tab Font"],
|
||||
values = AceGUIWidgetLSMlists.font
|
||||
},
|
||||
tabFontSize = {
|
||||
order = 5,
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = L["Tab Font Size"],
|
||||
min = 6, max = 22, step = 1
|
||||
},
|
||||
tabFontOutline = {
|
||||
order = 6,
|
||||
order = 7,
|
||||
name = L["Tab Font Outline"],
|
||||
desc = L["Set the font outline."],
|
||||
type = "select",
|
||||
@@ -460,30 +487,30 @@ E.Options.args.chat = {
|
||||
classColorMentionsChat = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = CHAT_LABEL,
|
||||
desc = L["Use class color for the names of players when they are mentioned."],
|
||||
name = L["Chat"],
|
||||
desc = L["Use class color for the names of players when they are mentioned.\nDepends on Class Caching module!"],
|
||||
get = function(info) return E.db.chat.classColorMentionsChat end,
|
||||
set = function(info, value) E.db.chat.classColorMentionsChat = value end,
|
||||
disabled = function() return not E.private.chat.enable end
|
||||
disabled = function() return not (E.private.chat.enable and E.private.general.classCache) end
|
||||
},
|
||||
classColorMentionsSpeech = {
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = L["Chat Bubbles"],
|
||||
desc = L["Use class color for the names of players when they are mentioned."],
|
||||
desc = L["Use class color for the names of players when they are mentioned.\nDepends on Class Caching module!"],
|
||||
get = function(info) return E.private.general.classColorMentionsSpeech end,
|
||||
set = function(info, value) E.private.general.classColorMentionsSpeech = value; E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
disabled = function() return (E.private.general.chatBubbles == "disabled" or not E.private.chat.enable) end
|
||||
set = function(info, value) E.private.general.classColorMentionsSpeech = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
disabled = function() return (E.private.general.chatBubbles == "disabled" or not (E.private.chat.enable and E.private.general.classCache)) end
|
||||
},
|
||||
classColorMentionExcludeName = {
|
||||
order = 4,
|
||||
type = "input",
|
||||
name = L["Exclude Name"],
|
||||
desc = L["Excluded names will not be class colored."],
|
||||
type = 'input',
|
||||
get = function(info) return "" end,
|
||||
set = function(info, value)
|
||||
if value == "" or string.gsub(value, "%s+", "") == "" then return end
|
||||
E.global.chat.classColorMentionExcludedNames[strlower(value)] = value
|
||||
if value == "" or gsub(value, "%s+", "") == "" then return end
|
||||
E.global.chat.classColorMentionExcludedNames[lower(value)] = value
|
||||
end
|
||||
},
|
||||
classColorMentionExcludedNames = {
|
||||
|
||||
@@ -16,6 +16,7 @@ local UnitIsPlayer = UnitIsPlayer
|
||||
local UnitIsUnit = UnitIsUnit
|
||||
local UnitName = UnitName
|
||||
local UnitInParty = UnitInParty
|
||||
local UnitInRaid = UnitInRaid
|
||||
|
||||
local DEFAULT_WIDTH = 890
|
||||
local DEFAULT_HEIGHT = 651
|
||||
|
||||
+98
-46
@@ -1,7 +1,13 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local mod = E:GetModule("DataBars");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local ceil = math.ceil
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local GetScreenWidth = GetScreenWidth
|
||||
local GetScreenHeight = GetScreenHeight
|
||||
|
||||
E.Options.args.databars = {
|
||||
type = "group",
|
||||
@@ -13,7 +19,7 @@ E.Options.args.databars = {
|
||||
intro = {
|
||||
order = 1,
|
||||
type = "description",
|
||||
name = L["Setup on-screen display of information bars."]
|
||||
name = L["DATABAR_DESC"]
|
||||
},
|
||||
spacer = {
|
||||
order = 2,
|
||||
@@ -22,64 +28,88 @@ E.Options.args.databars = {
|
||||
},
|
||||
experience = {
|
||||
order = 3,
|
||||
get = function(info) return mod.db.experience[ info[getn(info)] ] end,
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperienceDimensions() end,
|
||||
type = "group",
|
||||
name = L["XP Bar"],
|
||||
get = function(info) return mod.db.experience[ info[getn(info)] ] end,
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperienceDimensions() end,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["XP Bar"]
|
||||
},
|
||||
enable = {
|
||||
order = 0,
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:EnableDisable_ExperienceBar() end
|
||||
},
|
||||
mouseover = {
|
||||
order = 1,
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = L["Mouseover"]
|
||||
name = L["Mouseover"],
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
hideAtMaxLevel = {
|
||||
order = 2,
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Hide At Max Level"],
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperience() end
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperience() end,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
hideInCombat = {
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = L["Hide in Combat"],
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperience() end,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
spacer = {
|
||||
order = 6,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
orientation = {
|
||||
order = 3,
|
||||
order = 7,
|
||||
type = "select",
|
||||
name = L["Statusbar Fill Orientation"],
|
||||
desc = L["Direction the bar moves on gains/losses"],
|
||||
values = {
|
||||
["HORIZONTAL"] = L["Horizontal"],
|
||||
["VERTICAL"] = L["Vertical"]
|
||||
}
|
||||
},
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
width = {
|
||||
order = 4,
|
||||
order = 8,
|
||||
type = "range",
|
||||
name = L["Width"],
|
||||
min = 5, max = ceil(GetScreenWidth() or 800), step = 1
|
||||
min = 5, max = ceil(GetScreenWidth() or 800), step = 1,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
height = {
|
||||
order = 5,
|
||||
order = 9,
|
||||
type = "range",
|
||||
name = L["Height"],
|
||||
min = 5, max = ceil(GetScreenHeight() or 800), step = 1
|
||||
min = 5, max = ceil(GetScreenHeight() or 800), step = 1,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
font = {
|
||||
order = 6,
|
||||
order = 10,
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font
|
||||
values = AceGUIWidgetLSMlists.font,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
textSize = {
|
||||
order = 7,
|
||||
name = L["Font Size"],
|
||||
order = 11,
|
||||
type = "range",
|
||||
min = 6, max = 33, step = 1
|
||||
name = L["Font Size"],
|
||||
min = 6, max = 22, step = 1,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
fontOutline = {
|
||||
order = 8,
|
||||
order = 12,
|
||||
type = "select",
|
||||
name = L["Font Outline"],
|
||||
values = {
|
||||
@@ -87,10 +117,11 @@ E.Options.args.databars = {
|
||||
["OUTLINE"] = "OUTLINE",
|
||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
}
|
||||
},
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
},
|
||||
textFormat = {
|
||||
order = 9,
|
||||
order = 13,
|
||||
type = "select",
|
||||
name = L["Text Format"],
|
||||
width = "double",
|
||||
@@ -102,71 +133,90 @@ E.Options.args.databars = {
|
||||
CURMAX = L["Current - Max"],
|
||||
CURPERC = L["Current - Percent"],
|
||||
CURREM = L["Current - Remaining"],
|
||||
CURPERCREM = L["Current - Percent (Remaining)"]
|
||||
CURPERCREM = L["Current - Percent (Remaining)"],
|
||||
},
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperience() end
|
||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:UpdateExperience() end,
|
||||
disabled = function() return not mod.db.experience.enable end
|
||||
}
|
||||
}
|
||||
},
|
||||
reputation = {
|
||||
order = 4,
|
||||
type = "group",
|
||||
name = L["Reputation"],
|
||||
get = function(info) return mod.db.reputation[ info[getn(info)] ] end,
|
||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:UpdateReputationDimensions() end,
|
||||
type = "group",
|
||||
name = REPUTATION,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["Reputation"]
|
||||
},
|
||||
enable = {
|
||||
order = 0,
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:EnableDisable_ReputationBar() end
|
||||
},
|
||||
mouseover = {
|
||||
order = 1,
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = L["Mouseover"]
|
||||
name = L["Mouseover"],
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
hideInCombat = {
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Hide in Combat"],
|
||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:UpdateReputation() end,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
spacer = {
|
||||
order = 2,
|
||||
order = 5,
|
||||
type = "description",
|
||||
name = " "
|
||||
name = ""
|
||||
},
|
||||
orientation = {
|
||||
order = 3,
|
||||
order = 6,
|
||||
type = "select",
|
||||
name = L["Statusbar Fill Orientation"],
|
||||
desc = L["Direction the bar moves on gains/losses"],
|
||||
values = {
|
||||
["HORIZONTAL"] = L["Horizontal"],
|
||||
["VERTICAL"] = L["Vertical"]
|
||||
}
|
||||
},
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
width = {
|
||||
order = 4,
|
||||
order = 7,
|
||||
type = "range",
|
||||
name = L["Width"],
|
||||
min = 5, max = ceil(GetScreenWidth() or 800), step = 1
|
||||
min = 5, max = ceil(GetScreenWidth() or 800), step = 1,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
height = {
|
||||
order = 5,
|
||||
order = 8,
|
||||
type = "range",
|
||||
name = L["Height"],
|
||||
min = 5, max = ceil(GetScreenHeight() or 800), step = 1
|
||||
min = 5, max = ceil(GetScreenHeight() or 800), step = 1,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
font = {
|
||||
order = 6,
|
||||
order = 9,
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font
|
||||
values = AceGUIWidgetLSMlists.font,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
textSize = {
|
||||
order = 7,
|
||||
name = FONT_SIZE,
|
||||
order = 10,
|
||||
name = L["Font Size"],
|
||||
type = "range",
|
||||
min = 6, max = 33, step = 1
|
||||
min = 6, max = 22, step = 1,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
fontOutline = {
|
||||
order = 8,
|
||||
order = 11,
|
||||
type = "select",
|
||||
name = L["Font Outline"],
|
||||
values = {
|
||||
@@ -174,10 +224,11 @@ E.Options.args.databars = {
|
||||
["OUTLINE"] = "OUTLINE",
|
||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
}
|
||||
},
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
},
|
||||
textFormat = {
|
||||
order = 9,
|
||||
order = 12,
|
||||
type = "select",
|
||||
name = L["Text Format"],
|
||||
width = "double",
|
||||
@@ -191,7 +242,8 @@ E.Options.args.databars = {
|
||||
CURREM = L["Current - Remaining"],
|
||||
CURPERCREM = L["Current - Percent (Remaining)"],
|
||||
},
|
||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:UpdateReputation() end
|
||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:UpdateReputation() end,
|
||||
disabled = function() return not mod.db.reputation.enable end
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,11 +171,6 @@ E.Options.args.datatexts = {
|
||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
}
|
||||
},
|
||||
wordWrap = {
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Word Wrap"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+1057
-903
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+92
-100
@@ -5,8 +5,6 @@ local MM = E:GetModule("Minimap");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local GENERAL, HIDE, MAIL_LABEL, MINIMAP_LABEL, NONE, WORLD_MAP = GENERAL, HIDE, MAIL_LABEL, MINIMAP_LABEL, NONE, WORLD_MAP
|
||||
|
||||
E.Options.args.maps = {
|
||||
type = "group",
|
||||
@@ -16,17 +14,17 @@ E.Options.args.maps = {
|
||||
worldMap = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = WORLD_MAP,
|
||||
name = L["World Map"],
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = WORLD_MAP
|
||||
name = L["World Map"]
|
||||
},
|
||||
generalGroup = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = GENERAL,
|
||||
name = L["General"],
|
||||
guiInline = true,
|
||||
args = {
|
||||
smallerWorldMap = {
|
||||
@@ -35,9 +33,9 @@ E.Options.args.maps = {
|
||||
name = L["Smaller World Map"],
|
||||
desc = L["Make the world map smaller."],
|
||||
get = function(info) return E.global.general.smallerWorldMap end,
|
||||
set = function(info, value) E.global.general.smallerWorldMap = value; E:StaticPopup_Show("GLOBAL_RL") end,
|
||||
set = function(info, value) E.global.general.smallerWorldMap = value E:StaticPopup_Show("GLOBAL_RL") end,
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
spacer = {
|
||||
order = 3,
|
||||
@@ -55,8 +53,8 @@ E.Options.args.maps = {
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
desc = L["Puts coordinates on the world map."],
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.enable; end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.enable = value; E:StaticPopup_Show("GLOBAL_RL"); end
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.enable end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.enable = value E:StaticPopup_Show("GLOBAL_RL") end
|
||||
},
|
||||
spacer = {
|
||||
order = 2,
|
||||
@@ -67,9 +65,9 @@ E.Options.args.maps = {
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Position"],
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.position; end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.position = value; WM:PositionCoords(); end,
|
||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable; end,
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.position end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.position = value WM:PositionCoords() end,
|
||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||
values = {
|
||||
["TOP"] = "TOP",
|
||||
["TOPLEFT"] = "TOPLEFT",
|
||||
@@ -83,8 +81,8 @@ E.Options.args.maps = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = L["X-Offset"],
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.xOffset; end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.xOffset = value; WM:PositionCoords(); end,
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.xOffset end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.xOffset = value WM:PositionCoords() end,
|
||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||
min = -200, max = 200, step = 1
|
||||
},
|
||||
@@ -92,8 +90,8 @@ E.Options.args.maps = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = L["Y-Offset"],
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.yOffset; end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.yOffset = value; WM:PositionCoords(); end,
|
||||
get = function(info) return E.global.general.WorldMapCoordinates.yOffset end,
|
||||
set = function(info, value) E.global.general.WorldMapCoordinates.yOffset = value WM:PositionCoords() end,
|
||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||
min = -200, max = 200, step = 1
|
||||
}
|
||||
@@ -104,19 +102,19 @@ E.Options.args.maps = {
|
||||
minimap = {
|
||||
order = 2,
|
||||
type = "group",
|
||||
name = MINIMAP_LABEL,
|
||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ]; end,
|
||||
name = L["Minimap"],
|
||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ] end,
|
||||
childGroups = "tab",
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = MINIMAP_LABEL
|
||||
name = L["Minimap"]
|
||||
},
|
||||
generalGroup = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = GENERAL,
|
||||
name = L["General"],
|
||||
guiInline = true,
|
||||
args = {
|
||||
enable = {
|
||||
@@ -124,8 +122,8 @@ E.Options.args.maps = {
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
desc = L["Enable/Disable the minimap. |cffFF0000Warning: This will prevent you from seeing the minimap datatexts.|r"],
|
||||
get = function(info) return E.private.general.minimap[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.private.general.minimap[ info[getn(info)] ] = value; E:StaticPopup_Show("PRIVATE_RL"); end,
|
||||
get = function(info) return E.private.general.minimap[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.private.general.minimap[ info[getn(info)] ] = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
},
|
||||
size = {
|
||||
order = 2,
|
||||
@@ -133,9 +131,9 @@ E.Options.args.maps = {
|
||||
name = L["Size"],
|
||||
desc = L["Adjust the size of the minimap."],
|
||||
min = 120, max = 250, step = 1,
|
||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.general.minimap[ info[getn(info)] ] = value; MM:UpdateSettings(); end,
|
||||
disabled = function() return not E.private.general.minimap.enable; end
|
||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.general.minimap[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||
disabled = function() return not E.private.general.minimap.enable end
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -144,43 +142,53 @@ E.Options.args.maps = {
|
||||
type = "group",
|
||||
name = L["Location Text"],
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["Location Text"]
|
||||
},
|
||||
locationText = {
|
||||
order = 1,
|
||||
type = "select",
|
||||
name = L["Location Text"],
|
||||
desc = L["Change settings for the display of the location text that is on the minimap."],
|
||||
get = function(info) return E.db.general.minimap.locationText; end,
|
||||
set = function(info, value) E.db.general.minimap.locationText = value; MM:UpdateSettings(); MM:Update_ZoneText(); end,
|
||||
get = function(info) return E.db.general.minimap.locationText end,
|
||||
set = function(info, value) E.db.general.minimap.locationText = value MM:UpdateSettings() MM:Update_ZoneText() end,
|
||||
values = {
|
||||
["MOUSEOVER"] = L["Minimap Mouseover"],
|
||||
["SHOW"] = L["Always Display"],
|
||||
["HIDE"] = HIDE
|
||||
["HIDE"] = L["Hide"]
|
||||
},
|
||||
disabled = function() return not E.private.general.minimap.enable; end
|
||||
disabled = function() return not E.private.general.minimap.enable end
|
||||
},
|
||||
spacer = {
|
||||
order = 2,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
locationFont = {
|
||||
order = 2,
|
||||
order = 3,
|
||||
type = "select",
|
||||
dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font,
|
||||
set = function(info, value) E.db.general.minimap.locationFont = value; MM:Update_ZoneText(); end,
|
||||
disabled = function() return not E.private.general.minimap.enable; end,
|
||||
set = function(info, value) E.db.general.minimap.locationFont = value MM:Update_ZoneText() end,
|
||||
disabled = function() return not E.private.general.minimap.enable end,
|
||||
},
|
||||
locationFontSize = {
|
||||
order = 3,
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 6, max = 36, step = 1,
|
||||
set = function(info, value) E.db.general.minimap.locationFontSize = value; MM:Update_ZoneText(); end,
|
||||
set = function(info, value) E.db.general.minimap.locationFontSize = value MM:Update_ZoneText() end,
|
||||
disabled = function() return not E.private.general.minimap.enable end,
|
||||
},
|
||||
locationFontOutline = {
|
||||
order = 4,
|
||||
order = 5,
|
||||
type = "select",
|
||||
name = L["Font Outline"],
|
||||
set = function(info, value) E.db.general.minimap.locationFontOutline = value; MM:Update_ZoneText(); end,
|
||||
disabled = function() return not E.private.general.minimap.enable; end,
|
||||
set = function(info, value) E.db.general.minimap.locationFontOutline = value MM:Update_ZoneText() end,
|
||||
disabled = function() return not E.private.general.minimap.enable end,
|
||||
values = {
|
||||
["NONE"] = L["None"],
|
||||
["OUTLINE"] = "OUTLINE",
|
||||
@@ -195,22 +203,27 @@ E.Options.args.maps = {
|
||||
type = "group",
|
||||
name = L["Reset Zoom"],
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["Reset Zoom"]
|
||||
},
|
||||
enableZoomReset = {
|
||||
order = 1,
|
||||
type = "toggle",
|
||||
name = L["Reset Zoom"],
|
||||
get = function(info) return E.db.general.minimap.resetZoom.enable; end,
|
||||
set = function(info, value) E.db.general.minimap.resetZoom.enable = value; MM:UpdateSettings(); end,
|
||||
disabled = function() return not E.private.general.minimap.enable; end
|
||||
get = function(info) return E.db.general.minimap.resetZoom.enable end,
|
||||
set = function(info, value) E.db.general.minimap.resetZoom.enable = value MM:UpdateSettings() end,
|
||||
disabled = function() return not E.private.general.minimap.enable end
|
||||
},
|
||||
zoomResetTime = {
|
||||
order = 2,
|
||||
type = "range",
|
||||
name = L["Seconds"],
|
||||
min = 1, max = 15, step = 1,
|
||||
get = function(info) return E.db.general.minimap.resetZoom.time; end,
|
||||
set = function(info, value) E.db.general.minimap.resetZoom.time = value; MM:UpdateSettings(); end,
|
||||
disabled = function() return (not E.db.general.minimap.resetZoom.enable or not E.private.general.minimap.enable); end
|
||||
get = function(info) return E.db.general.minimap.resetZoom.time end,
|
||||
set = function(info, value) E.db.general.minimap.resetZoom.time = value MM:UpdateSettings() end,
|
||||
disabled = function() return (not E.db.general.minimap.resetZoom.enable or not E.private.general.minimap.enable) end
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -219,19 +232,29 @@ E.Options.args.maps = {
|
||||
type = "group",
|
||||
name = L["Minimap Buttons"],
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["Minimap Buttons"]
|
||||
},
|
||||
calendar = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = L["Calendar"],
|
||||
get = function(info) return E.db.general.minimap.icons.calendar[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.general.minimap.icons.calendar[ info[getn(info)] ] = value; MM:UpdateSettings(); end,
|
||||
name = L["Time Info"],
|
||||
get = function(info) return E.db.general.minimap.icons.calendar[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.general.minimap.icons.calendar[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["Time Info"]
|
||||
},
|
||||
hideCalendar = {
|
||||
order = 1,
|
||||
type = "toggle",
|
||||
name = HIDE,
|
||||
get = function(info) return E.private.general.minimap.hideCalendar; end,
|
||||
set = function(info, value) E.private.general.minimap.hideCalendar = value; MM:UpdateSettings(); end,
|
||||
name = L["Hide"],
|
||||
get = function(info) return E.private.general.minimap.hideCalendar end,
|
||||
set = function(info, value) E.private.general.minimap.hideCalendar = value MM:UpdateSettings() end,
|
||||
width = "full"
|
||||
},
|
||||
spacer = {
|
||||
@@ -244,7 +267,7 @@ E.Options.args.maps = {
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Position"],
|
||||
disabled = function() return E.private.general.minimap.hideCalendar; end,
|
||||
disabled = function() return E.private.general.minimap.hideCalendar end,
|
||||
values = {
|
||||
["LEFT"] = L["Left"],
|
||||
["RIGHT"] = L["Right"],
|
||||
@@ -260,31 +283,37 @@ E.Options.args.maps = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = L["Scale"],
|
||||
min = 0.5, max = 2, step = 0.05
|
||||
min = 0.5, max = 2, step = 0.05,
|
||||
disabled = function() return E.private.general.minimap.hideCalendar end
|
||||
},
|
||||
xOffset = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = L["xOffset"],
|
||||
min = -50, max = 50, step = 1,
|
||||
disabled = function() return E.private.general.minimap.hideCalendar; end
|
||||
disabled = function() return E.private.general.minimap.hideCalendar end
|
||||
},
|
||||
yOffset = {
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = L["yOffset"],
|
||||
min = -50, max = 50, step = 1,
|
||||
disabled = function() return E.private.general.minimap.hideCalendar; end
|
||||
disabled = function() return E.private.general.minimap.hideCalendar end
|
||||
}
|
||||
}
|
||||
},
|
||||
mail = {
|
||||
order = 2,
|
||||
type = "group",
|
||||
name = MAIL_LABEL,
|
||||
get = function(info) return E.db.general.minimap.icons.mail[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.general.minimap.icons.mail[ info[getn(info)] ] = value; MM:UpdateSettings(); end,
|
||||
name = L["Mail"],
|
||||
get = function(info) return E.db.general.minimap.icons.mail[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.general.minimap.icons.mail[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["Mail"]
|
||||
},
|
||||
position = {
|
||||
order = 1,
|
||||
type = "select",
|
||||
@@ -324,51 +353,14 @@ E.Options.args.maps = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
name = L["PvP Queue"],
|
||||
get = function(info) return E.db.general.minimap.icons.battlefield[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.general.minimap.icons.battlefield[ info[getn(info)] ] = value; MM:UpdateSettings(); end,
|
||||
get = function(info) return E.db.general.minimap.icons.battlefield[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.general.minimap.icons.battlefield[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||
args = {
|
||||
position = {
|
||||
order = 1,
|
||||
type = "select",
|
||||
name = L["Position"],
|
||||
values = {
|
||||
["LEFT"] = L["Left"],
|
||||
["RIGHT"] = L["Right"],
|
||||
["TOP"] = L["Top"],
|
||||
["BOTTOM"] = L["Bottom"],
|
||||
["TOPLEFT"] = L["Top Left"],
|
||||
["TOPRIGHT"] = L["Top Right"],
|
||||
["BOTTOMLEFT"] = L["Bottom Left"],
|
||||
["BOTTOMRIGHT"] = L["Bottom Right"]
|
||||
}
|
||||
header = {
|
||||
order = 0,
|
||||
type = "header",
|
||||
name = L["PvP Queue"]
|
||||
},
|
||||
scale = {
|
||||
order = 2,
|
||||
type = "range",
|
||||
name = L["Scale"],
|
||||
min = 0.5, max = 2, step = 0.05
|
||||
},
|
||||
xOffset = {
|
||||
order = 3,
|
||||
type = "range",
|
||||
name = L["xOffset"],
|
||||
min = -50, max = 50, step = 1
|
||||
},
|
||||
yOffset = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = L["yOffset"],
|
||||
min = -50, max = 50, step = 1
|
||||
}
|
||||
}
|
||||
},
|
||||
difficulty = {
|
||||
order = 4,
|
||||
type = "group",
|
||||
name = L["Instance Difficulty"],
|
||||
get = function(info) return E.db.general.minimap.icons.difficulty[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.general.minimap.icons.difficulty[ info[getn(info)] ] = value; MM:UpdateSettings(); end,
|
||||
args = {
|
||||
position = {
|
||||
order = 1,
|
||||
type = "select",
|
||||
|
||||
@@ -5,9 +5,6 @@ local ACD = LibStub("AceConfigDialog-3.0");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local COLOR, FACTION_STANDING_LABEL4 = COLOR, FACTION_STANDING_LABEL4
|
||||
local FILTER, FILTERS, GENERAL, HEALTH, HIDE, LEVEL, NAME, NONE = FILTER, FILTERS, GENERAL, HEALTH, HIDE, LEVEL, NAME, NONE
|
||||
|
||||
local selectedFilter
|
||||
local filters
|
||||
@@ -823,7 +820,7 @@ E.Options.args.nameplate = {
|
||||
fontSize = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 4, max = 34, step = 1,
|
||||
},
|
||||
fontOutline = {
|
||||
|
||||
+33
-21
@@ -1,6 +1,10 @@
|
||||
local E, L, V, P, G = unpack(ElvUI);
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local getn = table.getn
|
||||
|
||||
E.Options.args.skins = {
|
||||
type = "group",
|
||||
name = L["Skins"],
|
||||
@@ -15,22 +19,30 @@ E.Options.args.skins = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = "Blizzard",
|
||||
get = function(info) return E.private.skins.blizzard.enable; end,
|
||||
set = function(info, value) E.private.skins.blizzard.enable = value; E:StaticPopup_Show("PRIVATE_RL"); end,
|
||||
get = function(info) return E.private.skins.blizzard.enable end,
|
||||
set = function(info, value) E.private.skins.blizzard.enable = value E:StaticPopup_Show("PRIVATE_RL"); end,
|
||||
},
|
||||
ace3 = {
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = "Ace3",
|
||||
get = function(info) return E.private.skins.ace3.enable; end,
|
||||
set = function(info, value) E.private.skins.ace3.enable = value; E:StaticPopup_Show("PRIVATE_RL"); end,
|
||||
get = function(info) return E.private.skins.ace3.enable end,
|
||||
set = function(info, value) E.private.skins.ace3.enable = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
},
|
||||
checkBoxSkin = {
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["CheckBox Skin"],
|
||||
get = function(info) return E.private.skins.checkBoxSkin end,
|
||||
set = function(info, value) E.private.skins.checkBoxSkin = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||
disabled = function() return not E.private.skins.ace3.enable end
|
||||
},
|
||||
blizzard = {
|
||||
order = 100,
|
||||
type = "group",
|
||||
name = "Blizzard",
|
||||
get = function(info) return E.private.skins.blizzard[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.private.skins.blizzard[ info[getn(info)] ] = value; E:StaticPopup_Show("CONFIG_RL"); end,
|
||||
get = function(info) return E.private.skins.blizzard[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.private.skins.blizzard[ info[getn(info)] ] = value E:StaticPopup_Show("CONFIG_RL") end,
|
||||
disabled = function() return not E.private.skins.blizzard.enable end,
|
||||
guiInline = true,
|
||||
args = {
|
||||
@@ -41,7 +53,7 @@ E.Options.args.skins = {
|
||||
},
|
||||
auctionhouse = {
|
||||
type = "toggle",
|
||||
name = L["Auction Frame"],
|
||||
name = L["Auctions"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
bags = {
|
||||
@@ -62,7 +74,12 @@ E.Options.args.skins = {
|
||||
},
|
||||
binding = {
|
||||
type = "toggle",
|
||||
name = L["KeyBinding Frame"],
|
||||
name = L["Key Binding"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
BlizzardOptions = {
|
||||
type = "toggle",
|
||||
name = L["Interface Options"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
character = {
|
||||
@@ -107,7 +124,7 @@ E.Options.args.skins = {
|
||||
},
|
||||
inspect = {
|
||||
type = "toggle",
|
||||
name = L["Inspect Frame"],
|
||||
name = L["Inspect"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
loot = {
|
||||
@@ -124,17 +141,17 @@ E.Options.args.skins = {
|
||||
},
|
||||
macro = {
|
||||
type = "toggle",
|
||||
name = L["Macro Frame"],
|
||||
name = L["Macros"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
mail = {
|
||||
type = "toggle",
|
||||
name = L["Mail Frame"],
|
||||
name = L["Mail"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
merchant = {
|
||||
type = "toggle",
|
||||
name = L["Merchant Frame"],
|
||||
name = L["Merchant"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
misc = {
|
||||
@@ -152,11 +169,6 @@ E.Options.args.skins = {
|
||||
name = L["Quest Frames"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
questtimers = {
|
||||
type = "toggle",
|
||||
name = QUEST_TIMERS,
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
raid = {
|
||||
type = "toggle",
|
||||
name = L["Raid Frame"],
|
||||
@@ -179,7 +191,7 @@ E.Options.args.skins = {
|
||||
},
|
||||
talent = {
|
||||
type = "toggle",
|
||||
name = L["Talent Frame"],
|
||||
name = L["Talents"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
taxi = {
|
||||
@@ -194,12 +206,12 @@ E.Options.args.skins = {
|
||||
},
|
||||
trade = {
|
||||
type = "toggle",
|
||||
name = L["Trade Frame"],
|
||||
name = L["Trade"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
tradeskill = {
|
||||
type = "toggle",
|
||||
name = L["TradeSkill Frame"],
|
||||
name = L["Tradeskills"],
|
||||
desc = L["TOGGLESKIN_DESC"]
|
||||
},
|
||||
trainer = {
|
||||
|
||||
+99
-80
@@ -1,19 +1,21 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local TT = E:GetModule("Tooltip");
|
||||
local LSM = E.LSM
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local tonumber, tostring = tonumber, tostring
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local ACTIONBAR_LABEL, FONT_SIZE, GENERAL, NONE, OPACITY = ACTIONBAR_LABEL, FONT_SIZE, GENERAL, NONE, OPACITY
|
||||
local GameTooltipStatusBar = _G["GameTooltipStatusBar"]
|
||||
|
||||
E.Options.args.tooltip = {
|
||||
type = "group",
|
||||
name = L["Tooltip"],
|
||||
childGroups = "tab",
|
||||
get = function(info) return E.db.tooltip[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.tooltip[ info[getn(info)] ] = value; end,
|
||||
get = function(info) return E.db.tooltip[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.tooltip[ info[getn(info)] ] = value end,
|
||||
args = {
|
||||
intro = {
|
||||
order = 1,
|
||||
@@ -30,46 +32,46 @@ E.Options.args.tooltip = {
|
||||
general = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
name = GENERAL,
|
||||
disabled = function() return not E.Tooltip; end,
|
||||
name = L["General"],
|
||||
disabled = function() return not E.Tooltip end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = GENERAL
|
||||
name = L["General"]
|
||||
},
|
||||
cursorAnchor = {
|
||||
order = 1,
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Cursor Anchor"],
|
||||
desc = L["Should tooltip be anchored to mouse cursor"]
|
||||
},
|
||||
targetInfo = {
|
||||
order = 2,
|
||||
order = 3,
|
||||
type = "toggle",
|
||||
name = L["Target Info"],
|
||||
desc = L["When in a raid group display if anyone in your raid is targeting the current tooltip unit."]
|
||||
},
|
||||
playerTitles = {
|
||||
order = 3,
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Player Titles"],
|
||||
desc = L["Display player titles."]
|
||||
},
|
||||
guildRanks = {
|
||||
order = 4,
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = L["Guild Ranks"],
|
||||
desc = L["Display guild ranks if a unit is guilded."]
|
||||
},
|
||||
inspectInfo = {
|
||||
order = 5,
|
||||
order = 6,
|
||||
type = "toggle",
|
||||
name = L["Inspect Info"],
|
||||
desc = L["Display the players talent spec and item level in the tooltip, this may not immediately update when mousing over a unit."],
|
||||
},
|
||||
itemPrice = {
|
||||
order = 6,
|
||||
order = 7,
|
||||
type = "toggle",
|
||||
name = L["Item Price"],
|
||||
desc = L["Display vendor sell value on item tooltips."],
|
||||
@@ -79,13 +81,24 @@ E.Options.args.tooltip = {
|
||||
end
|
||||
},
|
||||
spellID = {
|
||||
order = 7,
|
||||
order = 8,
|
||||
type = "toggle",
|
||||
name = L["Spell/Item IDs"],
|
||||
desc = L["Display the spell or item ID when mousing over a spell or item tooltip."]
|
||||
},
|
||||
itemLevel = {
|
||||
order = 9,
|
||||
type = "toggle",
|
||||
name = L["Item Level"],
|
||||
desc = L["Display the item level when mousing over a item."]
|
||||
},
|
||||
spacer = {
|
||||
order = 10,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
itemCount = {
|
||||
order = 8,
|
||||
order = 11,
|
||||
type = "select",
|
||||
name = L["Item Count"],
|
||||
desc = L["Display how many of a certain item you have in your possession."],
|
||||
@@ -97,38 +110,38 @@ E.Options.args.tooltip = {
|
||||
}
|
||||
},
|
||||
colorAlpha = {
|
||||
order = 9,
|
||||
order = 12,
|
||||
type = "range",
|
||||
name = OPACITY,
|
||||
name = L["Opacity"],
|
||||
isPercent = true,
|
||||
min = 0, max = 1, step = 0.01
|
||||
},
|
||||
fontGroup = {
|
||||
order = 10,
|
||||
order = 13,
|
||||
type = "group",
|
||||
guiInline = true,
|
||||
name = L["Tooltip Font Settings"],
|
||||
guiInline = true,
|
||||
args = {
|
||||
font = {
|
||||
order = 1,
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font,
|
||||
get = function(info) return E.db.tooltip.font; end,
|
||||
set = function(info, value) E.db.tooltip.font = value; TT:SetTooltipFonts(); end
|
||||
get = function(info) return E.db.tooltip.font end,
|
||||
set = function(info, value) E.db.tooltip.font = value TT:SetTooltipFonts() end
|
||||
},
|
||||
fontOutline = {
|
||||
order = 2,
|
||||
name = L["Font Outline"],
|
||||
type = "select",
|
||||
name = L["Font Outline"],
|
||||
values = {
|
||||
["NONE"] = L["None"],
|
||||
["OUTLINE"] = "OUTLINE",
|
||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
},
|
||||
get = function(info) return E.db.tooltip.fontOutline; end,
|
||||
set = function(info, value) E.db.tooltip.fontOutline = value; TT:SetTooltipFonts(); end,
|
||||
get = function(info) return E.db.tooltip.fontOutline end,
|
||||
set = function(info, value) E.db.tooltip.fontOutline = value TT:SetTooltipFonts() end,
|
||||
},
|
||||
spacer = {
|
||||
order = 3,
|
||||
@@ -140,8 +153,8 @@ E.Options.args.tooltip = {
|
||||
type = "range",
|
||||
name = L["Header Font Size"],
|
||||
min = 4, max = 33, step = 1,
|
||||
get = function(info) return E.db.tooltip.headerFontSize; end,
|
||||
set = function(info, value) E.db.tooltip.headerFontSize = value; TT:SetTooltipFonts(); end
|
||||
get = function(info) return E.db.tooltip.headerFontSize end,
|
||||
set = function(info, value) E.db.tooltip.headerFontSize = value TT:SetTooltipFonts() end
|
||||
},
|
||||
textFontSize = {
|
||||
order = 5,
|
||||
@@ -149,7 +162,7 @@ E.Options.args.tooltip = {
|
||||
name = L["Text Font Size"],
|
||||
min = 4, max = 33, step = 1,
|
||||
get = function(info) return E.db.tooltip.textFontSize end,
|
||||
set = function(info, value) E.db.tooltip.textFontSize = value; TT:SetTooltipFonts() end
|
||||
set = function(info, value) E.db.tooltip.textFontSize = value TT:SetTooltipFonts() end
|
||||
},
|
||||
smallTextFontSize = {
|
||||
order = 6,
|
||||
@@ -157,13 +170,13 @@ E.Options.args.tooltip = {
|
||||
name = L["Comparison Font Size"],
|
||||
desc = L["This setting controls the size of text in item comparison tooltips."],
|
||||
min = 4, max = 33, step = 1,
|
||||
get = function(info) return E.db.tooltip.smallTextFontSize; end,
|
||||
set = function(info, value) E.db.tooltip.smallTextFontSize = value; TT:SetTooltipFonts(); end
|
||||
get = function(info) return E.db.tooltip.smallTextFontSize end,
|
||||
set = function(info, value) E.db.tooltip.smallTextFontSize = value TT:SetTooltipFonts() end
|
||||
}
|
||||
}
|
||||
},
|
||||
factionColors = {
|
||||
order = 11,
|
||||
order = 13,
|
||||
type = "group",
|
||||
name = L["Custom Faction Colors"],
|
||||
guiInline = true,
|
||||
@@ -172,18 +185,18 @@ E.Options.args.tooltip = {
|
||||
order = 0,
|
||||
type = "toggle",
|
||||
name = L["Custom Faction Colors"],
|
||||
get = function(info) return E.db.tooltip.useCustomFactionColors; end,
|
||||
set = function(info, value) E.db.tooltip.useCustomFactionColors = value; end
|
||||
get = function(info) return E.db.tooltip.useCustomFactionColors end,
|
||||
set = function(info, value) E.db.tooltip.useCustomFactionColors = value end
|
||||
}
|
||||
},
|
||||
get = function(info)
|
||||
local t = E.db.tooltip.factionColors[ tonumber(info[getn(info)]) ];
|
||||
local d = P.tooltip.factionColors[ tonumber(info[getn(info)]) ];
|
||||
return t.r, t.g, t.b, t.a, d.r, d.g, d.b;
|
||||
local t = E.db.tooltip.factionColors[tonumber(info[getn(info)])]
|
||||
local d = P.tooltip.factionColors[tonumber(info[getn(info)])]
|
||||
return t.r, t.g, t.b, t.a, d.r, d.g, d.b
|
||||
end,
|
||||
set = function(info, r, g, b)
|
||||
local t = E.db.tooltip.factionColors[ tonumber(info[getn(info)]) ];
|
||||
t.r, t.g, t.b = r, g, b;
|
||||
local t = E.db.tooltip.factionColors[tonumber(info[getn(info)])]
|
||||
t.r, t.g, t.b = r, g, b
|
||||
end
|
||||
}
|
||||
}
|
||||
@@ -192,53 +205,59 @@ E.Options.args.tooltip = {
|
||||
order = 4,
|
||||
type = "group",
|
||||
name = L["Visibility"],
|
||||
get = function(info) return E.db.tooltip.visibility[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.tooltip.visibility[ info[getn(info)] ] = value; end,
|
||||
disabled = function() return not E.Tooltip; end,
|
||||
get = function(info) return E.db.tooltip.visibility[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.tooltip.visibility[ info[getn(info)] ] = value end,
|
||||
disabled = function() return not E.Tooltip end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["Visibility"]
|
||||
},
|
||||
actionbars = {
|
||||
order = 1,
|
||||
order = 2,
|
||||
type = "select",
|
||||
name = ACTIONBAR_LABEL,
|
||||
name = L["ActionBars"],
|
||||
desc = L["Choose when you want the tooltip to show. If a modifer is chosen, then you need to hold that down to show the tooltip."],
|
||||
values = {
|
||||
["ALL"] = L["Always Hide"],
|
||||
["NONE"] = L["Never Hide"],
|
||||
--["SHIFT"] = SHIFT_KEY,
|
||||
--["ALT"] = ALT_KEY,
|
||||
--["CTRL"] = CTRL_KEY
|
||||
["SHIFT"] = L["Shift Key"],
|
||||
["ALT"] = L["ALT-Key"],
|
||||
["CTRL"] = L["CTRL-Key"]
|
||||
}
|
||||
},
|
||||
bags = {
|
||||
order = 2,
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Bags/Bank"],
|
||||
desc = L["Choose when you want the tooltip to show. If a modifer is chosen, then you need to hold that down to show the tooltip."],
|
||||
values = {
|
||||
["ALL"] = L["Always Hide"],
|
||||
["NONE"] = L["Never Hide"],
|
||||
--["SHIFT"] = SHIFT_KEY,
|
||||
--["ALT"] = ALT_KEY,
|
||||
--["CTRL"] = CTRL_KEY
|
||||
["SHIFT"] = L["Shift Key"],
|
||||
["ALT"] = L["ALT-Key"],
|
||||
["CTRL"] = L["CTRL-Key"]
|
||||
}
|
||||
},
|
||||
unitFrames = {
|
||||
order = 3,
|
||||
order = 4,
|
||||
type = "select",
|
||||
name = L["Unitframes"],
|
||||
name = L["UnitFrames"],
|
||||
desc = L["Choose when you want the tooltip to show. If a modifer is chosen, then you need to hold that down to show the tooltip."],
|
||||
values = {
|
||||
["ALL"] = L["Always Hide"],
|
||||
["NONE"] = L["Never Hide"],
|
||||
--["SHIFT"] = SHIFT_KEY,
|
||||
--["ALT"] = ALT_KEY,
|
||||
--["CTRL"] = CTRL_KEY
|
||||
["SHIFT"] = L["Shift Key"],
|
||||
["ALT"] = L["ALT-Key"],
|
||||
["CTRL"] = L["CTRL-Key"]
|
||||
}
|
||||
},
|
||||
combat = {
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = L["Combat"],
|
||||
desc = L["Hide tooltip while in combat."]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -246,24 +265,24 @@ E.Options.args.tooltip = {
|
||||
order = 5,
|
||||
type = "group",
|
||||
name = L["Health Bar"],
|
||||
get = function(info) return E.db.tooltip.healthBar[ info[getn(info)] ]; end,
|
||||
set = function(info, value) E.db.tooltip.healthBar[ info[getn(info)] ] = value; end,
|
||||
disabled = function() return not E.Tooltip; end,
|
||||
get = function(info) return E.db.tooltip.healthBar[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.tooltip.healthBar[ info[getn(info)] ] = value end,
|
||||
disabled = function() return not E.Tooltip end,
|
||||
args = {
|
||||
header = {
|
||||
order = 0,
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["Health Bar"]
|
||||
},
|
||||
height = {
|
||||
order = 1,
|
||||
order = 2,
|
||||
type = "range",
|
||||
name = L["Height"],
|
||||
min = 1, max = 15, step = 1,
|
||||
set = function(info, value) E.db.tooltip.healthBar.height = value; GameTooltipStatusBar:Height(value); end
|
||||
set = function(info, value) E.db.tooltip.healthBar.height = value GameTooltipStatusBar:Height(value) end
|
||||
},
|
||||
statusPosition = {
|
||||
order = 2,
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Position"],
|
||||
values = {
|
||||
@@ -272,35 +291,35 @@ E.Options.args.tooltip = {
|
||||
}
|
||||
},
|
||||
text = {
|
||||
order = 3,
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Text"],
|
||||
set = function(info, value) E.db.tooltip.healthBar.text = value; if(value) then GameTooltipStatusBar.text:Show(); else GameTooltipStatusBar.text:Hide() end end
|
||||
set = function(info, value) E.db.tooltip.healthBar.text = value if(value) then GameTooltipStatusBar.text:Show(); else GameTooltipStatusBar.text:Hide() end end
|
||||
},
|
||||
font = {
|
||||
order = 4,
|
||||
order = 5,
|
||||
type = "select", dialogControl = "LSM30_Font",
|
||||
name = L["Font"],
|
||||
values = AceGUIWidgetLSMlists.font,
|
||||
set = function(info, value)
|
||||
E.db.tooltip.healthBar.font = value;
|
||||
E:FontTemplate(GameTooltipStatusBar.text, E.LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline);
|
||||
E.db.tooltip.healthBar.font = value
|
||||
E:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||
end,
|
||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||
},
|
||||
fontSize = {
|
||||
order = 5,
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
min = 6, max = 500, step = 1,
|
||||
name = L["Font Size"],
|
||||
min = 4, max = 33, step = 1,
|
||||
set = function(info, value)
|
||||
E.db.tooltip.healthBar.fontSize = value;
|
||||
E:FontTemplate(GameTooltipStatusBar.text, E.LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline);
|
||||
E.db.tooltip.healthBar.fontSize = value
|
||||
E:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||
end,
|
||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||
},
|
||||
fontOutline = {
|
||||
order = 6,
|
||||
order = 7,
|
||||
type = "select",
|
||||
name = L["Font Outline"],
|
||||
values = {
|
||||
@@ -310,22 +329,22 @@ E.Options.args.tooltip = {
|
||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||
},
|
||||
set = function(info, value)
|
||||
E.db.tooltip.healthBar.fontOutline = value;
|
||||
E:FontTemplate(GameTooltipStatusBar.text, E.LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline);
|
||||
E.db.tooltip.healthBar.fontOutline = value
|
||||
E:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||
end,
|
||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
for i = 1, 8 do
|
||||
E.Options.args.tooltip.args.general.args.factionColors.args[tostring(i)] = {
|
||||
E.Options.args.tooltip.args.general.args.factionColors.args[""..i] = {
|
||||
order = i,
|
||||
type = "color",
|
||||
hasAlpha = false,
|
||||
name = _G["FACTION_STANDING_LABEL" .. i],
|
||||
disabled = function() return not E.Tooltip or not E.db.tooltip.useCustomFactionColors; end,
|
||||
};
|
||||
name = _G["FACTION_STANDING_LABEL"..i],
|
||||
disabled = function() return not E.Tooltip or not E.db.tooltip.useCustomFactionColors end,
|
||||
}
|
||||
end
|
||||
+79
-391
@@ -10,11 +10,6 @@ local find, format, lower, match, gsub, strsplit = string.find, string.format, s
|
||||
local IsAddOnLoaded = IsAddOnLoaded
|
||||
local GetScreenWidth = GetScreenWidth
|
||||
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
||||
local HIDE, DELETE, NONE, FILTERS, FONT_SIZE, COLOR = HIDE, DELETE, NONE, FILTERS, FONT_SIZE, COLOR
|
||||
local DISABLE, DEFAULTS = DISABLE, DEFAULTS
|
||||
local SHIFT_KEY, ALT_KEY, CTRL_KEY = "SHIFT_KEY", "ALT_KEY", "CTRL_KEY"
|
||||
local HEALTH, MANA, NAME, PLAYER, CLASS, GROUP, HAPPINESS = HEALTH, MANA, NAME, PLAYER, CLASS, GROUP, HAPPINESS
|
||||
local RAGE, FOCUS, ENERGY = RAGE, FOCUS, ENERGY
|
||||
|
||||
local ACD = LibStub("AceConfigDialog-3.0")
|
||||
|
||||
@@ -83,7 +78,7 @@ local growthDirectionValues = {
|
||||
}
|
||||
|
||||
local smartAuraPositionValues = {
|
||||
["DISABLED"] = DISABLE,
|
||||
["DISABLED"] = L["Disable"],
|
||||
["BUFFS_ON_DEBUFFS"] = L["Position Buffs on Debuffs"],
|
||||
["DEBUFFS_ON_BUFFS"] = L["Position Debuffs on Buffs"],
|
||||
["FLUID_BUFFS_ON_DEBUFFS"] = L["Fluid Position Buffs on Debuffs"],
|
||||
@@ -160,7 +155,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
fontSize = {
|
||||
order = 9,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 6, max = 22, step = 1
|
||||
},
|
||||
clickThrough = {
|
||||
@@ -177,9 +172,9 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
values = {
|
||||
["TIME_REMAINING"] = L["Time Remaining"],
|
||||
["DURATION"] = L["Duration"],
|
||||
["NAME"] = NAME,
|
||||
["NAME"] = L["Name"],
|
||||
["INDEX"] = L["Index"],
|
||||
["PLAYER"] = PLAYER
|
||||
["PLAYER"] = L["Player"]
|
||||
}
|
||||
},
|
||||
sortDirection = {
|
||||
@@ -195,7 +190,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
filters = {
|
||||
order = 100,
|
||||
type = "group",
|
||||
name = FILTERS,
|
||||
name = L["Filters"],
|
||||
guiInline = true,
|
||||
args = {}
|
||||
}
|
||||
@@ -211,7 +206,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
values = {
|
||||
["FRAME"] = L["Frame"],
|
||||
["DEBUFFS"] = L["Debuffs"],
|
||||
["HEALTH"] = HEALTH,
|
||||
["HEALTH"] = L["Health"],
|
||||
["POWER"] = L["Power"]
|
||||
},
|
||||
disabled = function()
|
||||
@@ -228,7 +223,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
values = {
|
||||
["FRAME"] = L["Frame"],
|
||||
["BUFFS"] = L["Buffs"],
|
||||
["HEALTH"] = HEALTH,
|
||||
["HEALTH"] = L["Health"],
|
||||
["POWER"] = L["Power"]
|
||||
},
|
||||
disabled = function()
|
||||
@@ -268,13 +263,13 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
}
|
||||
|
||||
config.args.filters.args.useFilter = {
|
||||
order = 18,
|
||||
order = 20,
|
||||
type = "select",
|
||||
name = L["Additional Filter"],
|
||||
desc = L["Select an additional filter to use. If the selected filter is a whitelist and no other filters are being used (with the exception of Block Non-Personal Auras) then it will block anything not on the whitelist, otherwise it will simply add auras on the whitelist in addition to any other filter settings."],
|
||||
values = function()
|
||||
filters = {}
|
||||
filters[""] = NONE
|
||||
filters[""] = L["None"]
|
||||
for filter in pairs(E.global.unitframe.aurafilters) do
|
||||
filters[filter] = filter
|
||||
end
|
||||
@@ -355,13 +350,13 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
}
|
||||
}
|
||||
config.args.filters.args.useFilter = {
|
||||
order = 18,
|
||||
order = 19,
|
||||
type = "select",
|
||||
name = L["Additional Filter"],
|
||||
desc = L["Select an additional filter to use. If the selected filter is a whitelist and no other filters are being used (with the exception of Block Non-Personal Auras) then it will block anything not on the whitelist, otherwise it will simply add auras on the whitelist in addition to any other filter settings."],
|
||||
values = function()
|
||||
filters = {}
|
||||
filters[""] = NONE
|
||||
filters[""] = L["None"]
|
||||
for filter in pairs(E.global.unitframe.aurafilters) do
|
||||
filters[filter] = filter
|
||||
end
|
||||
@@ -371,14 +366,14 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
||||
end
|
||||
|
||||
config.args.filters.args.minDuration = {
|
||||
order = 19,
|
||||
order = 21,
|
||||
type = "range",
|
||||
name = L["Minimum Duration"],
|
||||
desc = L["Don't display auras that are shorter than this duration (in seconds). Set to zero to disable."],
|
||||
min = 0, max = 10800, step = 1,
|
||||
}
|
||||
config.args.filters.args.maxDuration = {
|
||||
order = 20,
|
||||
order = 22,
|
||||
type = "range",
|
||||
name = L["Maximum Duration"],
|
||||
desc = L["Don't display auras that are longer than this duration (in seconds). Set to zero to disable."],
|
||||
@@ -427,14 +422,14 @@ local function GetOptionsTable_Health(isGroupFrame, updateFunc, groupName, numUn
|
||||
local config = {
|
||||
order = 100,
|
||||
type = "group",
|
||||
name = HEALTH,
|
||||
name = L["Health"],
|
||||
get = function(info) return E.db.unitframe.units[groupName].health[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units[groupName].health[ info[getn(info)] ] = value updateFunc(UF, groupName, numUnits) end,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = HEALTH
|
||||
name = L["Health"]
|
||||
},
|
||||
position = {
|
||||
order = 2,
|
||||
@@ -708,14 +703,14 @@ local function GetOptionsTable_Name(updateFunc, groupName, numUnits)
|
||||
local config = {
|
||||
order = 300,
|
||||
type = "group",
|
||||
name = NAME,
|
||||
name = L["Name"],
|
||||
get = function(info) return E.db.unitframe.units[groupName].name[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units[groupName].name[ info[getn(info)] ] = value updateFunc(UF, groupName, numUnits) end,
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = NAME
|
||||
name = L["Name"]
|
||||
},
|
||||
position = {
|
||||
order = 2,
|
||||
@@ -825,7 +820,7 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
|
||||
forceshow = {
|
||||
order = 3,
|
||||
type = "execute",
|
||||
name = L["Show"].." / "..HIDE,
|
||||
name = L["Show"].." / "..L["Hide"],
|
||||
func = function()
|
||||
local frameName = E:StringTitle(groupName)
|
||||
frameName = "ElvUF_"..frameName
|
||||
@@ -1060,7 +1055,7 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
|
||||
tickColor = {
|
||||
order = 2,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
get = function(info)
|
||||
local c = E.db.unitframe.units[groupName].castbar.tickColor
|
||||
@@ -1182,7 +1177,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
||||
fontSize = {
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
},
|
||||
fontOutline = {
|
||||
@@ -1243,7 +1238,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
get = function(info)
|
||||
local c = E.db.unitframe.units.raid.rdebuffs.duration.color
|
||||
@@ -1287,7 +1282,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
get = function(info)
|
||||
local c = E.db.unitframe.units[groupName].rdebuffs.stack.color
|
||||
@@ -1448,7 +1443,7 @@ local function CreateCustomTextGroup(unit, objectName)
|
||||
delete = {
|
||||
order = 2,
|
||||
type = "execute",
|
||||
name = DELETE,
|
||||
name = L["Delete"],
|
||||
func = function()
|
||||
E.Options.args.unitframe.args[unit].args.customText.args[objectName] = nil
|
||||
E.db.unitframe.units[unit].customTexts[objectName] = nil
|
||||
@@ -1492,7 +1487,7 @@ local function CreateCustomTextGroup(unit, objectName)
|
||||
size = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 4, max = 32, step = 1
|
||||
},
|
||||
fontOutline = {
|
||||
@@ -1567,7 +1562,7 @@ local function GetOptionsTable_CustomText(updateFunc, groupName, numUnits)
|
||||
width = "full",
|
||||
get = function() return "" end,
|
||||
set = function(info, textName)
|
||||
for object, _ in pairs(E.db.unitframe.units[groupName]) do
|
||||
for object in pairs(E.db.unitframe.units[groupName]) do
|
||||
if lower(object) == lower(textName) then
|
||||
E:Print(L["The name you have selected is already in use by another element."])
|
||||
return
|
||||
@@ -1666,7 +1661,7 @@ E.Options.args.unitframe = {
|
||||
colorsShortcut = {
|
||||
order = 9,
|
||||
type = "execute",
|
||||
name = COLOR,
|
||||
name = L["Colors"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "generalOptionsGroup", "allColorsGroup") end,
|
||||
disabled = function() return not E.UnitFrames end
|
||||
@@ -1721,24 +1716,8 @@ E.Options.args.unitframe = {
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
--[[focusShortcut = {
|
||||
order = 17,
|
||||
type = "execute",
|
||||
name = L["Focus Frame"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "focus") end,
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
focustargetShortcut = {
|
||||
order = 18,
|
||||
type = "execute",
|
||||
name = L["FocusTarget Frame"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "focustarget") end,
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},--]]
|
||||
petShortcut = {
|
||||
order = 19,
|
||||
order = 17,
|
||||
type = "execute",
|
||||
name = L["Pet Frame"],
|
||||
buttonElvUI = true,
|
||||
@@ -1746,12 +1725,12 @@ E.Options.args.unitframe = {
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
spacer5 = {
|
||||
order = 20,
|
||||
order = 18,
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
pettargetShortcut = {
|
||||
order = 21,
|
||||
order = 19,
|
||||
type = "execute",
|
||||
name = L["PetTarget Frame"],
|
||||
buttonElvUI = true,
|
||||
@@ -1759,28 +1738,28 @@ E.Options.args.unitframe = {
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
partyShortcut = {
|
||||
order = 23,
|
||||
order = 20,
|
||||
type = "execute",
|
||||
name = L["Party Frames"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "party") end,
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
spacer6 = {
|
||||
order = 24,
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
raidShortcut = {
|
||||
order = 25,
|
||||
order = 21,
|
||||
type = "execute",
|
||||
name = L["Raid Frames"],
|
||||
buttonElvUI = true,
|
||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "raid") end,
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
spacer6 = {
|
||||
order = 22,
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
raid40Shortcut = {
|
||||
order = 26,
|
||||
order = 23,
|
||||
type = "execute",
|
||||
name = L["Raid-40 Frames"],
|
||||
buttonElvUI = true,
|
||||
@@ -1788,7 +1767,7 @@ E.Options.args.unitframe = {
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
raidpetShortcut = {
|
||||
order = 27,
|
||||
order = 24,
|
||||
type = "execute",
|
||||
name = L["Raid Pet Frames"],
|
||||
buttonElvUI = true,
|
||||
@@ -1796,12 +1775,12 @@ E.Options.args.unitframe = {
|
||||
disabled = function() return not E.UnitFrames end
|
||||
},
|
||||
spacer7 = {
|
||||
order = 28,
|
||||
order = 25,
|
||||
type = "description",
|
||||
name = " "
|
||||
},
|
||||
generalOptionsGroup = {
|
||||
order = 31,
|
||||
order = 26,
|
||||
type = "group",
|
||||
name = L["General Options"],
|
||||
childGroups = "tab",
|
||||
@@ -1863,9 +1842,9 @@ E.Options.args.unitframe = {
|
||||
desc = L["You need to hold this modifier down in order to blacklist an aura by right-clicking the icon. Set to None to disable the blacklist functionality."],
|
||||
values = {
|
||||
["NONE"] = L["None"],
|
||||
["SHIFT"] = SHIFT_KEY,
|
||||
["ALT"] = ALT_KEY,
|
||||
["CTRL"] = CTRL_KEY
|
||||
["SHIFT"] = L["Shift Key"],
|
||||
["ALT"] = L["ALT-Key"],
|
||||
["CTRL"] = L["CTRL-Key"]
|
||||
}
|
||||
},
|
||||
barGroup = {
|
||||
@@ -1916,7 +1895,7 @@ E.Options.args.unitframe = {
|
||||
fontSize = {
|
||||
order = 5,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
desc = L["Set the font size for unitframes."],
|
||||
min = 4, max = 32, step = 1,
|
||||
set = function(info, value) E.db.unitframe[ info[getn(info)] ] = value UF:Update_FontStrings() end
|
||||
@@ -1991,7 +1970,7 @@ E.Options.args.unitframe = {
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
disabled = function() return not E.db.unitframe.colors.frameGlow.mainGlow.enable or E.db.unitframe.colors.frameGlow.mainGlow.class end
|
||||
}
|
||||
@@ -2039,7 +2018,7 @@ E.Options.args.unitframe = {
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
disabled = function() return not E.db.unitframe.colors.frameGlow.targetGlow.enable or E.db.unitframe.colors.frameGlow.targetGlow.class end
|
||||
}
|
||||
@@ -2101,7 +2080,7 @@ E.Options.args.unitframe = {
|
||||
color = {
|
||||
order = 5,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
disabled = function() return not E.db.unitframe.colors.frameGlow.mouseoverGlow.enable or E.db.unitframe.colors.frameGlow.mouseoverGlow.class end
|
||||
}
|
||||
@@ -2113,7 +2092,7 @@ E.Options.args.unitframe = {
|
||||
order = 3,
|
||||
type = "group",
|
||||
childGroups = "tree",
|
||||
name = COLOR,
|
||||
name = L["Colors"],
|
||||
get = function(info) return E.db.unitframe.colors[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.colors[ info[getn(info)] ] = value UF:Update_AllFrames() end,
|
||||
args = {
|
||||
@@ -2141,7 +2120,7 @@ E.Options.args.unitframe = {
|
||||
healthGroup = {
|
||||
order = 2,
|
||||
type = "group",
|
||||
name = HEALTH,
|
||||
name = L["Health"],
|
||||
get = function(info)
|
||||
local t = E.db.unitframe.colors[ info[getn(info)] ]
|
||||
local d = P.unitframe.colors[ info[getn(info)] ]
|
||||
@@ -2156,7 +2135,7 @@ E.Options.args.unitframe = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = HEALTH
|
||||
name = L["Health"]
|
||||
},
|
||||
healthclass = {
|
||||
order = 2,
|
||||
@@ -2217,7 +2196,7 @@ E.Options.args.unitframe = {
|
||||
health = {
|
||||
order = 9,
|
||||
type = "color",
|
||||
name = HEALTH
|
||||
name = L["Health"]
|
||||
},
|
||||
health_backdrop = {
|
||||
order = 10,
|
||||
@@ -2289,22 +2268,22 @@ E.Options.args.unitframe = {
|
||||
MANA = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = MANA
|
||||
name = L["Mana"]
|
||||
},
|
||||
RAGE = {
|
||||
order = 5,
|
||||
type = "color",
|
||||
name = RAGE
|
||||
name = L["Rage"]
|
||||
},
|
||||
FOCUS = {
|
||||
order = 6,
|
||||
type = "color",
|
||||
name = FOCUS
|
||||
name = L["Focus"]
|
||||
},
|
||||
ENERGY = {
|
||||
order = 7,
|
||||
type = "color",
|
||||
name = ENERGY
|
||||
name = L["Energy"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2441,7 +2420,7 @@ E.Options.args.unitframe = {
|
||||
}
|
||||
},
|
||||
debuffHighlight = {
|
||||
order = 7,
|
||||
order = 8,
|
||||
type = "group",
|
||||
name = L["Debuff Highlighting"],
|
||||
get = function(info)
|
||||
@@ -2512,14 +2491,8 @@ E.Options.args.unitframe = {
|
||||
name = L["Target Frame"],
|
||||
desc = L["Disables the target and target of target unitframes."]
|
||||
},
|
||||
--[[focus = {
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Focus Frame"],
|
||||
desc = L["Disables the focus and target of focus unitframes."]
|
||||
},--]]
|
||||
party = {
|
||||
order = 6,
|
||||
order = 4,
|
||||
type = "toggle",
|
||||
name = L["Party Frames"]
|
||||
}
|
||||
@@ -2945,7 +2918,7 @@ E.Options.args.unitframe.args.player = {
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
disabled = function()
|
||||
return E.db.unitframe.units.player.RestIcon.defaultColor
|
||||
@@ -2997,8 +2970,8 @@ E.Options.args.unitframe.args.player = {
|
||||
values = {
|
||||
["CUSTOM"] = L["Custom"],
|
||||
["DEFAULT"] = L["Default"],
|
||||
["RESTING"] = L["Icon 1"],
|
||||
["RESTING1"] = L["Icon 2"]
|
||||
["RESTING"] = L["Resting"],
|
||||
["RESTING1"] = L["Resting 2"]
|
||||
}
|
||||
},
|
||||
customTexture = {
|
||||
@@ -3040,7 +3013,7 @@ E.Options.args.unitframe.args.player = {
|
||||
color = {
|
||||
order = 4,
|
||||
type = "color",
|
||||
name = COLOR,
|
||||
name = L["Color"],
|
||||
hasAlpha = true,
|
||||
disabled = function()
|
||||
return E.db.unitframe.units.player.CombatIcon.defaultColor
|
||||
@@ -3287,13 +3260,6 @@ E.Options.args.unitframe.args.target = {
|
||||
get = function(info) return E.db.unitframe.units.target.power.hideonnpc end,
|
||||
set = function(info, value) E.db.unitframe.units.target.power.hideonnpc = value UF:CreateAndUpdateUF("target") end
|
||||
},
|
||||
--[[middleClickFocus = {
|
||||
order = 11,
|
||||
type = "toggle",
|
||||
name = L["Middle Click - Set Focus"],
|
||||
desc = L["Middle clicking the unit frame will cause your focus to match the unit."],
|
||||
disabled = function() return IsAddOnLoaded("Clique") end
|
||||
},--]]
|
||||
threatStyle = {
|
||||
order = 12,
|
||||
type = "select",
|
||||
@@ -3843,284 +3809,6 @@ E.Options.args.unitframe.args.targettargettarget = {
|
||||
}
|
||||
}
|
||||
|
||||
--[[E.Options.args.unitframe.args.focus = {
|
||||
order = 600,
|
||||
type = "group",
|
||||
name = L["Focus Frame"],
|
||||
childGroups = "tab",
|
||||
get = function(info) return E.db.unitframe.units.focus[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units.focus[ info[getn(info)] ] = value UF:CreateAndUpdateUF("focus") end,
|
||||
disabled = function() return not E.UnitFrames end,
|
||||
args = {
|
||||
generalGroup = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = L["General"],
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["General"]
|
||||
},
|
||||
enable = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
width = "full"
|
||||
},
|
||||
copyFrom = {
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Copy From"],
|
||||
desc = L["Select a unit to copy settings from."],
|
||||
values = UF.units,
|
||||
set = function(info, value) UF:MergeUnitSettings(value, "focus") end
|
||||
},
|
||||
resetSettings = {
|
||||
order = 4,
|
||||
type = "execute",
|
||||
name = L["Restore Defaults"],
|
||||
func = function(info) E:StaticPopup_Show("RESET_UF_UNIT", L["Focus Frame"], nil, {unit="focus", mover="Focus Frame"}) end
|
||||
},
|
||||
showAuras = {
|
||||
order = 5,
|
||||
type = "execute",
|
||||
name = L["Show Auras"],
|
||||
func = function()
|
||||
local frame = ElvUF_Focus
|
||||
if frame.forceShowAuras then
|
||||
frame.forceShowAuras = nil
|
||||
else
|
||||
frame.forceShowAuras = true
|
||||
end
|
||||
|
||||
UF:CreateAndUpdateUF("focus")
|
||||
end
|
||||
},
|
||||
width = {
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = L["Width"],
|
||||
min = 50, max = 1000, step = 1
|
||||
},
|
||||
height = {
|
||||
order = 7,
|
||||
type = "range",
|
||||
name = L["Height"],
|
||||
min = 10, max = 500, step = 1
|
||||
},
|
||||
rangeCheck = {
|
||||
order = 8,
|
||||
type = "toggle",
|
||||
name = L["Range Check"],
|
||||
desc = L["Check if you are in range to cast spells on this specific unit."]
|
||||
},
|
||||
healPrediction = {
|
||||
order = 9,
|
||||
type = "toggle",
|
||||
name = L["Heal Prediction"],
|
||||
desc = L["Show an incoming heal prediction bar on the unitframe. Also display a slightly different colored bar for incoming overheals."]
|
||||
},
|
||||
hideonnpc = {
|
||||
order = 10,
|
||||
type = "toggle",
|
||||
name = L["Text Toggle On NPC"],
|
||||
desc = L["Power text will be hidden on NPC targets, in addition the name text will be repositioned to the power texts anchor point."],
|
||||
get = function(info) return E.db.unitframe.units.focus.power.hideonnpc end,
|
||||
set = function(info, value) E.db.unitframe.units.focus.power.hideonnpc = value UF:CreateAndUpdateUF("focus") end
|
||||
},
|
||||
threatStyle = {
|
||||
order = 11,
|
||||
type = "select",
|
||||
name = L["Threat Display Mode"],
|
||||
values = threatValues
|
||||
},
|
||||
smartAuraPosition = {
|
||||
order = 12,
|
||||
type = "select",
|
||||
name = L["Smart Aura Position"],
|
||||
desc = L["Will show Buffs in the Debuff position when there are no Debuffs active, or vice versa."],
|
||||
values = smartAuraPositionValues
|
||||
},
|
||||
orientation = {
|
||||
order = 13,
|
||||
type = "select",
|
||||
name = L["Frame Orientation"],
|
||||
desc = L["Set the orientation of the UnitFrame."],
|
||||
values = orientationValues
|
||||
},
|
||||
colorOverride = {
|
||||
order = 14,
|
||||
type = "select",
|
||||
name = L["Class Color Override"],
|
||||
desc = L["Override the default class color setting."],
|
||||
values = colorOverrideValues
|
||||
},
|
||||
disableMouseoverGlow = {
|
||||
order = 15,
|
||||
type = "toggle",
|
||||
name = L["Block Mouseover Glow"],
|
||||
desc = L["Forces Mouseover Glow to be disabled for these frames"]
|
||||
},
|
||||
disableTargetGlow = {
|
||||
order = 16,
|
||||
type = "toggle",
|
||||
name = L["Block Target Glow"],
|
||||
desc = L["Forces Target Glow to be disabled for these frames"]
|
||||
}
|
||||
}
|
||||
},
|
||||
customText = GetOptionsTable_CustomText(UF.CreateAndUpdateUF, "focus"),
|
||||
health = GetOptionsTable_Health(false, UF.CreateAndUpdateUF, "focus"),
|
||||
infoPanel = GetOptionsTable_InformationPanel(UF.CreateAndUpdateUF, "focus"),
|
||||
power = GetOptionsTable_Power(nil, UF.CreateAndUpdateUF, "focus"),
|
||||
name = GetOptionsTable_Name(UF.CreateAndUpdateUF, "focus"),
|
||||
portrait = GetOptionsTable_Portrait(UF.CreateAndUpdateUF, "focus"),
|
||||
buffs = GetOptionsTable_Auras(false, "buffs", false, UF.CreateAndUpdateUF, "focus"),
|
||||
debuffs = GetOptionsTable_Auras(false, "debuffs", false, UF.CreateAndUpdateUF, "focus"),
|
||||
castbar = GetOptionsTable_Castbar(false, UF.CreateAndUpdateUF, "focus"),
|
||||
raidicon = GetOptionsTable_RaidIcon(UF.CreateAndUpdateUF, "focus"),
|
||||
GPSArrow = GetOptionsTableForNonGroup_GPS("focus"),
|
||||
}
|
||||
}--]]
|
||||
|
||||
--[[E.Options.args.unitframe.args.focustarget = {
|
||||
order = 700,
|
||||
type = "group",
|
||||
name = L["FocusTarget Frame"],
|
||||
childGroups = "tab",
|
||||
get = function(info) return E.db.unitframe.units.focustarget[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units.focustarget[ info[getn(info)] ] = value UF:CreateAndUpdateUF("focustarget") end,
|
||||
disabled = function() return not E.UnitFrames end,
|
||||
args = {
|
||||
generalGroup = {
|
||||
order = 1,
|
||||
type = "group",
|
||||
name = L["General"],
|
||||
args = {
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = L["General"]
|
||||
},
|
||||
enable = {
|
||||
order = 2,
|
||||
type = "toggle",
|
||||
name = L["Enable"],
|
||||
width = "full"
|
||||
},
|
||||
copyFrom = {
|
||||
order = 3,
|
||||
type = "select",
|
||||
name = L["Copy From"],
|
||||
desc = L["Select a unit to copy settings from."],
|
||||
values = UF.units,
|
||||
set = function(info, value) UF:MergeUnitSettings(value, "focustarget") end
|
||||
},
|
||||
resetSettings = {
|
||||
order = 4,
|
||||
type = "execute",
|
||||
name = L["Restore Defaults"],
|
||||
func = function(info) E:StaticPopup_Show("RESET_UF_UNIT", L["FocusTarget Frame"], nil, {unit="focustarget", mover="FocusTarget Frame"}) end
|
||||
},
|
||||
showAuras = {
|
||||
order = 5,
|
||||
type = "execute",
|
||||
name = L["Show Auras"],
|
||||
func = function()
|
||||
local frame = ElvUF_FocusTarget
|
||||
if frame.forceShowAuras then
|
||||
frame.forceShowAuras = nil
|
||||
else
|
||||
frame.forceShowAuras = true
|
||||
end
|
||||
UF:CreateAndUpdateUF("focustarget")
|
||||
end
|
||||
},
|
||||
width = {
|
||||
order = 6,
|
||||
type = "range",
|
||||
name = L["Width"],
|
||||
min = 50, max = 1000, step = 1
|
||||
},
|
||||
height = {
|
||||
order = 7,
|
||||
type = "range",
|
||||
name = L["Height"],
|
||||
min = 10, max = 500, step = 1
|
||||
},
|
||||
rangeCheck = {
|
||||
order = 8,
|
||||
type = "toggle",
|
||||
name = L["Range Check"],
|
||||
desc = L["Check if you are in range to cast spells on this specific unit."]
|
||||
},
|
||||
hideonnpc = {
|
||||
order = 9,
|
||||
type = "toggle",
|
||||
name = L["Text Toggle On NPC"],
|
||||
desc = L["Power text will be hidden on NPC targets, in addition the name text will be repositioned to the power texts anchor point."],
|
||||
get = function(info) return E.db.unitframe.units.focustarget.power.hideonnpc end,
|
||||
set = function(info, value) E.db.unitframe.units.focustarget.power.hideonnpc = value UF:CreateAndUpdateUF("focustarget") end
|
||||
},
|
||||
threatStyle = {
|
||||
order = 10,
|
||||
type = "select",
|
||||
name = L["Threat Display Mode"],
|
||||
values = threatValues
|
||||
},
|
||||
smartAuraPosition = {
|
||||
order = 11,
|
||||
type = "select",
|
||||
name = L["Smart Aura Position"],
|
||||
desc = L["Will show Buffs in the Debuff position when there are no Debuffs active, or vice versa."],
|
||||
values = smartAuraPositionValues
|
||||
},
|
||||
orientation = {
|
||||
order = 12,
|
||||
type = "select",
|
||||
name = L["Frame Orientation"],
|
||||
desc = L["Set the orientation of the UnitFrame."],
|
||||
values = orientationValues
|
||||
},
|
||||
colorOverride = {
|
||||
order = 13,
|
||||
type = "select",
|
||||
name = L["Class Color Override"],
|
||||
desc = L["Override the default class color setting."],
|
||||
values = colorOverrideValues
|
||||
},
|
||||
spacer = {
|
||||
order = 14,
|
||||
type = "description",
|
||||
name = ""
|
||||
},
|
||||
disableMouseoverGlow = {
|
||||
order = 15,
|
||||
type = "toggle",
|
||||
name = L["Block Mouseover Glow"],
|
||||
desc = L["Forces Mouseover Glow to be disabled for these frames"]
|
||||
},
|
||||
disableTargetGlow = {
|
||||
order = 16,
|
||||
type = "toggle",
|
||||
name = L["Block Target Glow"],
|
||||
desc = L["Forces Target Glow to be disabled for these frames"]
|
||||
}
|
||||
}
|
||||
},
|
||||
customText = GetOptionsTable_CustomText(UF.CreateAndUpdateUF, "focustarget"),
|
||||
health = GetOptionsTable_Health(false, UF.CreateAndUpdateUF, "focustarget"),
|
||||
infoPanel = GetOptionsTable_InformationPanel(UF.CreateAndUpdateUF, "focustarget"),
|
||||
power = GetOptionsTable_Power(false, UF.CreateAndUpdateUF, "focustarget"),
|
||||
name = GetOptionsTable_Name(UF.CreateAndUpdateUF, "focustarget"),
|
||||
portrait = GetOptionsTable_Portrait(UF.CreateAndUpdateUF, "focustarget"),
|
||||
buffs = GetOptionsTable_Auras(false, "buffs", false, UF.CreateAndUpdateUF, "focustarget"),
|
||||
debuffs = GetOptionsTable_Auras(false, "debuffs", false, UF.CreateAndUpdateUF, "focustarget"),
|
||||
raidicon = GetOptionsTable_RaidIcon(UF.CreateAndUpdateUF, "focustarget"),
|
||||
}
|
||||
}--]]
|
||||
|
||||
E.Options.args.unitframe.args.pet = {
|
||||
order = 800,
|
||||
type = "group",
|
||||
@@ -4274,7 +3962,7 @@ E.Options.args.unitframe.args.pet = {
|
||||
fontSize = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
}
|
||||
}
|
||||
@@ -4291,7 +3979,7 @@ E.Options.args.unitframe.args.pet = {
|
||||
happiness = {
|
||||
order = 700,
|
||||
type = "group",
|
||||
name = HAPPINESS,
|
||||
name = L["Happiness"],
|
||||
get = function(info) return E.db.unitframe.units.pet.happiness[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units.pet.happiness[ info[getn(info)] ] = value UF:CreateAndUpdateUF("pet") end,
|
||||
disabled = E.myclass ~= "HUNTER",
|
||||
@@ -4679,9 +4367,9 @@ E.Options.args.unitframe.args.party = {
|
||||
name = L["Group By"],
|
||||
desc = L["Set the order that the group will sort."],
|
||||
values = {
|
||||
["CLASS"] = CLASS,
|
||||
["NAME"] = NAME,
|
||||
["GROUP"] = GROUP
|
||||
["CLASS"] = L["Class"],
|
||||
["NAME"] = L["Name"],
|
||||
["GROUP"] = L["Group"]
|
||||
}
|
||||
},
|
||||
sortDir = {
|
||||
@@ -4751,7 +4439,7 @@ E.Options.args.unitframe.args.party = {
|
||||
fontSize = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
},
|
||||
profileSpecific = {
|
||||
@@ -4836,7 +4524,7 @@ E.Options.args.unitframe.args.party = {
|
||||
name = {
|
||||
order = 8,
|
||||
type = "group",
|
||||
name = NAME,
|
||||
name = L["Name"],
|
||||
guiInline = true,
|
||||
get = function(info) return E.db.unitframe.units.party.petsGroup.name[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units.party.petsGroup.name[ info[getn(info)] ] = value UF:CreateAndUpdateHeaderGroup("party") end,
|
||||
@@ -4928,7 +4616,7 @@ E.Options.args.unitframe.args.party = {
|
||||
guiInline = true,
|
||||
get = function(info) return E.db.unitframe.units.party.targetsGroup.name[ info[getn(info)] ] end,
|
||||
set = function(info, value) E.db.unitframe.units.party.targetsGroup.name[ info[getn(info)] ] = value UF:CreateAndUpdateHeaderGroup("party") end,
|
||||
name = NAME,
|
||||
name = L["Name"],
|
||||
args = {
|
||||
position = {
|
||||
order = 1,
|
||||
@@ -5186,9 +4874,9 @@ E.Options.args.unitframe.args.raid = {
|
||||
name = L["Group By"],
|
||||
desc = L["Set the order that the group will sort."],
|
||||
values = {
|
||||
["CLASS"] = CLASS,
|
||||
["NAME"] = NAME,
|
||||
["GROUP"] = GROUP
|
||||
["CLASS"] = L["Class"],
|
||||
["NAME"] = L["Name"],
|
||||
["GROUP"] = L["Group"]
|
||||
}
|
||||
},
|
||||
sortDir = {
|
||||
@@ -5265,7 +4953,7 @@ E.Options.args.unitframe.args.raid = {
|
||||
fontSize = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
},
|
||||
profileSpecific = {
|
||||
@@ -5514,9 +5202,9 @@ E.Options.args.unitframe.args.raid40 = {
|
||||
name = L["Group By"],
|
||||
desc = L["Set the order that the group will sort."],
|
||||
values = {
|
||||
["CLASS"] = CLASS,
|
||||
["NAME"] = NAME,
|
||||
["GROUP"] = GROUP
|
||||
["CLASS"] = L["Class"],
|
||||
["NAME"] = L["Name"],
|
||||
["GROUP"] = L["Group"]
|
||||
}
|
||||
},
|
||||
sortDir = {
|
||||
@@ -5593,7 +5281,7 @@ E.Options.args.unitframe.args.raid40 = {
|
||||
fontSize = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
},
|
||||
profileSpecific = {
|
||||
@@ -5830,7 +5518,7 @@ E.Options.args.unitframe.args.raidpet = {
|
||||
values = {
|
||||
["NAME"] = L["Owners Name"],
|
||||
["PETNAME"] = L["Pet Name"],
|
||||
["GROUP"] = GROUP
|
||||
["GROUP"] = L["Group"]
|
||||
}
|
||||
},
|
||||
sortDir = {
|
||||
@@ -5907,7 +5595,7 @@ E.Options.args.unitframe.args.raidpet = {
|
||||
fontSize = {
|
||||
order = 4,
|
||||
type = "range",
|
||||
name = FONT_SIZE,
|
||||
name = L["Font Size"],
|
||||
min = 7, max = 22, step = 1
|
||||
},
|
||||
--[[configureButton = {
|
||||
|
||||
Reference in New Issue
Block a user