from retail

This commit is contained in:
NoM0Re
2025-01-06 19:47:37 +01:00
parent 873748218a
commit 7a185106f2
111 changed files with 359 additions and 195 deletions
@@ -3,7 +3,9 @@ WeakAurasInlineGroup based on InlineGroup Container
Simple container widget that has the same API as a InlineGroup, without actually
showing any borders or a title.
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasInlineGroup", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasInlineGroup", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -3,9 +3,9 @@ WeakAurasTreeGroup Container
Container that uses a tree control to switch between groups.
This file was forked from AceGUIContainer-TreeGroup.lua version 41
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTreeGroup", 2
local Type, Version = "WeakAurasTreeGroup", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasAnchorButtons", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local tinsert, tremove, wipe = table.insert, table.remove, wipe
@@ -1,9 +1,9 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasExpand", 3
local Type, Version = "WeakAurasExpand", 4
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,9 +1,9 @@
--[[-----------------------------------------------------------------------------
Anchor for a Expandable section
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandAnchor", 2
local Type, Version = "WeakAurasExpandAnchor", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,10 +1,10 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandSmall", 2
local Type, Version = "WeakAurasExpandSmall", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -3,9 +3,9 @@ Icon Widget that allows for a tooltip, by preventing SetLabel from actually
setting a label
Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIcon", 1
local Type, Version = "WeakAurasIcon", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIconButton", 21
local Type, Version = "WeakAurasIconButton", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasImportButton", 20
local Type, Version = "WeakAurasImportButton", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Input Widget that allows to show an alternative text when it does not have focus
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasInputFocus", 1
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasLoadedHeaderButton", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasMultiLineEditBox", 35
local Type, Version = "WeakAurasMultiLineEditBox", 36
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
-- based on the AceGUI widget, overwrites the enter handling
local Type, Version = "WeakAuras-MultiLineEditBoxWithEnter", 1
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewButton", 24
local Type, Version = "WeakAurasNewButton", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewHeaderButton", 20
local Type, Version = "WeakAurasNewHeaderButton", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,12 +1,10 @@
if not WeakAuras.IsCorrectVersion() then
return
end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local pairs, next, type, unpack = pairs, next, type, unpack
local Type, Version = "WeakAurasPendingInstallButton", 2
local Type, Version = "WeakAurasPendingInstallButton", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -1,13 +1,11 @@
if not WeakAuras.IsCorrectVersion() then
return
end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
local pairs, next, type, unpack = pairs, next, type, unpack
local Type, Version = "WeakAurasPendingUpdateButton", 2
local Type, Version = "WeakAurasPendingUpdateButton", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -2,7 +2,9 @@
SnippetButton Widget, based on AceGUI Button (and WA ToolbarButton)
Graphical Button.
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasSnippetButton", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSnippetButton", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
return
@@ -2,7 +2,9 @@
Spacer Widget
Just uses up a bit of horizontal space
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasSpacer", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSpacer", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,8 @@
--[[-----------------------------------------------------------------------------
Spin Box Widget
-------------------------------------------------------------------------------]]
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSpinBox", 5
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTextureButton", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -2,6 +2,8 @@
ToolbarButton Widget, based on AceGUI Button
Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasToolbarButton", 6
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTwoColumnDropdown", 3
local Type, Version = "WeakAurasTwoColumnDropdown", 4
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -2,7 +2,9 @@
Progress Bar Widget
A simple progress bar
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasProgressBar", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasProgressBar", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+12 -2
View File
@@ -58,7 +58,7 @@
bigStep (optional) -> step size of the slider. Defaults to 0.05
step (optional) -> like bigStep, but applies to number input as well
]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras
@@ -1180,6 +1180,15 @@ typeControlAdders = {
end,
disabled = function() return not option.useCollapse end
}
args[prefix .. "noMerge"] = {
type = "toggle",
name = WeakAuras.newFeatureString .. name(option, "noMerge", L["Prevent Merging"]),
desc = desc(option, "noMerge", L["If checked, then this group will not merge with other group when selecting multiple auras."]),
order = order(),
width = WeakAuras.doubleWidth,
get = get(option, "noMerge"),
set = set(data, option, "noMerge"),
}
if option.groupType ~="simple" then
args[prefix .. "limitType"] = {
type = "select",
@@ -1998,7 +2007,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
while i <= #values or i <= #childValues do
if firstChild then
values[i] = childValues[i][nameSource] or conflictBlue .. L["Entry %i"]:format(i)
elseif childValues[i][nameSource] ~= values[i] then
elseif not childValues[i] or childValues[i][nameSource] ~= values[i] then
values[i] = conflictBlue .. L["Entry %i"]:format(i)
end
i = i + 1
@@ -2106,6 +2115,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
type = "execute",
name = L["Delete Entry"],
order = order(),
confirm = true,
func = function()
for id, optionData in pairs(option.references) do
local childOption = optionData.options[optionData.index]
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+3 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
@@ -687,7 +687,7 @@ local function GetBuffTriggerOptions(data, triggernum)
use_includePets = {
type = "toggle",
width = WeakAuras.normalWidth,
name = WeakAuras.newFeatureString .. L["Include Pets"],
name = L["Include Pets"],
order = 66.1,
hidden = function() return
not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"))
@@ -697,7 +697,7 @@ local function GetBuffTriggerOptions(data, triggernum)
type = "select",
values = OptionsPrivate.Private.include_pets_types,
width = WeakAuras.normalWidth,
name = WeakAuras.newFeatureString .. L["Include Pets"],
name = L["Include Pets"],
order = 66.15,
hidden = function() return not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party") and trigger.use_includePets) end,
},
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
+6 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
@@ -1072,7 +1072,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
return data.anchorFrameParent or data.anchorFrameParent == nil;
end,
hidden = function()
return (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
return not IsGroupByFrame() and (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
end,
},
anchorFrameSpaceOne = {
@@ -1082,7 +1082,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
order = 72,
image = function() return "", 0, 0 end,
hidden = function()
return IsParentDynamicGroup() or IsGroupByFrame() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
return IsParentDynamicGroup() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
end,
},
-- Input field to select frame to anchor on
@@ -1142,6 +1142,9 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
if IsGroupByFrame() then
return false
end
if IsParentDynamicGroup() then
return true
end
return data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE";
else
return data.anchorFrameType == "MOUSE";
+1 -1
View File
@@ -44,7 +44,7 @@
-- - setter: The setter function, called both on activating and deactivating a property change
--- - action: The action function, called on activating a condition
-- - type: The type
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
local regionOptions = WeakAuras.regionOptions
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
-- For All Indents And Purposes
local revision = 23
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "deDE" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "esES" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "esMX" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "frFR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "itIT" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "koKR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "ptBR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "ruRU" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "zhCN" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "zhTW" then
return
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- WoW APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- WoW APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1159,9 +1159,9 @@ function OptionsPrivate.CreateFrame()
containerScroll:AddChild(simpleLabel)
local button = AceGUI:Create("WeakAurasNewButton")
button:SetTitle(L["From Template"])
button:SetTitle(L["Premade Auras"])
button:SetDescription(L["Offer a guided way to create auras for your character"])
button:SetIcon("Interface\\Icons\\INV_Misc_Book_06")
button:SetIcon("Interface\\Icons\\Inv_misc_book_09")
button:SetClick(function()
OptionsPrivate.OpenTriggerTemplate(nil, self:GetTargetAura())
end)
+29 -6
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -55,6 +55,7 @@ local editor_themes = {
}
if not WeakAurasSaved.editor_tab_spaces then WeakAurasSaved.editor_tab_spaces = 4 end
if not WeakAurasSaved.editor_font_size then WeakAurasSaved.editor_font_size = 12 end -- set default font size if missing
local color_scheme = {[0] = "|r"}
local function set_scheme()
if not WeakAurasSaved.editor_theme then
@@ -162,7 +163,7 @@ local function ConstructTextEditor(frame)
editor:DisableButton(true)
local fontPath = SharedMedia:Fetch("font", "Fira Mono Medium")
if (fontPath) then
editor.editBox:SetFont(fontPath, 12)
editor.editBox:SetFont(fontPath, WeakAurasSaved.editor_font_size)
end
group:AddChild(editor)
@@ -263,6 +264,14 @@ local function ConstructTextEditor(frame)
menuList = "spaces"
},
level)
UIDropDownMenu_AddButton(
{
text = WeakAuras.newFeatureString .. L["Font Size"],
hasArrow = true,
notCheckable = true,
menuList = "sizes"
},
level)
elseif menu == "spaces" then
local spaces = {2,4}
for _, i in pairs(spaces) do
@@ -282,6 +291,23 @@ local function ConstructTextEditor(frame)
},
level)
end
elseif menu == "sizes" then
local sizes = {10, 12, 14, 16}
for _, i in pairs(sizes) do
UIDropDownMenu_AddButton(
{
text = i,
isNotRadio = false,
checked = function()
return WeakAurasSaved.editor_font_size == i
end,
func = function()
WeakAurasSaved.editor_font_size = i
editor.editBox:SetFont(fontPath, WeakAurasSaved.editor_font_size)
end
},
level)
end
end
end
UIDropDownMenu_Initialize(dropdown, settings_dropdown_initialize, "MENU")
@@ -475,16 +501,13 @@ local function ConstructTextEditor(frame)
end
)
-- CTRL + S saves and closes, ESC cancels and closes
-- CTRL + S saves and closes
editor.editBox:HookScript(
"OnKeyDown",
function(_, key)
if IsControlKeyDown() and key == "S" then
group:Close()
end
if key == "ESCAPE" then
group:CancelClose()
end
end
)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local AceGUI = LibStub("AceGUI-3.0")
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+3 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -413,7 +413,7 @@ local function createDistributeAlignOptions(id, data)
local childData = WeakAuras.GetData(childId);
local childRegion = WeakAuras.GetRegion(childId)
if(childData and childRegion) then
if(v > 0) then
if(v >= 0) then
if(childData.selfPoint:find("LEFT")) then
childData.xOffset = xOffset;
elseif(childData.selfPoint:find("RIGHT")) then
@@ -497,7 +497,7 @@ local function createDistributeAlignOptions(id, data)
local childData = WeakAuras.GetData(childId);
local childRegion = WeakAuras.GetRegion(childId)
if(childData and childRegion) then
if(v > 0) then
if(v >= 0) then
if(childData.selfPoint:find("BOTTOM")) then
childData.yOffset = yOffset;
elseif(childData.selfPoint:find("TOP")) then
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Masque = LibStub("Masque", true)
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -1,3 +1,5 @@
if not WeakAuras.IsLibsOK() then return end
local L = WeakAuras.L
local AddonName, OptionsPrivate = ...
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Magic constant
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs