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
|
self.initialMove = true
|
||||||
end
|
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)
|
local function UpdateChatTabColor(_, r, g, b)
|
||||||
for i = 1, CreatedFrames do
|
for i = 1, CreatedFrames do
|
||||||
_G["ChatFrame"..i.."TabText"]:SetTextColor(r, g, b)
|
_G["ChatFrame"..i.."TabText"]:SetTextColor(r, g, b)
|
||||||
|
|||||||
@@ -552,6 +552,7 @@ P["chat"] = {
|
|||||||
["tabFont"] = "PT Sans Narrow",
|
["tabFont"] = "PT Sans Narrow",
|
||||||
["tabFontSize"] = 12,
|
["tabFontSize"] = 12,
|
||||||
["tabFontOutline"] = "NONE",
|
["tabFontOutline"] = "NONE",
|
||||||
|
["panelColor"] = {r = .06,g = .06,b = .06, a = 0.8}
|
||||||
}
|
}
|
||||||
|
|
||||||
--Datatexts
|
--Datatexts
|
||||||
|
|||||||
+155
-76
@@ -1,6 +1,7 @@
|
|||||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||||
local AB = E:GetModule("ActionBars");
|
local AB = E:GetModule("ActionBars");
|
||||||
local ACD = LibStub("AceConfigDialog-3.0");
|
local ACD = LibStub("AceConfigDialog-3.0");
|
||||||
|
local group
|
||||||
|
|
||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
@@ -18,14 +19,13 @@ local points = {
|
|||||||
["BOTTOMRIGHT"] = "BOTTOMRIGHT"
|
["BOTTOMRIGHT"] = "BOTTOMRIGHT"
|
||||||
}
|
}
|
||||||
|
|
||||||
local group
|
|
||||||
local function BuildABConfig()
|
local function BuildABConfig()
|
||||||
group["general"] = {
|
group["general"] = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["General Options"],
|
name = L["General Options"],
|
||||||
childGroups = "tab",
|
childGroups = "tab",
|
||||||
disabled = function() return not E.private.actionbar.enable end,
|
disabled = function() return not E.ActionBars end,
|
||||||
args = {
|
args = {
|
||||||
info = {
|
info = {
|
||||||
order = 1,
|
order = 1,
|
||||||
@@ -36,11 +36,7 @@ local function BuildABConfig()
|
|||||||
order = 2,
|
order = 2,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Keybind Mode"],
|
name = L["Keybind Mode"],
|
||||||
func = function()
|
func = function() AB:ActivateBindMode() E:ToggleConfig() GameTooltip:Hide() end
|
||||||
AB:ActivateBindMode()
|
|
||||||
E:ToggleConfig()
|
|
||||||
GameTooltip:Hide()
|
|
||||||
end
|
|
||||||
},
|
},
|
||||||
cooldownText = {
|
cooldownText = {
|
||||||
order = 3,
|
order = 3,
|
||||||
@@ -49,32 +45,38 @@ local function BuildABConfig()
|
|||||||
func = function() ACD:SelectGroup("ElvUI", "general", "cooldown") end
|
func = function() ACD:SelectGroup("ElvUI", "general", "cooldown") end
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
order = 4,
|
order = 3,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = ""
|
name = ""
|
||||||
},
|
},
|
||||||
macrotext = {
|
macrotext = {
|
||||||
order = 5,
|
order = 4,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Macro Text"],
|
name = L["Macro Text"],
|
||||||
desc = L["Display macro names on action buttons."]
|
desc = L["Display macro names on action buttons."]
|
||||||
},
|
},
|
||||||
hotkeytext = {
|
hotkeytext = {
|
||||||
order = 6,
|
order = 5,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Keybind Text"],
|
name = L["Keybind Text"],
|
||||||
desc = L["Display bind names on action buttons."]
|
desc = L["Display bind names on action buttons."]
|
||||||
},
|
},
|
||||||
keyDown = {
|
keyDown = {
|
||||||
order = 8,
|
order = 6,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Key Down"],
|
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 = {
|
lockActionBars = {
|
||||||
order = 9,
|
order = 8,
|
||||||
type = "toggle",
|
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."],
|
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)
|
set = function(info, value)
|
||||||
E.db.actionbar[ info[getn(info)] ] = value
|
E.db.actionbar[ info[getn(info)] ] = value
|
||||||
@@ -84,18 +86,18 @@ local function BuildABConfig()
|
|||||||
movementModifier = {
|
movementModifier = {
|
||||||
order = 10,
|
order = 10,
|
||||||
type = "select",
|
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."],
|
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,
|
disabled = function() return (not E.private.actionbar.enable or not E.db.actionbar.lockActionBars) end,
|
||||||
values = {
|
values = {
|
||||||
["NONE"] = L["None"],
|
["NONE"] = L["None"],
|
||||||
["SHIFT"] = "SHIFT_KEY",
|
["SHIFT"] = L["Shift Key"],
|
||||||
["ALT"] = "ALT_KEY",
|
["ALT"] = L["ALT-Key"],
|
||||||
["CTRL"] = "CTRL_KEY"
|
["CTRL"] = L["CTRL-Key"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
globalFadeAlpha = {
|
globalFadeAlpha = {
|
||||||
order = 11,
|
order = 12,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Global Fade Transparency"],
|
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."],
|
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,
|
order = 2,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = L["Out of Power"],
|
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 = {
|
usableColor = {
|
||||||
order = 3,
|
order = 3,
|
||||||
@@ -152,7 +154,7 @@ local function BuildABConfig()
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fontGroup = {
|
fontGroup = {
|
||||||
order = 13,
|
order = 14,
|
||||||
type = "group",
|
type = "group",
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
name = L["Fonts"],
|
name = L["Fonts"],
|
||||||
@@ -166,8 +168,8 @@ local function BuildABConfig()
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 4, max = 212, step = 1
|
min = 4, max = 32, step = 1
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
order = 6,
|
order = 6,
|
||||||
@@ -184,7 +186,8 @@ local function BuildABConfig()
|
|||||||
fontColor = {
|
fontColor = {
|
||||||
order = 7,
|
order = 7,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
|
width = "full",
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local t = E.db.actionbar[ info[getn(info)] ]
|
local t = E.db.actionbar[ info[getn(info)] ]
|
||||||
local d = P.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
|
t.r, t.g, t.b = r, g, b
|
||||||
AB:UpdateButtonSettings()
|
AB:UpdateButtonSettings()
|
||||||
end
|
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"],
|
name = L["Pet Bar"],
|
||||||
type = "group",
|
type = "group",
|
||||||
guiInline = false,
|
guiInline = false,
|
||||||
disabled = function() return not E.private.actionbar.enable end,
|
disabled = function() return not E.ActionBars end,
|
||||||
get = function(info) return E.db.actionbar["barPet"][ info[getn(info)] ] 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,
|
set = function(info, value) E.db.actionbar.barPet[ info[getn(info)] ] = value AB:PositionAndSizeBarPet() end,
|
||||||
args = {
|
args = {
|
||||||
info = {
|
info = {
|
||||||
order = 1,
|
order = 1,
|
||||||
@@ -224,7 +301,8 @@ local function BuildABConfig()
|
|||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Restore Bar"],
|
name = L["Restore Bar"],
|
||||||
desc = L["Restore the actionbars default settings"],
|
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
|
disabled = function() return not E.db.actionbar.barPet.enabled end
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
@@ -290,7 +368,7 @@ local function BuildABConfig()
|
|||||||
type = "range",
|
type = "range",
|
||||||
name = L["Button Spacing"],
|
name = L["Button Spacing"],
|
||||||
desc = L["The spacing between buttons."],
|
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
|
disabled = function() return not E.db.actionbar.barPet.enabled end
|
||||||
},
|
},
|
||||||
backdropSpacing = {
|
backdropSpacing = {
|
||||||
@@ -333,8 +411,8 @@ local function BuildABConfig()
|
|||||||
type = "group",
|
type = "group",
|
||||||
guiInline = false,
|
guiInline = false,
|
||||||
disabled = function() return not E.ActionBars end,
|
disabled = function() return not E.ActionBars end,
|
||||||
get = function(info) return E.db.actionbar["barShapeShift"][ info[getn(info)] ] 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,
|
set = function(info, value) E.db.actionbar.barShapeShift[ info[getn(info)] ] = value AB:PositionAndSizeBarShapeShift() end,
|
||||||
args = {
|
args = {
|
||||||
info = {
|
info = {
|
||||||
order = 1,
|
order = 1,
|
||||||
@@ -351,7 +429,8 @@ local function BuildABConfig()
|
|||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Restore Bar"],
|
name = L["Restore Bar"],
|
||||||
desc = L["Restore the actionbars default settings"],
|
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
|
disabled = function() return not E.db.actionbar.barShapeShift.enabled end
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
@@ -417,7 +496,7 @@ local function BuildABConfig()
|
|||||||
type = "range",
|
type = "range",
|
||||||
name = L["Button Spacing"],
|
name = L["Button Spacing"],
|
||||||
desc = L["The spacing between buttons."],
|
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
|
disabled = function() return not E.db.actionbar.barShapeShift.enabled end
|
||||||
},
|
},
|
||||||
backdropSpacing = {
|
backdropSpacing = {
|
||||||
@@ -574,10 +653,8 @@ local function BuildABConfig()
|
|||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Restore Bar"],
|
name = L["Restore Bar"],
|
||||||
desc = L["Restore the actionbars default settings"],
|
desc = L["Restore the actionbars default settings"],
|
||||||
func = function()
|
buttonElvUI = true,
|
||||||
E:CopyTable(E.db.actionbar[barNum], P.actionbar[barNum])
|
func = function() E:CopyTable(E.db.actionbar[barNum], P.actionbar[barNum]) E:ResetMovers(name) AB:PositionAndSizeBar(barNum) end,
|
||||||
E:ResetMovers(name) AB:PositionAndSizeBar(barNum)
|
|
||||||
end,
|
|
||||||
disabled = function() return not E.db.actionbar[barNum].enabled end
|
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
@@ -596,10 +673,7 @@ local function BuildABConfig()
|
|||||||
order = 6,
|
order = 6,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Show Empty Buttons"],
|
name = L["Show Empty Buttons"],
|
||||||
set = function(info, value)
|
set = function(info, value) E.db.actionbar[barNum][ info[getn(info)] ] = value AB:UpdateButtonSettingsForBar(barNum) end,
|
||||||
E.db.actionbar[barNum][ info[getn(info)] ] = value
|
|
||||||
AB:UpdateButtonSettingsForBar(barNum)
|
|
||||||
end,
|
|
||||||
disabled = function() return not E.db.actionbar[barNum].enabled end
|
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||||
},
|
},
|
||||||
mouseover = {
|
mouseover = {
|
||||||
@@ -653,7 +727,7 @@ local function BuildABConfig()
|
|||||||
type = "range",
|
type = "range",
|
||||||
name = L["Button Spacing"],
|
name = L["Button Spacing"],
|
||||||
desc = L["The spacing between buttons."],
|
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
|
disabled = function() return not E.db.actionbar[barNum].enabled end
|
||||||
},
|
},
|
||||||
backdropSpacing = {
|
backdropSpacing = {
|
||||||
@@ -695,7 +769,7 @@ end
|
|||||||
|
|
||||||
E.Options.args.actionbar = {
|
E.Options.args.actionbar = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = ACTIONBAR_LABEL,
|
name = L["ActionBars"],
|
||||||
childGroups = "tree",
|
childGroups = "tree",
|
||||||
get = function(info) return E.db.actionbar[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) E.db.actionbar[ info[getn(info)] ] = value AB:UpdateButtonSettings() end,
|
||||||
@@ -715,20 +789,20 @@ E.Options.args.actionbar = {
|
|||||||
header = {
|
header = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Shortcuts"],
|
name = L["Shortcuts"]
|
||||||
},
|
},
|
||||||
spacer1 = {
|
spacer1 = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " ",
|
name = " "
|
||||||
},
|
},
|
||||||
generalShortcut = {
|
generalShortcut = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "general") end,
|
func = function() ACD:SelectGroup("ElvUI", "actionbar", "general") end,
|
||||||
disabled = function() return not E.ActionBars end,
|
disabled = function() return not E.ActionBars end
|
||||||
},
|
},
|
||||||
petBarShortcut = {
|
petBarShortcut = {
|
||||||
order = 6,
|
order = 6,
|
||||||
@@ -736,68 +810,73 @@ E.Options.args.actionbar = {
|
|||||||
name = L["Pet Bar"],
|
name = L["Pet Bar"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "barPet") end,
|
func = function() ACD:SelectGroup("ElvUI", "actionbar", "barPet") end,
|
||||||
disabled = function() return not E.ActionBars 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,
|
|
||||||
},
|
},
|
||||||
spacer2 = {
|
spacer2 = {
|
||||||
order = 8,
|
order = 8,
|
||||||
type = "description",
|
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 = {
|
microbarShortcut = {
|
||||||
order = 9,
|
order = 10,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Micro Bar"],
|
name = L["Micro Bar"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "microbar") end,
|
func = function() ACD:SelectGroup("ElvUI", "actionbar", "microbar") end,
|
||||||
disabled = function() return not E.ActionBars end,
|
disabled = function() return not E.ActionBars end
|
||||||
},
|
},
|
||||||
bar1Shortcut = {
|
bar1Shortcut = {
|
||||||
order = 10,
|
order = 11,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Bar "]..1,
|
name = L["Bar "]..1,
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar1") end,
|
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar1") end,
|
||||||
disabled = function() return not E.ActionBars 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,
|
|
||||||
},
|
},
|
||||||
spacer3 = {
|
spacer3 = {
|
||||||
order = 12,
|
order = 12,
|
||||||
type = "description",
|
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 = {
|
bar3Shortcut = {
|
||||||
order = 13,
|
order = 14,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Bar "]..3,
|
name = L["Bar "]..3,
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar3") end,
|
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar3") end,
|
||||||
disabled = function() return not E.ActionBars end,
|
disabled = function() return not E.ActionBars end
|
||||||
},
|
},
|
||||||
bar4Shortcut = {
|
bar4Shortcut = {
|
||||||
order = 14,
|
order = 15,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Bar "]..4,
|
name = L["Bar "]..4,
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "actionbar", "bar4") end,
|
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 = {
|
bar5Shortcut = {
|
||||||
order = 15,
|
order = 17,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Bar "]..5,
|
name = L["Bar "]..5,
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
@@ -807,4 +886,4 @@ E.Options.args.actionbar = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
group = E.Options.args.actionbar.args
|
group = E.Options.args.actionbar.args
|
||||||
BuildABConfig()
|
BuildABConfig()
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ E.Options.args.auras = {
|
|||||||
},
|
},
|
||||||
fontSize = {
|
fontSize = {
|
||||||
order = 3,
|
order = 3,
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
type = "range",
|
type = "range",
|
||||||
min = 6, max = 33, step = 1
|
min = 6, max = 33, step = 1
|
||||||
},
|
},
|
||||||
|
|||||||
+9
-27
@@ -8,8 +8,6 @@ local gsub, match = string.gsub, string.match
|
|||||||
local getn = table.getn
|
local getn = table.getn
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local GameTooltip = _G["GameTooltip"]
|
local GameTooltip = _G["GameTooltip"]
|
||||||
local FONT_SIZE, NONE, COLOR = FONT_SIZE, NONE, COLOR
|
|
||||||
local GENERAL = GENERAL
|
|
||||||
|
|
||||||
E.Options.args.bags = {
|
E.Options.args.bags = {
|
||||||
type = "group",
|
type = "group",
|
||||||
@@ -34,13 +32,13 @@ E.Options.args.bags = {
|
|||||||
general = {
|
general = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
disabled = function() return not E.bags end,
|
disabled = function() return not E.bags end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = GENERAL
|
name = L["General"]
|
||||||
},
|
},
|
||||||
strata = {
|
strata = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -119,7 +117,7 @@ E.Options.args.bags = {
|
|||||||
countFontSize = {
|
countFontSize = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 4, max = 22, step = 1,
|
min = 4, max = 22, step = 1,
|
||||||
set = function(info, value) E.db.bags.countFontSize = value B:UpdateCountDisplay() end
|
set = function(info, value) E.db.bags.countFontSize = value B:UpdateCountDisplay() end
|
||||||
},
|
},
|
||||||
@@ -138,7 +136,7 @@ E.Options.args.bags = {
|
|||||||
countFontColor = {
|
countFontColor = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local t = E.db.bags[ info[getn(info)] ]
|
local t = E.db.bags[ info[getn(info)] ]
|
||||||
local d = P.bags[ info[getn(info)] ]
|
local d = P.bags[ info[getn(info)] ]
|
||||||
@@ -213,7 +211,7 @@ E.Options.args.bags = {
|
|||||||
itemLevelFontSize = {
|
itemLevelFontSize = {
|
||||||
order = 7,
|
order = 7,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 6, max = 33, step = 1,
|
min = 6, max = 33, step = 1,
|
||||||
disabled = function() return not E.db.bags.itemLevel end,
|
disabled = function() return not E.db.bags.itemLevel end,
|
||||||
set = function(info, value) E.db.bags.itemLevelFontSize = value B:UpdateItemLevelDisplay() end
|
set = function(info, value) E.db.bags.itemLevelFontSize = value B:UpdateItemLevelDisplay() end
|
||||||
@@ -288,12 +286,12 @@ E.Options.args.bags = {
|
|||||||
colorGroup = {
|
colorGroup = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = COLOR,
|
name = L["Colors"],
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = COLOR
|
name = L["Colors"]
|
||||||
},
|
},
|
||||||
bags = {
|
bags = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -351,7 +349,7 @@ E.Options.args.bags = {
|
|||||||
items = {
|
items = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = ITEMS,
|
name = L["Items"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local t = E.db.bags.colors.items[ info[getn(info)] ]
|
local t = E.db.bags.colors.items[ info[getn(info)] ]
|
||||||
@@ -374,7 +372,7 @@ E.Options.args.bags = {
|
|||||||
questItem = {
|
questItem = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = ITEM_BIND_QUEST
|
name = L["Quest Item"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -458,22 +456,6 @@ E.Options.args.bags = {
|
|||||||
["HORIZONTAL"] = L["Horizontal"]
|
["HORIZONTAL"] = L["Horizontal"]
|
||||||
},
|
},
|
||||||
disabled = function() return not E.private.bags.bagBar end
|
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+68
-41
@@ -3,13 +3,15 @@ local CH = E:GetModule("Chat");
|
|||||||
|
|
||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
|
local _G = _G
|
||||||
|
local gsub, lower = string.gsub, string.lower
|
||||||
local getn = table.getn
|
local getn = table.getn
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local CHAT_LABEL, GENERAL, NONE = CHAT_LABEL, GENERAL, NONE
|
local GameTooltip = _G["GameTooltip"]
|
||||||
|
|
||||||
E.Options.args.chat = {
|
E.Options.args.chat = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = CHAT_LABEL,
|
name = L["Chat"],
|
||||||
childGroups = "tab",
|
childGroups = "tab",
|
||||||
get = function(info) return E.db.chat[ info[getn(info)] ] end,
|
get = function(info) return E.db.chat[ info[getn(info)] ] end,
|
||||||
set = function(info, value) E.db.chat[ info[getn(info)] ] = value end,
|
set = function(info, value) E.db.chat[ info[getn(info)] ] = value end,
|
||||||
@@ -29,12 +31,13 @@ E.Options.args.chat = {
|
|||||||
general = {
|
general = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
|
disabled = function() return not E.private.chat.enable end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = GENERAL
|
name = L["General"]
|
||||||
},
|
},
|
||||||
url = {
|
url = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -120,7 +123,7 @@ E.Options.args.chat = {
|
|||||||
spacer = {
|
spacer = {
|
||||||
order = 11,
|
order = 11,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
name = ""
|
||||||
},
|
},
|
||||||
throttleInterval = {
|
throttleInterval = {
|
||||||
order = 12,
|
order = 12,
|
||||||
@@ -162,13 +165,13 @@ E.Options.args.chat = {
|
|||||||
spacer2 = {
|
spacer2 = {
|
||||||
order = 16,
|
order = 16,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
name = ""
|
||||||
},
|
},
|
||||||
timeStampFormat = {
|
timeStampFormat = {
|
||||||
order = 17,
|
order = 17,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Chat Timestamps"],
|
name = L["Chat Timestamps"],
|
||||||
desc = "OPTION_TOOLTIP_TIMESTAMPS",
|
desc = L["Select the format of timestamps for chat messages."],
|
||||||
values = {
|
values = {
|
||||||
["NONE"] = L["None"],
|
["NONE"] = L["None"],
|
||||||
["%I:%M "] = "03:27",
|
["%I:%M "] = "03:27",
|
||||||
@@ -183,14 +186,14 @@ E.Options.args.chat = {
|
|||||||
order = 18,
|
order = 18,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Custom Timestamp Color"],
|
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 = {
|
customTimeColor = {
|
||||||
order = 19,
|
order = 19,
|
||||||
type = "color",
|
type = "color",
|
||||||
hasAlpha = false,
|
hasAlpha = false,
|
||||||
name = L["Timestamp Color"],
|
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)
|
get = function(info)
|
||||||
local t = E.db.chat.customTimeColor
|
local t = E.db.chat.customTimeColor
|
||||||
local d = P.chat.customTimeColor
|
local d = P.chat.customTimeColor
|
||||||
@@ -207,6 +210,7 @@ E.Options.args.chat = {
|
|||||||
order = 4,
|
order = 4,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Alerts"],
|
name = L["Alerts"],
|
||||||
|
disabled = function() return not E.private.chat.enable end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 0,
|
||||||
@@ -217,13 +221,13 @@ E.Options.args.chat = {
|
|||||||
order = 1,
|
order = 1,
|
||||||
type = "select", dialogControl = "LSM30_Sound",
|
type = "select", dialogControl = "LSM30_Sound",
|
||||||
name = L["Whisper Alert"],
|
name = L["Whisper Alert"],
|
||||||
values = AceGUIWidgetLSMlists.sound,
|
values = AceGUIWidgetLSMlists.sound
|
||||||
},
|
},
|
||||||
keywordSound = {
|
keywordSound = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "select", dialogControl = "LSM30_Sound",
|
type = "select", dialogControl = "LSM30_Sound",
|
||||||
name = L["Keyword Alert"],
|
name = L["Keyword Alert"],
|
||||||
values = AceGUIWidgetLSMlists.sound,
|
values = AceGUIWidgetLSMlists.sound
|
||||||
},
|
},
|
||||||
noAlertInCombat = {
|
noAlertInCombat = {
|
||||||
order = 3,
|
order = 3,
|
||||||
@@ -232,11 +236,11 @@ E.Options.args.chat = {
|
|||||||
},
|
},
|
||||||
keywords = {
|
keywords = {
|
||||||
order = 4,
|
order = 4,
|
||||||
|
type = "input",
|
||||||
name = L["Keywords"],
|
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"],
|
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",
|
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,
|
order = 5,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Panels"],
|
name = L["Panels"],
|
||||||
|
disabled = function() return not E.private.chat.enable end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 0,
|
||||||
@@ -266,14 +271,14 @@ E.Options.args.chat = {
|
|||||||
order = 2,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Tab Panel Transparency"],
|
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 = {
|
panelTabBackdrop = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Tab Panel"],
|
name = L["Tab Panel"],
|
||||||
desc = L["Toggle the chat tab panel backdrop."],
|
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 = {
|
editBoxPosition = {
|
||||||
order = 4,
|
order = 4,
|
||||||
@@ -291,7 +296,7 @@ E.Options.args.chat = {
|
|||||||
type = "select",
|
type = "select",
|
||||||
name = L["Panel Backdrop"],
|
name = L["Panel Backdrop"],
|
||||||
desc = L["Toggle showing of the left and right chat panels."],
|
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 = {
|
values = {
|
||||||
["HIDEBOTH"] = L["Hide Both"],
|
["HIDEBOTH"] = L["Hide Both"],
|
||||||
["SHOWBOTH"] = L["Show Both"],
|
["SHOWBOTH"] = L["Show Both"],
|
||||||
@@ -321,7 +326,7 @@ E.Options.args.chat = {
|
|||||||
name = L["Panel Height"],
|
name = L["Panel Height"],
|
||||||
desc = L["PANEL_DESC"],
|
desc = L["PANEL_DESC"],
|
||||||
min = 50, max = 600, step = 1,
|
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 = {
|
panelWidth = {
|
||||||
order = 9,
|
order = 9,
|
||||||
@@ -332,30 +337,46 @@ E.Options.args.chat = {
|
|||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
E.db.chat.panelWidth = value
|
E.db.chat.panelWidth = value
|
||||||
E:GetModule("Chat"):PositionChat(true)
|
E:GetModule("Chat"):PositionChat(true)
|
||||||
local bags = E:GetModule("Bags");
|
local bags = E:GetModule("Bags")
|
||||||
if not E.db.chat.separateSizes then
|
if not E.db.chat.separateSizes then
|
||||||
bags:Layout()
|
bags:Layout()
|
||||||
end
|
end
|
||||||
bags:Layout(true)
|
bags:Layout(true)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
spacer2 = {
|
panelColor = {
|
||||||
order = 10,
|
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",
|
type = "description",
|
||||||
name = ""
|
name = ""
|
||||||
},
|
},
|
||||||
panelHeightRight = {
|
panelHeightRight = {
|
||||||
order = 11,
|
order = 12,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Right Panel Height"],
|
name = L["Right Panel Height"],
|
||||||
desc = L["Adjust the height of your right chat panel."],
|
desc = L["Adjust the height of your right chat panel."],
|
||||||
min = 50, max = 600, step = 1,
|
min = 50, max = 600, step = 1,
|
||||||
disabled = function() return not E.db.chat.separateSizes end,
|
disabled = function() return not E.db.chat.separateSizes end,
|
||||||
hidden = 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 = {
|
panelWidthRight = {
|
||||||
order = 12,
|
order = 13,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Right Panel Width"],
|
name = L["Right Panel Width"],
|
||||||
desc = L["Adjust the width of your right chat panel."],
|
desc = L["Adjust the width of your right chat panel."],
|
||||||
@@ -369,7 +390,7 @@ E.Options.args.chat = {
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
panelBackdropNameLeft = {
|
panelBackdropNameLeft = {
|
||||||
order = 13,
|
order = 14,
|
||||||
type = "input",
|
type = "input",
|
||||||
width = "full",
|
width = "full",
|
||||||
name = L["Panel Texture (Left)"],
|
name = L["Panel Texture (Left)"],
|
||||||
@@ -380,7 +401,7 @@ E.Options.args.chat = {
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
panelBackdropNameRight = {
|
panelBackdropNameRight = {
|
||||||
order = 14,
|
order = 15,
|
||||||
type = "input",
|
type = "input",
|
||||||
width = "full",
|
width = "full",
|
||||||
name = L["Panel Texture (Right)"],
|
name = L["Panel Texture (Right)"],
|
||||||
@@ -396,21 +417,22 @@ E.Options.args.chat = {
|
|||||||
order = 6,
|
order = 6,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Fonts"],
|
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 = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Fonts"]
|
name = L["Fonts"]
|
||||||
},
|
},
|
||||||
font = {
|
font = {
|
||||||
order = 1,
|
order = 2,
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font
|
values = AceGUIWidgetLSMlists.font
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
order = 2,
|
order = 3,
|
||||||
name = L["Font Outline"],
|
name = L["Font Outline"],
|
||||||
desc = L["Set the font outline."],
|
desc = L["Set the font outline."],
|
||||||
type = "select",
|
type = "select",
|
||||||
@@ -421,20 +443,25 @@ E.Options.args.chat = {
|
|||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
spacer = {
|
||||||
|
order = 4,
|
||||||
|
type = "description",
|
||||||
|
name = ""
|
||||||
|
},
|
||||||
tabFont = {
|
tabFont = {
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
order = 4,
|
order = 5,
|
||||||
name = L["Tab Font"],
|
name = L["Tab Font"],
|
||||||
values = AceGUIWidgetLSMlists.font
|
values = AceGUIWidgetLSMlists.font
|
||||||
},
|
},
|
||||||
tabFontSize = {
|
tabFontSize = {
|
||||||
order = 5,
|
order = 6,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Tab Font Size"],
|
name = L["Tab Font Size"],
|
||||||
min = 6, max = 22, step = 1
|
min = 6, max = 22, step = 1
|
||||||
},
|
},
|
||||||
tabFontOutline = {
|
tabFontOutline = {
|
||||||
order = 6,
|
order = 7,
|
||||||
name = L["Tab Font Outline"],
|
name = L["Tab Font Outline"],
|
||||||
desc = L["Set the font outline."],
|
desc = L["Set the font outline."],
|
||||||
type = "select",
|
type = "select",
|
||||||
@@ -460,30 +487,30 @@ E.Options.args.chat = {
|
|||||||
classColorMentionsChat = {
|
classColorMentionsChat = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = CHAT_LABEL,
|
name = L["Chat"],
|
||||||
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.db.chat.classColorMentionsChat end,
|
get = function(info) return E.db.chat.classColorMentionsChat end,
|
||||||
set = function(info, value) E.db.chat.classColorMentionsChat = value 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 = {
|
classColorMentionsSpeech = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Chat Bubbles"],
|
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,
|
get = function(info) return E.private.general.classColorMentionsSpeech end,
|
||||||
set = function(info, value) E.private.general.classColorMentionsSpeech = value; E:StaticPopup_Show("PRIVATE_RL") 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
|
disabled = function() return (E.private.general.chatBubbles == "disabled" or not (E.private.chat.enable and E.private.general.classCache)) end
|
||||||
},
|
},
|
||||||
classColorMentionExcludeName = {
|
classColorMentionExcludeName = {
|
||||||
order = 4,
|
order = 4,
|
||||||
|
type = "input",
|
||||||
name = L["Exclude Name"],
|
name = L["Exclude Name"],
|
||||||
desc = L["Excluded names will not be class colored."],
|
desc = L["Excluded names will not be class colored."],
|
||||||
type = 'input',
|
|
||||||
get = function(info) return "" end,
|
get = function(info) return "" end,
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
if value == "" or string.gsub(value, "%s+", "") == "" then return end
|
if value == "" or gsub(value, "%s+", "") == "" then return end
|
||||||
E.global.chat.classColorMentionExcludedNames[strlower(value)] = value
|
E.global.chat.classColorMentionExcludedNames[lower(value)] = value
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
classColorMentionExcludedNames = {
|
classColorMentionExcludedNames = {
|
||||||
@@ -500,4 +527,4 @@ E.Options.args.chat = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ local UnitIsPlayer = UnitIsPlayer
|
|||||||
local UnitIsUnit = UnitIsUnit
|
local UnitIsUnit = UnitIsUnit
|
||||||
local UnitName = UnitName
|
local UnitName = UnitName
|
||||||
local UnitInParty = UnitInParty
|
local UnitInParty = UnitInParty
|
||||||
|
local UnitInRaid = UnitInRaid
|
||||||
|
|
||||||
local DEFAULT_WIDTH = 890
|
local DEFAULT_WIDTH = 890
|
||||||
local DEFAULT_HEIGHT = 651
|
local DEFAULT_HEIGHT = 651
|
||||||
|
|||||||
+99
-47
@@ -1,7 +1,13 @@
|
|||||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||||
local mod = E:GetModule("DataBars");
|
local mod = E:GetModule("DataBars");
|
||||||
|
|
||||||
|
--Cache global variables
|
||||||
|
--Lua functions
|
||||||
|
local ceil = math.ceil
|
||||||
local getn = table.getn
|
local getn = table.getn
|
||||||
|
--WoW API / Variables
|
||||||
|
local GetScreenWidth = GetScreenWidth
|
||||||
|
local GetScreenHeight = GetScreenHeight
|
||||||
|
|
||||||
E.Options.args.databars = {
|
E.Options.args.databars = {
|
||||||
type = "group",
|
type = "group",
|
||||||
@@ -13,7 +19,7 @@ E.Options.args.databars = {
|
|||||||
intro = {
|
intro = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = L["Setup on-screen display of information bars."]
|
name = L["DATABAR_DESC"]
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -22,64 +28,88 @@ E.Options.args.databars = {
|
|||||||
},
|
},
|
||||||
experience = {
|
experience = {
|
||||||
order = 3,
|
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",
|
type = "group",
|
||||||
name = L["XP Bar"],
|
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 = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 1,
|
||||||
|
type = "header",
|
||||||
|
name = L["XP Bar"]
|
||||||
|
},
|
||||||
enable = {
|
enable = {
|
||||||
order = 0,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Enable"],
|
name = L["Enable"],
|
||||||
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:EnableDisable_ExperienceBar() end
|
set = function(info, value) mod.db.experience[ info[getn(info)] ] = value; mod:EnableDisable_ExperienceBar() end
|
||||||
},
|
},
|
||||||
mouseover = {
|
mouseover = {
|
||||||
order = 1,
|
order = 3,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Mouseover"]
|
name = L["Mouseover"],
|
||||||
|
disabled = function() return not mod.db.experience.enable end
|
||||||
},
|
},
|
||||||
hideAtMaxLevel = {
|
hideAtMaxLevel = {
|
||||||
order = 2,
|
order = 4,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Hide At Max Level"],
|
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 = {
|
orientation = {
|
||||||
order = 3,
|
order = 7,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Statusbar Fill Orientation"],
|
name = L["Statusbar Fill Orientation"],
|
||||||
desc = L["Direction the bar moves on gains/losses"],
|
desc = L["Direction the bar moves on gains/losses"],
|
||||||
values = {
|
values = {
|
||||||
["HORIZONTAL"] = L["Horizontal"],
|
["HORIZONTAL"] = L["Horizontal"],
|
||||||
["VERTICAL"] = L["Vertical"]
|
["VERTICAL"] = L["Vertical"]
|
||||||
}
|
},
|
||||||
|
disabled = function() return not mod.db.experience.enable end
|
||||||
},
|
},
|
||||||
width = {
|
width = {
|
||||||
order = 4,
|
order = 8,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Width"],
|
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 = {
|
height = {
|
||||||
order = 5,
|
order = 9,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Height"],
|
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 = {
|
font = {
|
||||||
order = 6,
|
order = 10,
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font
|
values = AceGUIWidgetLSMlists.font,
|
||||||
|
disabled = function() return not mod.db.experience.enable end
|
||||||
},
|
},
|
||||||
textSize = {
|
textSize = {
|
||||||
order = 7,
|
order = 11,
|
||||||
name = L["Font Size"],
|
|
||||||
type = "range",
|
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 = {
|
fontOutline = {
|
||||||
order = 8,
|
order = 12,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Font Outline"],
|
name = L["Font Outline"],
|
||||||
values = {
|
values = {
|
||||||
@@ -87,10 +117,11 @@ E.Options.args.databars = {
|
|||||||
["OUTLINE"] = "OUTLINE",
|
["OUTLINE"] = "OUTLINE",
|
||||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||||
}
|
},
|
||||||
|
disabled = function() return not mod.db.experience.enable end
|
||||||
},
|
},
|
||||||
textFormat = {
|
textFormat = {
|
||||||
order = 9,
|
order = 13,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Text Format"],
|
name = L["Text Format"],
|
||||||
width = "double",
|
width = "double",
|
||||||
@@ -102,71 +133,90 @@ E.Options.args.databars = {
|
|||||||
CURMAX = L["Current - Max"],
|
CURMAX = L["Current - Max"],
|
||||||
CURPERC = L["Current - Percent"],
|
CURPERC = L["Current - Percent"],
|
||||||
CURREM = L["Current - Remaining"],
|
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 = {
|
reputation = {
|
||||||
order = 4,
|
order = 4,
|
||||||
|
type = "group",
|
||||||
|
name = L["Reputation"],
|
||||||
get = function(info) return mod.db.reputation[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:UpdateReputationDimensions() end,
|
||||||
type = "group",
|
|
||||||
name = REPUTATION,
|
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 1,
|
||||||
|
type = "header",
|
||||||
|
name = L["Reputation"]
|
||||||
|
},
|
||||||
enable = {
|
enable = {
|
||||||
order = 0,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Enable"],
|
name = L["Enable"],
|
||||||
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:EnableDisable_ReputationBar() end
|
set = function(info, value) mod.db.reputation[ info[getn(info)] ] = value; mod:EnableDisable_ReputationBar() end
|
||||||
},
|
},
|
||||||
mouseover = {
|
mouseover = {
|
||||||
order = 1,
|
order = 3,
|
||||||
type = "toggle",
|
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 = {
|
spacer = {
|
||||||
order = 2,
|
order = 5,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
name = ""
|
||||||
},
|
},
|
||||||
orientation = {
|
orientation = {
|
||||||
order = 3,
|
order = 6,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Statusbar Fill Orientation"],
|
name = L["Statusbar Fill Orientation"],
|
||||||
desc = L["Direction the bar moves on gains/losses"],
|
desc = L["Direction the bar moves on gains/losses"],
|
||||||
values = {
|
values = {
|
||||||
["HORIZONTAL"] = L["Horizontal"],
|
["HORIZONTAL"] = L["Horizontal"],
|
||||||
["VERTICAL"] = L["Vertical"]
|
["VERTICAL"] = L["Vertical"]
|
||||||
}
|
},
|
||||||
|
disabled = function() return not mod.db.reputation.enable end
|
||||||
},
|
},
|
||||||
width = {
|
width = {
|
||||||
order = 4,
|
order = 7,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Width"],
|
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 = {
|
height = {
|
||||||
order = 5,
|
order = 8,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Height"],
|
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 = {
|
font = {
|
||||||
order = 6,
|
order = 9,
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font
|
values = AceGUIWidgetLSMlists.font,
|
||||||
|
disabled = function() return not mod.db.reputation.enable end
|
||||||
},
|
},
|
||||||
textSize = {
|
textSize = {
|
||||||
order = 7,
|
order = 10,
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
type = "range",
|
type = "range",
|
||||||
min = 6, max = 33, step = 1
|
min = 6, max = 22, step = 1,
|
||||||
|
disabled = function() return not mod.db.reputation.enable end
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
order = 8,
|
order = 11,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Font Outline"],
|
name = L["Font Outline"],
|
||||||
values = {
|
values = {
|
||||||
@@ -174,10 +224,11 @@ E.Options.args.databars = {
|
|||||||
["OUTLINE"] = "OUTLINE",
|
["OUTLINE"] = "OUTLINE",
|
||||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||||
}
|
},
|
||||||
|
disabled = function() return not mod.db.reputation.enable end
|
||||||
},
|
},
|
||||||
textFormat = {
|
textFormat = {
|
||||||
order = 9,
|
order = 12,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Text Format"],
|
name = L["Text Format"],
|
||||||
width = "double",
|
width = "double",
|
||||||
@@ -191,9 +242,10 @@ E.Options.args.databars = {
|
|||||||
CURREM = L["Current - Remaining"],
|
CURREM = L["Current - Remaining"],
|
||||||
CURPERCREM = L["Current - Percent (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",
|
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["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
+93
-101
@@ -5,8 +5,6 @@ local MM = E:GetModule("Minimap");
|
|||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local getn = table.getn
|
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 = {
|
E.Options.args.maps = {
|
||||||
type = "group",
|
type = "group",
|
||||||
@@ -16,17 +14,17 @@ E.Options.args.maps = {
|
|||||||
worldMap = {
|
worldMap = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = WORLD_MAP,
|
name = L["World Map"],
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 0,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = WORLD_MAP
|
name = L["World Map"]
|
||||||
},
|
},
|
||||||
generalGroup = {
|
generalGroup = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
args = {
|
args = {
|
||||||
smallerWorldMap = {
|
smallerWorldMap = {
|
||||||
@@ -35,9 +33,9 @@ E.Options.args.maps = {
|
|||||||
name = L["Smaller World Map"],
|
name = L["Smaller World Map"],
|
||||||
desc = L["Make the world map smaller."],
|
desc = L["Make the world map smaller."],
|
||||||
get = function(info) return E.global.general.smallerWorldMap end,
|
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 = {
|
spacer = {
|
||||||
order = 3,
|
order = 3,
|
||||||
@@ -55,8 +53,8 @@ E.Options.args.maps = {
|
|||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Enable"],
|
name = L["Enable"],
|
||||||
desc = L["Puts coordinates on the world map."],
|
desc = L["Puts coordinates on the world map."],
|
||||||
get = function(info) return E.global.general.WorldMapCoordinates.enable; 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
|
set = function(info, value) E.global.general.WorldMapCoordinates.enable = value E:StaticPopup_Show("GLOBAL_RL") end
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -67,9 +65,9 @@ E.Options.args.maps = {
|
|||||||
order = 3,
|
order = 3,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Position"],
|
name = L["Position"],
|
||||||
get = function(info) return E.global.general.WorldMapCoordinates.position; end,
|
get = function(info) return E.global.general.WorldMapCoordinates.position end,
|
||||||
set = function(info, value) E.global.general.WorldMapCoordinates.position = value; WM:PositionCoords(); end,
|
set = function(info, value) E.global.general.WorldMapCoordinates.position = value WM:PositionCoords() end,
|
||||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable; end,
|
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||||
values = {
|
values = {
|
||||||
["TOP"] = "TOP",
|
["TOP"] = "TOP",
|
||||||
["TOPLEFT"] = "TOPLEFT",
|
["TOPLEFT"] = "TOPLEFT",
|
||||||
@@ -83,8 +81,8 @@ E.Options.args.maps = {
|
|||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["X-Offset"],
|
name = L["X-Offset"],
|
||||||
get = function(info) return E.global.general.WorldMapCoordinates.xOffset; end,
|
get = function(info) return E.global.general.WorldMapCoordinates.xOffset end,
|
||||||
set = function(info, value) E.global.general.WorldMapCoordinates.xOffset = value; WM:PositionCoords(); end,
|
set = function(info, value) E.global.general.WorldMapCoordinates.xOffset = value WM:PositionCoords() end,
|
||||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||||
min = -200, max = 200, step = 1
|
min = -200, max = 200, step = 1
|
||||||
},
|
},
|
||||||
@@ -92,8 +90,8 @@ E.Options.args.maps = {
|
|||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Y-Offset"],
|
name = L["Y-Offset"],
|
||||||
get = function(info) return E.global.general.WorldMapCoordinates.yOffset; end,
|
get = function(info) return E.global.general.WorldMapCoordinates.yOffset end,
|
||||||
set = function(info, value) E.global.general.WorldMapCoordinates.yOffset = value; WM:PositionCoords(); end,
|
set = function(info, value) E.global.general.WorldMapCoordinates.yOffset = value WM:PositionCoords() end,
|
||||||
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
disabled = function() return not E.global.general.WorldMapCoordinates.enable end,
|
||||||
min = -200, max = 200, step = 1
|
min = -200, max = 200, step = 1
|
||||||
}
|
}
|
||||||
@@ -104,19 +102,19 @@ E.Options.args.maps = {
|
|||||||
minimap = {
|
minimap = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = MINIMAP_LABEL,
|
name = L["Minimap"],
|
||||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ]; end,
|
get = function(info) return E.db.general.minimap[ info[getn(info)] ] end,
|
||||||
childGroups = "tab",
|
childGroups = "tab",
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 0,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = MINIMAP_LABEL
|
name = L["Minimap"]
|
||||||
},
|
},
|
||||||
generalGroup = {
|
generalGroup = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
args = {
|
args = {
|
||||||
enable = {
|
enable = {
|
||||||
@@ -124,8 +122,8 @@ E.Options.args.maps = {
|
|||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Enable"],
|
name = L["Enable"],
|
||||||
desc = L["Enable/Disable the minimap. |cffFF0000Warning: This will prevent you from seeing the minimap datatexts.|r"],
|
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,
|
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,
|
set = function(info, value) E.private.general.minimap[ info[getn(info)] ] = value E:StaticPopup_Show("PRIVATE_RL") end,
|
||||||
},
|
},
|
||||||
size = {
|
size = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -133,9 +131,9 @@ E.Options.args.maps = {
|
|||||||
name = L["Size"],
|
name = L["Size"],
|
||||||
desc = L["Adjust the size of the minimap."],
|
desc = L["Adjust the size of the minimap."],
|
||||||
min = 120, max = 250, step = 1,
|
min = 120, max = 250, step = 1,
|
||||||
get = function(info) return E.db.general.minimap[ info[getn(info)] ]; 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,
|
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
|
disabled = function() return not E.private.general.minimap.enable end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -144,43 +142,53 @@ E.Options.args.maps = {
|
|||||||
type = "group",
|
type = "group",
|
||||||
name = L["Location Text"],
|
name = L["Location Text"],
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 0,
|
||||||
|
type = "header",
|
||||||
|
name = L["Location Text"]
|
||||||
|
},
|
||||||
locationText = {
|
locationText = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Location Text"],
|
name = L["Location Text"],
|
||||||
desc = L["Change settings for the display of the location text that is on the minimap."],
|
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,
|
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,
|
set = function(info, value) E.db.general.minimap.locationText = value MM:UpdateSettings() MM:Update_ZoneText() end,
|
||||||
values = {
|
values = {
|
||||||
["MOUSEOVER"] = L["Minimap Mouseover"],
|
["MOUSEOVER"] = L["Minimap Mouseover"],
|
||||||
["SHOW"] = L["Always Display"],
|
["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 = {
|
locationFont = {
|
||||||
order = 2,
|
order = 3,
|
||||||
type = "select",
|
type = "select",
|
||||||
dialogControl = "LSM30_Font",
|
dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font,
|
values = AceGUIWidgetLSMlists.font,
|
||||||
set = function(info, value) E.db.general.minimap.locationFont = value; MM:Update_ZoneText(); 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,
|
disabled = function() return not E.private.general.minimap.enable end,
|
||||||
},
|
},
|
||||||
locationFontSize = {
|
locationFontSize = {
|
||||||
order = 3,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 6, max = 36, step = 1,
|
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,
|
disabled = function() return not E.private.general.minimap.enable end,
|
||||||
},
|
},
|
||||||
locationFontOutline = {
|
locationFontOutline = {
|
||||||
order = 4,
|
order = 5,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Font Outline"],
|
name = L["Font Outline"],
|
||||||
set = function(info, value) E.db.general.minimap.locationFontOutline = value; MM:Update_ZoneText(); 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,
|
disabled = function() return not E.private.general.minimap.enable end,
|
||||||
values = {
|
values = {
|
||||||
["NONE"] = L["None"],
|
["NONE"] = L["None"],
|
||||||
["OUTLINE"] = "OUTLINE",
|
["OUTLINE"] = "OUTLINE",
|
||||||
@@ -195,22 +203,27 @@ E.Options.args.maps = {
|
|||||||
type = "group",
|
type = "group",
|
||||||
name = L["Reset Zoom"],
|
name = L["Reset Zoom"],
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 0,
|
||||||
|
type = "header",
|
||||||
|
name = L["Reset Zoom"]
|
||||||
|
},
|
||||||
enableZoomReset = {
|
enableZoomReset = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Reset Zoom"],
|
name = L["Reset Zoom"],
|
||||||
get = function(info) return E.db.general.minimap.resetZoom.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,
|
set = function(info, value) E.db.general.minimap.resetZoom.enable = value MM:UpdateSettings() end,
|
||||||
disabled = function() return not E.private.general.minimap.enable; end
|
disabled = function() return not E.private.general.minimap.enable end
|
||||||
},
|
},
|
||||||
zoomResetTime = {
|
zoomResetTime = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Seconds"],
|
name = L["Seconds"],
|
||||||
min = 1, max = 15, step = 1,
|
min = 1, max = 15, step = 1,
|
||||||
get = function(info) return E.db.general.minimap.resetZoom.time; 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,
|
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
|
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",
|
type = "group",
|
||||||
name = L["Minimap Buttons"],
|
name = L["Minimap Buttons"],
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 0,
|
||||||
|
type = "header",
|
||||||
|
name = L["Minimap Buttons"]
|
||||||
|
},
|
||||||
calendar = {
|
calendar = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Calendar"],
|
name = L["Time Info"],
|
||||||
get = function(info) return E.db.general.minimap.icons.calendar[ info[getn(info)] ]; end,
|
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,
|
set = function(info, value) E.db.general.minimap.icons.calendar[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 0,
|
||||||
|
type = "header",
|
||||||
|
name = L["Time Info"]
|
||||||
|
},
|
||||||
hideCalendar = {
|
hideCalendar = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = HIDE,
|
name = L["Hide"],
|
||||||
get = function(info) return E.private.general.minimap.hideCalendar; end,
|
get = function(info) return E.private.general.minimap.hideCalendar end,
|
||||||
set = function(info, value) E.private.general.minimap.hideCalendar = value; MM:UpdateSettings(); end,
|
set = function(info, value) E.private.general.minimap.hideCalendar = value MM:UpdateSettings() end,
|
||||||
width = "full"
|
width = "full"
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
@@ -244,7 +267,7 @@ E.Options.args.maps = {
|
|||||||
order = 3,
|
order = 3,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Position"],
|
name = L["Position"],
|
||||||
disabled = function() return E.private.general.minimap.hideCalendar; end,
|
disabled = function() return E.private.general.minimap.hideCalendar end,
|
||||||
values = {
|
values = {
|
||||||
["LEFT"] = L["Left"],
|
["LEFT"] = L["Left"],
|
||||||
["RIGHT"] = L["Right"],
|
["RIGHT"] = L["Right"],
|
||||||
@@ -260,31 +283,37 @@ E.Options.args.maps = {
|
|||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Scale"],
|
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 = {
|
xOffset = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["xOffset"],
|
name = L["xOffset"],
|
||||||
min = -50, max = 50, step = 1,
|
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 = {
|
yOffset = {
|
||||||
order = 6,
|
order = 6,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["yOffset"],
|
name = L["yOffset"],
|
||||||
min = -50, max = 50, step = 1,
|
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 = {
|
mail = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = MAIL_LABEL,
|
name = L["Mail"],
|
||||||
get = function(info) return E.db.general.minimap.icons.mail[ info[getn(info)] ]; end,
|
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,
|
set = function(info, value) E.db.general.minimap.icons.mail[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
order = 0,
|
||||||
|
type = "header",
|
||||||
|
name = L["Mail"]
|
||||||
|
},
|
||||||
position = {
|
position = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "select",
|
type = "select",
|
||||||
@@ -324,51 +353,14 @@ E.Options.args.maps = {
|
|||||||
order = 3,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["PvP Queue"],
|
name = L["PvP Queue"],
|
||||||
get = function(info) return E.db.general.minimap.icons.battlefield[ info[getn(info)] ]; 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,
|
set = function(info, value) E.db.general.minimap.icons.battlefield[ info[getn(info)] ] = value MM:UpdateSettings() end,
|
||||||
args = {
|
args = {
|
||||||
position = {
|
header = {
|
||||||
order = 1,
|
order = 0,
|
||||||
type = "select",
|
type = "header",
|
||||||
name = L["Position"],
|
name = L["PvP Queue"]
|
||||||
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"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
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 = {
|
position = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "select",
|
type = "select",
|
||||||
@@ -409,4 +401,4 @@ E.Options.args.maps = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ local ACD = LibStub("AceConfigDialog-3.0");
|
|||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local getn = table.getn
|
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 selectedFilter
|
||||||
local filters
|
local filters
|
||||||
@@ -823,7 +820,7 @@ E.Options.args.nameplate = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 4, max = 34, step = 1,
|
min = 4, max = 34, step = 1,
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
|
|||||||
+34
-22
@@ -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");
|
local S = E:GetModule("Skins");
|
||||||
|
|
||||||
|
--Cache global variables
|
||||||
|
--Lua functions
|
||||||
|
local getn = table.getn
|
||||||
|
|
||||||
E.Options.args.skins = {
|
E.Options.args.skins = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Skins"],
|
name = L["Skins"],
|
||||||
@@ -15,22 +19,30 @@ E.Options.args.skins = {
|
|||||||
order = 2,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = "Blizzard",
|
name = "Blizzard",
|
||||||
get = function(info) return E.private.skins.blizzard.enable; 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,
|
set = function(info, value) E.private.skins.blizzard.enable = value E:StaticPopup_Show("PRIVATE_RL"); end,
|
||||||
},
|
},
|
||||||
ace3 = {
|
ace3 = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = "Ace3",
|
name = "Ace3",
|
||||||
get = function(info) return E.private.skins.ace3.enable; 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,
|
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 = {
|
blizzard = {
|
||||||
order = 100,
|
order = 100,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = "Blizzard",
|
name = "Blizzard",
|
||||||
get = function(info) return E.private.skins.blizzard[ info[getn(info)] ]; 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,
|
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,
|
disabled = function() return not E.private.skins.blizzard.enable end,
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
args = {
|
args = {
|
||||||
@@ -41,7 +53,7 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
auctionhouse = {
|
auctionhouse = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Auction Frame"],
|
name = L["Auctions"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
bags = {
|
bags = {
|
||||||
@@ -62,7 +74,12 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
binding = {
|
binding = {
|
||||||
type = "toggle",
|
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"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
character = {
|
character = {
|
||||||
@@ -107,7 +124,7 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
inspect = {
|
inspect = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Inspect Frame"],
|
name = L["Inspect"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
loot = {
|
loot = {
|
||||||
@@ -124,17 +141,17 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
macro = {
|
macro = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Macro Frame"],
|
name = L["Macros"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
mail = {
|
mail = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Mail Frame"],
|
name = L["Mail"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
merchant = {
|
merchant = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Merchant Frame"],
|
name = L["Merchant"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
misc = {
|
misc = {
|
||||||
@@ -152,11 +169,6 @@ E.Options.args.skins = {
|
|||||||
name = L["Quest Frames"],
|
name = L["Quest Frames"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
questtimers = {
|
|
||||||
type = "toggle",
|
|
||||||
name = QUEST_TIMERS,
|
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
|
||||||
},
|
|
||||||
raid = {
|
raid = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Raid Frame"],
|
name = L["Raid Frame"],
|
||||||
@@ -179,7 +191,7 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
talent = {
|
talent = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Talent Frame"],
|
name = L["Talents"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
taxi = {
|
taxi = {
|
||||||
@@ -194,12 +206,12 @@ E.Options.args.skins = {
|
|||||||
},
|
},
|
||||||
trade = {
|
trade = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Trade Frame"],
|
name = L["Trade"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
tradeskill = {
|
tradeskill = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["TradeSkill Frame"],
|
name = L["Tradeskills"],
|
||||||
desc = L["TOGGLESKIN_DESC"]
|
desc = L["TOGGLESKIN_DESC"]
|
||||||
},
|
},
|
||||||
trainer = {
|
trainer = {
|
||||||
@@ -225,4 +237,4 @@ E.Options.args.skins = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+100
-81
@@ -1,19 +1,21 @@
|
|||||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||||
local TT = E:GetModule("Tooltip");
|
local TT = E:GetModule("Tooltip");
|
||||||
|
local LSM = E.LSM
|
||||||
|
|
||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
|
local _G = _G
|
||||||
local tonumber, tostring = tonumber, tostring
|
local tonumber, tostring = tonumber, tostring
|
||||||
local getn = table.getn
|
local getn = table.getn
|
||||||
--WoW API / Variables
|
--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 = {
|
E.Options.args.tooltip = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Tooltip"],
|
name = L["Tooltip"],
|
||||||
childGroups = "tab",
|
childGroups = "tab",
|
||||||
get = function(info) return E.db.tooltip[ info[getn(info)] ]; end,
|
get = function(info) return E.db.tooltip[ info[getn(info)] ] end,
|
||||||
set = function(info, value) E.db.tooltip[ info[getn(info)] ] = value; end,
|
set = function(info, value) E.db.tooltip[ info[getn(info)] ] = value end,
|
||||||
args = {
|
args = {
|
||||||
intro = {
|
intro = {
|
||||||
order = 1,
|
order = 1,
|
||||||
@@ -30,46 +32,46 @@ E.Options.args.tooltip = {
|
|||||||
general = {
|
general = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = GENERAL,
|
name = L["General"],
|
||||||
disabled = function() return not E.Tooltip; end,
|
disabled = function() return not E.Tooltip end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = GENERAL
|
name = L["General"]
|
||||||
},
|
},
|
||||||
cursorAnchor = {
|
cursorAnchor = {
|
||||||
order = 1,
|
order = 2,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Cursor Anchor"],
|
name = L["Cursor Anchor"],
|
||||||
desc = L["Should tooltip be anchored to mouse cursor"]
|
desc = L["Should tooltip be anchored to mouse cursor"]
|
||||||
},
|
},
|
||||||
targetInfo = {
|
targetInfo = {
|
||||||
order = 2,
|
order = 3,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Target Info"],
|
name = L["Target Info"],
|
||||||
desc = L["When in a raid group display if anyone in your raid is targeting the current tooltip unit."]
|
desc = L["When in a raid group display if anyone in your raid is targeting the current tooltip unit."]
|
||||||
},
|
},
|
||||||
playerTitles = {
|
playerTitles = {
|
||||||
order = 3,
|
order = 4,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Player Titles"],
|
name = L["Player Titles"],
|
||||||
desc = L["Display player titles."]
|
desc = L["Display player titles."]
|
||||||
},
|
},
|
||||||
guildRanks = {
|
guildRanks = {
|
||||||
order = 4,
|
order = 5,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Guild Ranks"],
|
name = L["Guild Ranks"],
|
||||||
desc = L["Display guild ranks if a unit is guilded."]
|
desc = L["Display guild ranks if a unit is guilded."]
|
||||||
},
|
},
|
||||||
inspectInfo = {
|
inspectInfo = {
|
||||||
order = 5,
|
order = 6,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Inspect Info"],
|
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."],
|
desc = L["Display the players talent spec and item level in the tooltip, this may not immediately update when mousing over a unit."],
|
||||||
},
|
},
|
||||||
itemPrice = {
|
itemPrice = {
|
||||||
order = 6,
|
order = 7,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Item Price"],
|
name = L["Item Price"],
|
||||||
desc = L["Display vendor sell value on item tooltips."],
|
desc = L["Display vendor sell value on item tooltips."],
|
||||||
@@ -79,13 +81,24 @@ E.Options.args.tooltip = {
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
spellID = {
|
spellID = {
|
||||||
order = 7,
|
order = 8,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Spell/Item IDs"],
|
name = L["Spell/Item IDs"],
|
||||||
desc = L["Display the spell or item ID when mousing over a spell or item tooltip."]
|
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 = {
|
itemCount = {
|
||||||
order = 8,
|
order = 11,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Item Count"],
|
name = L["Item Count"],
|
||||||
desc = L["Display how many of a certain item you have in your possession."],
|
desc = L["Display how many of a certain item you have in your possession."],
|
||||||
@@ -97,38 +110,38 @@ E.Options.args.tooltip = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
colorAlpha = {
|
colorAlpha = {
|
||||||
order = 9,
|
order = 12,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = OPACITY,
|
name = L["Opacity"],
|
||||||
isPercent = true,
|
isPercent = true,
|
||||||
min = 0, max = 1, step = 0.01
|
min = 0, max = 1, step = 0.01
|
||||||
},
|
},
|
||||||
fontGroup = {
|
fontGroup = {
|
||||||
order = 10,
|
order = 13,
|
||||||
type = "group",
|
type = "group",
|
||||||
guiInline = true,
|
|
||||||
name = L["Tooltip Font Settings"],
|
name = L["Tooltip Font Settings"],
|
||||||
|
guiInline = true,
|
||||||
args = {
|
args = {
|
||||||
font = {
|
font = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font,
|
values = AceGUIWidgetLSMlists.font,
|
||||||
get = function(info) return E.db.tooltip.font; end,
|
get = function(info) return E.db.tooltip.font end,
|
||||||
set = function(info, value) E.db.tooltip.font = value; TT:SetTooltipFonts(); end
|
set = function(info, value) E.db.tooltip.font = value TT:SetTooltipFonts() end
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
order = 2,
|
order = 2,
|
||||||
name = L["Font Outline"],
|
|
||||||
type = "select",
|
type = "select",
|
||||||
|
name = L["Font Outline"],
|
||||||
values = {
|
values = {
|
||||||
["NONE"] = L["None"],
|
["NONE"] = L["None"],
|
||||||
["OUTLINE"] = "OUTLINE",
|
["OUTLINE"] = "OUTLINE",
|
||||||
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
["MONOCHROMEOUTLINE"] = "MONOCROMEOUTLINE",
|
||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||||
},
|
},
|
||||||
get = function(info) return E.db.tooltip.fontOutline; end,
|
get = function(info) return E.db.tooltip.fontOutline end,
|
||||||
set = function(info, value) E.db.tooltip.fontOutline = value; TT:SetTooltipFonts(); end,
|
set = function(info, value) E.db.tooltip.fontOutline = value TT:SetTooltipFonts() end,
|
||||||
},
|
},
|
||||||
spacer = {
|
spacer = {
|
||||||
order = 3,
|
order = 3,
|
||||||
@@ -140,8 +153,8 @@ E.Options.args.tooltip = {
|
|||||||
type = "range",
|
type = "range",
|
||||||
name = L["Header Font Size"],
|
name = L["Header Font Size"],
|
||||||
min = 4, max = 33, step = 1,
|
min = 4, max = 33, step = 1,
|
||||||
get = function(info) return E.db.tooltip.headerFontSize; end,
|
get = function(info) return E.db.tooltip.headerFontSize end,
|
||||||
set = function(info, value) E.db.tooltip.headerFontSize = value; TT:SetTooltipFonts(); end
|
set = function(info, value) E.db.tooltip.headerFontSize = value TT:SetTooltipFonts() end
|
||||||
},
|
},
|
||||||
textFontSize = {
|
textFontSize = {
|
||||||
order = 5,
|
order = 5,
|
||||||
@@ -149,7 +162,7 @@ E.Options.args.tooltip = {
|
|||||||
name = L["Text Font Size"],
|
name = L["Text Font Size"],
|
||||||
min = 4, max = 33, step = 1,
|
min = 4, max = 33, step = 1,
|
||||||
get = function(info) return E.db.tooltip.textFontSize end,
|
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 = {
|
smallTextFontSize = {
|
||||||
order = 6,
|
order = 6,
|
||||||
@@ -157,13 +170,13 @@ E.Options.args.tooltip = {
|
|||||||
name = L["Comparison Font Size"],
|
name = L["Comparison Font Size"],
|
||||||
desc = L["This setting controls the size of text in item comparison tooltips."],
|
desc = L["This setting controls the size of text in item comparison tooltips."],
|
||||||
min = 4, max = 33, step = 1,
|
min = 4, max = 33, step = 1,
|
||||||
get = function(info) return E.db.tooltip.smallTextFontSize; end,
|
get = function(info) return E.db.tooltip.smallTextFontSize end,
|
||||||
set = function(info, value) E.db.tooltip.smallTextFontSize = value; TT:SetTooltipFonts(); end
|
set = function(info, value) E.db.tooltip.smallTextFontSize = value TT:SetTooltipFonts() end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
factionColors = {
|
factionColors = {
|
||||||
order = 11,
|
order = 13,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Custom Faction Colors"],
|
name = L["Custom Faction Colors"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
@@ -172,18 +185,18 @@ E.Options.args.tooltip = {
|
|||||||
order = 0,
|
order = 0,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Custom Faction Colors"],
|
name = L["Custom Faction Colors"],
|
||||||
get = function(info) return E.db.tooltip.useCustomFactionColors; end,
|
get = function(info) return E.db.tooltip.useCustomFactionColors end,
|
||||||
set = function(info, value) E.db.tooltip.useCustomFactionColors = value; end
|
set = function(info, value) E.db.tooltip.useCustomFactionColors = value end
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local t = E.db.tooltip.factionColors[ tonumber(info[getn(info)]) ];
|
local t = E.db.tooltip.factionColors[tonumber(info[getn(info)])]
|
||||||
local d = P.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;
|
return t.r, t.g, t.b, t.a, d.r, d.g, d.b
|
||||||
end,
|
end,
|
||||||
set = function(info, r, g, b)
|
set = function(info, r, g, b)
|
||||||
local t = E.db.tooltip.factionColors[ tonumber(info[getn(info)]) ];
|
local t = E.db.tooltip.factionColors[tonumber(info[getn(info)])]
|
||||||
t.r, t.g, t.b = r, g, b;
|
t.r, t.g, t.b = r, g, b
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -192,53 +205,59 @@ E.Options.args.tooltip = {
|
|||||||
order = 4,
|
order = 4,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Visibility"],
|
name = L["Visibility"],
|
||||||
get = function(info) return E.db.tooltip.visibility[ info[getn(info)] ]; 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,
|
set = function(info, value) E.db.tooltip.visibility[ info[getn(info)] ] = value end,
|
||||||
disabled = function() return not E.Tooltip; end,
|
disabled = function() return not E.Tooltip end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Visibility"]
|
name = L["Visibility"]
|
||||||
},
|
},
|
||||||
actionbars = {
|
actionbars = {
|
||||||
order = 1,
|
order = 2,
|
||||||
type = "select",
|
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."],
|
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 = {
|
values = {
|
||||||
["ALL"] = L["Always Hide"],
|
["ALL"] = L["Always Hide"],
|
||||||
["NONE"] = L["Never Hide"],
|
["NONE"] = L["Never Hide"],
|
||||||
--["SHIFT"] = SHIFT_KEY,
|
["SHIFT"] = L["Shift Key"],
|
||||||
--["ALT"] = ALT_KEY,
|
["ALT"] = L["ALT-Key"],
|
||||||
--["CTRL"] = CTRL_KEY
|
["CTRL"] = L["CTRL-Key"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bags = {
|
bags = {
|
||||||
order = 2,
|
order = 3,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Bags/Bank"],
|
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."],
|
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 = {
|
values = {
|
||||||
["ALL"] = L["Always Hide"],
|
["ALL"] = L["Always Hide"],
|
||||||
["NONE"] = L["Never Hide"],
|
["NONE"] = L["Never Hide"],
|
||||||
--["SHIFT"] = SHIFT_KEY,
|
["SHIFT"] = L["Shift Key"],
|
||||||
--["ALT"] = ALT_KEY,
|
["ALT"] = L["ALT-Key"],
|
||||||
--["CTRL"] = CTRL_KEY
|
["CTRL"] = L["CTRL-Key"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
unitFrames = {
|
unitFrames = {
|
||||||
order = 3,
|
order = 4,
|
||||||
type = "select",
|
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."],
|
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 = {
|
values = {
|
||||||
["ALL"] = L["Always Hide"],
|
["ALL"] = L["Always Hide"],
|
||||||
["NONE"] = L["Never Hide"],
|
["NONE"] = L["Never Hide"],
|
||||||
--["SHIFT"] = SHIFT_KEY,
|
["SHIFT"] = L["Shift Key"],
|
||||||
--["ALT"] = ALT_KEY,
|
["ALT"] = L["ALT-Key"],
|
||||||
--["CTRL"] = CTRL_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,
|
order = 5,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Health Bar"],
|
name = L["Health Bar"],
|
||||||
get = function(info) return E.db.tooltip.healthBar[ info[getn(info)] ]; 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,
|
set = function(info, value) E.db.tooltip.healthBar[ info[getn(info)] ] = value end,
|
||||||
disabled = function() return not E.Tooltip; end,
|
disabled = function() return not E.Tooltip end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 0,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Health Bar"]
|
name = L["Health Bar"]
|
||||||
},
|
},
|
||||||
height = {
|
height = {
|
||||||
order = 1,
|
order = 2,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Height"],
|
name = L["Height"],
|
||||||
min = 1, max = 15, step = 1,
|
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 = {
|
statusPosition = {
|
||||||
order = 2,
|
order = 3,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Position"],
|
name = L["Position"],
|
||||||
values = {
|
values = {
|
||||||
@@ -272,35 +291,35 @@ E.Options.args.tooltip = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
text = {
|
text = {
|
||||||
order = 3,
|
order = 4,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Text"],
|
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 = {
|
font = {
|
||||||
order = 4,
|
order = 5,
|
||||||
type = "select", dialogControl = "LSM30_Font",
|
type = "select", dialogControl = "LSM30_Font",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
values = AceGUIWidgetLSMlists.font,
|
values = AceGUIWidgetLSMlists.font,
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
E.db.tooltip.healthBar.font = 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:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||||
end,
|
end,
|
||||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||||
},
|
},
|
||||||
fontSize = {
|
fontSize = {
|
||||||
order = 5,
|
order = 6,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 6, max = 500, step = 1,
|
min = 4, max = 33, step = 1,
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
E.db.tooltip.healthBar.fontSize = 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:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||||
end,
|
end,
|
||||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
order = 6,
|
order = 7,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Font Outline"],
|
name = L["Font Outline"],
|
||||||
values = {
|
values = {
|
||||||
@@ -310,22 +329,22 @@ E.Options.args.tooltip = {
|
|||||||
["THICKOUTLINE"] = "THICKOUTLINE"
|
["THICKOUTLINE"] = "THICKOUTLINE"
|
||||||
},
|
},
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
E.db.tooltip.healthBar.fontOutline = 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:FontTemplate(GameTooltipStatusBar.text, LSM:Fetch("font", E.db.tooltip.healthBar.font), E.db.tooltip.healthBar.fontSize, E.db.tooltip.healthBar.fontOutline)
|
||||||
end,
|
end,
|
||||||
disabled = function() return not E.db.tooltip.healthBar.text end
|
disabled = function() return not E.db.tooltip.healthBar.text end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
for i = 1, 8 do
|
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,
|
order = i,
|
||||||
type = "color",
|
type = "color",
|
||||||
hasAlpha = false,
|
hasAlpha = false,
|
||||||
name = _G["FACTION_STANDING_LABEL" .. i],
|
name = _G["FACTION_STANDING_LABEL"..i],
|
||||||
disabled = function() return not E.Tooltip or not E.db.tooltip.useCustomFactionColors; end,
|
disabled = function() return not E.Tooltip or not E.db.tooltip.useCustomFactionColors end,
|
||||||
};
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
+80
-392
@@ -10,11 +10,6 @@ local find, format, lower, match, gsub, strsplit = string.find, string.format, s
|
|||||||
local IsAddOnLoaded = IsAddOnLoaded
|
local IsAddOnLoaded = IsAddOnLoaded
|
||||||
local GetScreenWidth = GetScreenWidth
|
local GetScreenWidth = GetScreenWidth
|
||||||
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
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")
|
local ACD = LibStub("AceConfigDialog-3.0")
|
||||||
|
|
||||||
@@ -83,7 +78,7 @@ local growthDirectionValues = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local smartAuraPositionValues = {
|
local smartAuraPositionValues = {
|
||||||
["DISABLED"] = DISABLE,
|
["DISABLED"] = L["Disable"],
|
||||||
["BUFFS_ON_DEBUFFS"] = L["Position Buffs on Debuffs"],
|
["BUFFS_ON_DEBUFFS"] = L["Position Buffs on Debuffs"],
|
||||||
["DEBUFFS_ON_BUFFS"] = L["Position Debuffs on Buffs"],
|
["DEBUFFS_ON_BUFFS"] = L["Position Debuffs on Buffs"],
|
||||||
["FLUID_BUFFS_ON_DEBUFFS"] = L["Fluid Position Buffs on Debuffs"],
|
["FLUID_BUFFS_ON_DEBUFFS"] = L["Fluid Position Buffs on Debuffs"],
|
||||||
@@ -160,7 +155,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 9,
|
order = 9,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 6, max = 22, step = 1
|
min = 6, max = 22, step = 1
|
||||||
},
|
},
|
||||||
clickThrough = {
|
clickThrough = {
|
||||||
@@ -177,9 +172,9 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
values = {
|
values = {
|
||||||
["TIME_REMAINING"] = L["Time Remaining"],
|
["TIME_REMAINING"] = L["Time Remaining"],
|
||||||
["DURATION"] = L["Duration"],
|
["DURATION"] = L["Duration"],
|
||||||
["NAME"] = NAME,
|
["NAME"] = L["Name"],
|
||||||
["INDEX"] = L["Index"],
|
["INDEX"] = L["Index"],
|
||||||
["PLAYER"] = PLAYER
|
["PLAYER"] = L["Player"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortDirection = {
|
sortDirection = {
|
||||||
@@ -195,7 +190,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
filters = {
|
filters = {
|
||||||
order = 100,
|
order = 100,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = FILTERS,
|
name = L["Filters"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
args = {}
|
args = {}
|
||||||
}
|
}
|
||||||
@@ -211,7 +206,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
values = {
|
values = {
|
||||||
["FRAME"] = L["Frame"],
|
["FRAME"] = L["Frame"],
|
||||||
["DEBUFFS"] = L["Debuffs"],
|
["DEBUFFS"] = L["Debuffs"],
|
||||||
["HEALTH"] = HEALTH,
|
["HEALTH"] = L["Health"],
|
||||||
["POWER"] = L["Power"]
|
["POWER"] = L["Power"]
|
||||||
},
|
},
|
||||||
disabled = function()
|
disabled = function()
|
||||||
@@ -228,7 +223,7 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
values = {
|
values = {
|
||||||
["FRAME"] = L["Frame"],
|
["FRAME"] = L["Frame"],
|
||||||
["BUFFS"] = L["Buffs"],
|
["BUFFS"] = L["Buffs"],
|
||||||
["HEALTH"] = HEALTH,
|
["HEALTH"] = L["Health"],
|
||||||
["POWER"] = L["Power"]
|
["POWER"] = L["Power"]
|
||||||
},
|
},
|
||||||
disabled = function()
|
disabled = function()
|
||||||
@@ -268,13 +263,13 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.args.filters.args.useFilter = {
|
config.args.filters.args.useFilter = {
|
||||||
order = 18,
|
order = 20,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Additional Filter"],
|
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."],
|
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()
|
values = function()
|
||||||
filters = {}
|
filters = {}
|
||||||
filters[""] = NONE
|
filters[""] = L["None"]
|
||||||
for filter in pairs(E.global.unitframe.aurafilters) do
|
for filter in pairs(E.global.unitframe.aurafilters) do
|
||||||
filters[filter] = filter
|
filters[filter] = filter
|
||||||
end
|
end
|
||||||
@@ -355,13 +350,13 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
config.args.filters.args.useFilter = {
|
config.args.filters.args.useFilter = {
|
||||||
order = 18,
|
order = 19,
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Additional Filter"],
|
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."],
|
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()
|
values = function()
|
||||||
filters = {}
|
filters = {}
|
||||||
filters[""] = NONE
|
filters[""] = L["None"]
|
||||||
for filter in pairs(E.global.unitframe.aurafilters) do
|
for filter in pairs(E.global.unitframe.aurafilters) do
|
||||||
filters[filter] = filter
|
filters[filter] = filter
|
||||||
end
|
end
|
||||||
@@ -371,14 +366,14 @@ local function GetOptionsTable_Auras(friendlyUnitOnly, auraType, isGroupFrame, u
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.args.filters.args.minDuration = {
|
config.args.filters.args.minDuration = {
|
||||||
order = 19,
|
order = 21,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Minimum Duration"],
|
name = L["Minimum Duration"],
|
||||||
desc = L["Don't display auras that are shorter than this duration (in seconds). Set to zero to disable."],
|
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,
|
min = 0, max = 10800, step = 1,
|
||||||
}
|
}
|
||||||
config.args.filters.args.maxDuration = {
|
config.args.filters.args.maxDuration = {
|
||||||
order = 20,
|
order = 22,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Maximum Duration"],
|
name = L["Maximum Duration"],
|
||||||
desc = L["Don't display auras that are longer than this duration (in seconds). Set to zero to disable."],
|
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 = {
|
local config = {
|
||||||
order = 100,
|
order = 100,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = HEALTH,
|
name = L["Health"],
|
||||||
get = function(info) return E.db.unitframe.units[groupName].health[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) E.db.unitframe.units[groupName].health[ info[getn(info)] ] = value updateFunc(UF, groupName, numUnits) end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = HEALTH
|
name = L["Health"]
|
||||||
},
|
},
|
||||||
position = {
|
position = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -708,14 +703,14 @@ local function GetOptionsTable_Name(updateFunc, groupName, numUnits)
|
|||||||
local config = {
|
local config = {
|
||||||
order = 300,
|
order = 300,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = NAME,
|
name = L["Name"],
|
||||||
get = function(info) return E.db.unitframe.units[groupName].name[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) E.db.unitframe.units[groupName].name[ info[getn(info)] ] = value updateFunc(UF, groupName, numUnits) end,
|
||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = NAME
|
name = L["Name"]
|
||||||
},
|
},
|
||||||
position = {
|
position = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -825,7 +820,7 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
|
|||||||
forceshow = {
|
forceshow = {
|
||||||
order = 3,
|
order = 3,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Show"].." / "..HIDE,
|
name = L["Show"].." / "..L["Hide"],
|
||||||
func = function()
|
func = function()
|
||||||
local frameName = E:StringTitle(groupName)
|
local frameName = E:StringTitle(groupName)
|
||||||
frameName = "ElvUF_"..frameName
|
frameName = "ElvUF_"..frameName
|
||||||
@@ -1060,7 +1055,7 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
|
|||||||
tickColor = {
|
tickColor = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local c = E.db.unitframe.units[groupName].castbar.tickColor
|
local c = E.db.unitframe.units[groupName].castbar.tickColor
|
||||||
@@ -1182,7 +1177,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 6,
|
order = 6,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
@@ -1243,7 +1238,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
|||||||
color = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local c = E.db.unitframe.units.raid.rdebuffs.duration.color
|
local c = E.db.unitframe.units.raid.rdebuffs.duration.color
|
||||||
@@ -1287,7 +1282,7 @@ local function GetOptionsTable_RaidDebuff(updateFunc, groupName)
|
|||||||
color = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local c = E.db.unitframe.units[groupName].rdebuffs.stack.color
|
local c = E.db.unitframe.units[groupName].rdebuffs.stack.color
|
||||||
@@ -1448,7 +1443,7 @@ local function CreateCustomTextGroup(unit, objectName)
|
|||||||
delete = {
|
delete = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = DELETE,
|
name = L["Delete"],
|
||||||
func = function()
|
func = function()
|
||||||
E.Options.args.unitframe.args[unit].args.customText.args[objectName] = nil
|
E.Options.args.unitframe.args[unit].args.customText.args[objectName] = nil
|
||||||
E.db.unitframe.units[unit].customTexts[objectName] = nil
|
E.db.unitframe.units[unit].customTexts[objectName] = nil
|
||||||
@@ -1492,7 +1487,7 @@ local function CreateCustomTextGroup(unit, objectName)
|
|||||||
size = {
|
size = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 4, max = 32, step = 1
|
min = 4, max = 32, step = 1
|
||||||
},
|
},
|
||||||
fontOutline = {
|
fontOutline = {
|
||||||
@@ -1567,7 +1562,7 @@ local function GetOptionsTable_CustomText(updateFunc, groupName, numUnits)
|
|||||||
width = "full",
|
width = "full",
|
||||||
get = function() return "" end,
|
get = function() return "" end,
|
||||||
set = function(info, textName)
|
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
|
if lower(object) == lower(textName) then
|
||||||
E:Print(L["The name you have selected is already in use by another element."])
|
E:Print(L["The name you have selected is already in use by another element."])
|
||||||
return
|
return
|
||||||
@@ -1666,7 +1661,7 @@ E.Options.args.unitframe = {
|
|||||||
colorsShortcut = {
|
colorsShortcut = {
|
||||||
order = 9,
|
order = 9,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = COLOR,
|
name = L["Colors"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "generalOptionsGroup", "allColorsGroup") end,
|
func = function() ACD:SelectGroup("ElvUI", "unitframe", "generalOptionsGroup", "allColorsGroup") end,
|
||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
@@ -1721,24 +1716,8 @@ E.Options.args.unitframe = {
|
|||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
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 = {
|
petShortcut = {
|
||||||
order = 19,
|
order = 17,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Pet Frame"],
|
name = L["Pet Frame"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
@@ -1746,12 +1725,12 @@ E.Options.args.unitframe = {
|
|||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
spacer5 = {
|
spacer5 = {
|
||||||
order = 20,
|
order = 18,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
name = " "
|
||||||
},
|
},
|
||||||
pettargetShortcut = {
|
pettargetShortcut = {
|
||||||
order = 21,
|
order = 19,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["PetTarget Frame"],
|
name = L["PetTarget Frame"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
@@ -1759,28 +1738,28 @@ E.Options.args.unitframe = {
|
|||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
partyShortcut = {
|
partyShortcut = {
|
||||||
order = 23,
|
order = 20,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Party Frames"],
|
name = L["Party Frames"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "party") end,
|
func = function() ACD:SelectGroup("ElvUI", "unitframe", "party") end,
|
||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
spacer6 = {
|
|
||||||
order = 24,
|
|
||||||
type = "description",
|
|
||||||
name = " "
|
|
||||||
},
|
|
||||||
raidShortcut = {
|
raidShortcut = {
|
||||||
order = 25,
|
order = 21,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Raid Frames"],
|
name = L["Raid Frames"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
func = function() ACD:SelectGroup("ElvUI", "unitframe", "raid") end,
|
func = function() ACD:SelectGroup("ElvUI", "unitframe", "raid") end,
|
||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
|
spacer6 = {
|
||||||
|
order = 22,
|
||||||
|
type = "description",
|
||||||
|
name = " "
|
||||||
|
},
|
||||||
raid40Shortcut = {
|
raid40Shortcut = {
|
||||||
order = 26,
|
order = 23,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Raid-40 Frames"],
|
name = L["Raid-40 Frames"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
@@ -1788,7 +1767,7 @@ E.Options.args.unitframe = {
|
|||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
raidpetShortcut = {
|
raidpetShortcut = {
|
||||||
order = 27,
|
order = 24,
|
||||||
type = "execute",
|
type = "execute",
|
||||||
name = L["Raid Pet Frames"],
|
name = L["Raid Pet Frames"],
|
||||||
buttonElvUI = true,
|
buttonElvUI = true,
|
||||||
@@ -1796,12 +1775,12 @@ E.Options.args.unitframe = {
|
|||||||
disabled = function() return not E.UnitFrames end
|
disabled = function() return not E.UnitFrames end
|
||||||
},
|
},
|
||||||
spacer7 = {
|
spacer7 = {
|
||||||
order = 28,
|
order = 25,
|
||||||
type = "description",
|
type = "description",
|
||||||
name = " "
|
name = " "
|
||||||
},
|
},
|
||||||
generalOptionsGroup = {
|
generalOptionsGroup = {
|
||||||
order = 31,
|
order = 26,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["General Options"],
|
name = L["General Options"],
|
||||||
childGroups = "tab",
|
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."],
|
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 = {
|
values = {
|
||||||
["NONE"] = L["None"],
|
["NONE"] = L["None"],
|
||||||
["SHIFT"] = SHIFT_KEY,
|
["SHIFT"] = L["Shift Key"],
|
||||||
["ALT"] = ALT_KEY,
|
["ALT"] = L["ALT-Key"],
|
||||||
["CTRL"] = CTRL_KEY
|
["CTRL"] = L["CTRL-Key"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barGroup = {
|
barGroup = {
|
||||||
@@ -1916,7 +1895,7 @@ E.Options.args.unitframe = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
desc = L["Set the font size for unitframes."],
|
desc = L["Set the font size for unitframes."],
|
||||||
min = 4, max = 32, step = 1,
|
min = 4, max = 32, step = 1,
|
||||||
set = function(info, value) E.db.unitframe[ info[getn(info)] ] = value UF:Update_FontStrings() end
|
set = function(info, value) E.db.unitframe[ info[getn(info)] ] = value UF:Update_FontStrings() end
|
||||||
@@ -1991,7 +1970,7 @@ E.Options.args.unitframe = {
|
|||||||
color = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
disabled = function() return not E.db.unitframe.colors.frameGlow.mainGlow.enable or E.db.unitframe.colors.frameGlow.mainGlow.class end
|
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 = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
disabled = function() return not E.db.unitframe.colors.frameGlow.targetGlow.enable or E.db.unitframe.colors.frameGlow.targetGlow.class end
|
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 = {
|
color = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
disabled = function() return not E.db.unitframe.colors.frameGlow.mouseoverGlow.enable or E.db.unitframe.colors.frameGlow.mouseoverGlow.class end
|
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,
|
order = 3,
|
||||||
type = "group",
|
type = "group",
|
||||||
childGroups = "tree",
|
childGroups = "tree",
|
||||||
name = COLOR,
|
name = L["Colors"],
|
||||||
get = function(info) return E.db.unitframe.colors[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) E.db.unitframe.colors[ info[getn(info)] ] = value UF:Update_AllFrames() end,
|
||||||
args = {
|
args = {
|
||||||
@@ -2141,7 +2120,7 @@ E.Options.args.unitframe = {
|
|||||||
healthGroup = {
|
healthGroup = {
|
||||||
order = 2,
|
order = 2,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = HEALTH,
|
name = L["Health"],
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local t = E.db.unitframe.colors[ info[getn(info)] ]
|
local t = E.db.unitframe.colors[ info[getn(info)] ]
|
||||||
local d = P.unitframe.colors[ info[getn(info)] ]
|
local d = P.unitframe.colors[ info[getn(info)] ]
|
||||||
@@ -2156,7 +2135,7 @@ E.Options.args.unitframe = {
|
|||||||
header = {
|
header = {
|
||||||
order = 1,
|
order = 1,
|
||||||
type = "header",
|
type = "header",
|
||||||
name = HEALTH
|
name = L["Health"]
|
||||||
},
|
},
|
||||||
healthclass = {
|
healthclass = {
|
||||||
order = 2,
|
order = 2,
|
||||||
@@ -2217,7 +2196,7 @@ E.Options.args.unitframe = {
|
|||||||
health = {
|
health = {
|
||||||
order = 9,
|
order = 9,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = HEALTH
|
name = L["Health"]
|
||||||
},
|
},
|
||||||
health_backdrop = {
|
health_backdrop = {
|
||||||
order = 10,
|
order = 10,
|
||||||
@@ -2289,22 +2268,22 @@ E.Options.args.unitframe = {
|
|||||||
MANA = {
|
MANA = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = MANA
|
name = L["Mana"]
|
||||||
},
|
},
|
||||||
RAGE = {
|
RAGE = {
|
||||||
order = 5,
|
order = 5,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = RAGE
|
name = L["Rage"]
|
||||||
},
|
},
|
||||||
FOCUS = {
|
FOCUS = {
|
||||||
order = 6,
|
order = 6,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = FOCUS
|
name = L["Focus"]
|
||||||
},
|
},
|
||||||
ENERGY = {
|
ENERGY = {
|
||||||
order = 7,
|
order = 7,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = ENERGY
|
name = L["Energy"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2441,7 +2420,7 @@ E.Options.args.unitframe = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
debuffHighlight = {
|
debuffHighlight = {
|
||||||
order = 7,
|
order = 8,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["Debuff Highlighting"],
|
name = L["Debuff Highlighting"],
|
||||||
get = function(info)
|
get = function(info)
|
||||||
@@ -2512,14 +2491,8 @@ E.Options.args.unitframe = {
|
|||||||
name = L["Target Frame"],
|
name = L["Target Frame"],
|
||||||
desc = L["Disables the target and target of target unitframes."]
|
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 = {
|
party = {
|
||||||
order = 6,
|
order = 4,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Party Frames"]
|
name = L["Party Frames"]
|
||||||
}
|
}
|
||||||
@@ -2945,7 +2918,7 @@ E.Options.args.unitframe.args.player = {
|
|||||||
color = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
return E.db.unitframe.units.player.RestIcon.defaultColor
|
return E.db.unitframe.units.player.RestIcon.defaultColor
|
||||||
@@ -2997,8 +2970,8 @@ E.Options.args.unitframe.args.player = {
|
|||||||
values = {
|
values = {
|
||||||
["CUSTOM"] = L["Custom"],
|
["CUSTOM"] = L["Custom"],
|
||||||
["DEFAULT"] = L["Default"],
|
["DEFAULT"] = L["Default"],
|
||||||
["RESTING"] = L["Icon 1"],
|
["RESTING"] = L["Resting"],
|
||||||
["RESTING1"] = L["Icon 2"]
|
["RESTING1"] = L["Resting 2"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
customTexture = {
|
customTexture = {
|
||||||
@@ -3040,7 +3013,7 @@ E.Options.args.unitframe.args.player = {
|
|||||||
color = {
|
color = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "color",
|
type = "color",
|
||||||
name = COLOR,
|
name = L["Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
return E.db.unitframe.units.player.CombatIcon.defaultColor
|
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,
|
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
|
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 = {
|
threatStyle = {
|
||||||
order = 12,
|
order = 12,
|
||||||
type = "select",
|
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 = {
|
E.Options.args.unitframe.args.pet = {
|
||||||
order = 800,
|
order = 800,
|
||||||
type = "group",
|
type = "group",
|
||||||
@@ -4274,7 +3962,7 @@ E.Options.args.unitframe.args.pet = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4291,7 +3979,7 @@ E.Options.args.unitframe.args.pet = {
|
|||||||
happiness = {
|
happiness = {
|
||||||
order = 700,
|
order = 700,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = HAPPINESS,
|
name = L["Happiness"],
|
||||||
get = function(info) return E.db.unitframe.units.pet.happiness[ info[getn(info)] ] end,
|
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,
|
set = function(info, value) E.db.unitframe.units.pet.happiness[ info[getn(info)] ] = value UF:CreateAndUpdateUF("pet") end,
|
||||||
disabled = E.myclass ~= "HUNTER",
|
disabled = E.myclass ~= "HUNTER",
|
||||||
@@ -4679,9 +4367,9 @@ E.Options.args.unitframe.args.party = {
|
|||||||
name = L["Group By"],
|
name = L["Group By"],
|
||||||
desc = L["Set the order that the group will sort."],
|
desc = L["Set the order that the group will sort."],
|
||||||
values = {
|
values = {
|
||||||
["CLASS"] = CLASS,
|
["CLASS"] = L["Class"],
|
||||||
["NAME"] = NAME,
|
["NAME"] = L["Name"],
|
||||||
["GROUP"] = GROUP
|
["GROUP"] = L["Group"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortDir = {
|
sortDir = {
|
||||||
@@ -4751,7 +4439,7 @@ E.Options.args.unitframe.args.party = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
},
|
},
|
||||||
profileSpecific = {
|
profileSpecific = {
|
||||||
@@ -4836,7 +4524,7 @@ E.Options.args.unitframe.args.party = {
|
|||||||
name = {
|
name = {
|
||||||
order = 8,
|
order = 8,
|
||||||
type = "group",
|
type = "group",
|
||||||
name = NAME,
|
name = L["Name"],
|
||||||
guiInline = true,
|
guiInline = true,
|
||||||
get = function(info) return E.db.unitframe.units.party.petsGroup.name[ info[getn(info)] ] end,
|
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,
|
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,
|
guiInline = true,
|
||||||
get = function(info) return E.db.unitframe.units.party.targetsGroup.name[ info[getn(info)] ] end,
|
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,
|
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 = {
|
args = {
|
||||||
position = {
|
position = {
|
||||||
order = 1,
|
order = 1,
|
||||||
@@ -5186,9 +4874,9 @@ E.Options.args.unitframe.args.raid = {
|
|||||||
name = L["Group By"],
|
name = L["Group By"],
|
||||||
desc = L["Set the order that the group will sort."],
|
desc = L["Set the order that the group will sort."],
|
||||||
values = {
|
values = {
|
||||||
["CLASS"] = CLASS,
|
["CLASS"] = L["Class"],
|
||||||
["NAME"] = NAME,
|
["NAME"] = L["Name"],
|
||||||
["GROUP"] = GROUP
|
["GROUP"] = L["Group"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortDir = {
|
sortDir = {
|
||||||
@@ -5265,7 +4953,7 @@ E.Options.args.unitframe.args.raid = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
},
|
},
|
||||||
profileSpecific = {
|
profileSpecific = {
|
||||||
@@ -5514,9 +5202,9 @@ E.Options.args.unitframe.args.raid40 = {
|
|||||||
name = L["Group By"],
|
name = L["Group By"],
|
||||||
desc = L["Set the order that the group will sort."],
|
desc = L["Set the order that the group will sort."],
|
||||||
values = {
|
values = {
|
||||||
["CLASS"] = CLASS,
|
["CLASS"] = L["Class"],
|
||||||
["NAME"] = NAME,
|
["NAME"] = L["Name"],
|
||||||
["GROUP"] = GROUP
|
["GROUP"] = L["Group"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortDir = {
|
sortDir = {
|
||||||
@@ -5593,7 +5281,7 @@ E.Options.args.unitframe.args.raid40 = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
},
|
},
|
||||||
profileSpecific = {
|
profileSpecific = {
|
||||||
@@ -5830,7 +5518,7 @@ E.Options.args.unitframe.args.raidpet = {
|
|||||||
values = {
|
values = {
|
||||||
["NAME"] = L["Owners Name"],
|
["NAME"] = L["Owners Name"],
|
||||||
["PETNAME"] = L["Pet Name"],
|
["PETNAME"] = L["Pet Name"],
|
||||||
["GROUP"] = GROUP
|
["GROUP"] = L["Group"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortDir = {
|
sortDir = {
|
||||||
@@ -5907,7 +5595,7 @@ E.Options.args.unitframe.args.raidpet = {
|
|||||||
fontSize = {
|
fontSize = {
|
||||||
order = 4,
|
order = 4,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = FONT_SIZE,
|
name = L["Font Size"],
|
||||||
min = 7, max = 22, step = 1
|
min = 7, max = 22, step = 1
|
||||||
},
|
},
|
||||||
--[[configureButton = {
|
--[[configureButton = {
|
||||||
@@ -5994,4 +5682,4 @@ function E:RefreshCustomTextsConfigs()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
E:RefreshCustomTextsConfigs()
|
E:RefreshCustomTextsConfigs()
|
||||||
|
|||||||
Reference in New Issue
Block a user