from retail

This commit is contained in:
NoM0Re
2025-01-05 15:08:50 +01:00
parent 95db2e326e
commit 8375cfa0a7
115 changed files with 332 additions and 261 deletions
@@ -3,7 +3,7 @@ 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() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTreeGroup", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or 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() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local tinsert, tconcat, tremove, wipe = table.insert, table.concat, table.remove, wipe
@@ -1855,7 +1855,7 @@ local function Constructor()
renamebox:Hide();
end);
local group = CreateFrame("BUTTON", nil, button);
local group = CreateFrame("Button", nil, button);
button.group = group;
group:SetWidth(16);
group:SetHeight(16);
@@ -1870,7 +1870,7 @@ local function Constructor()
group:SetScript("OnEnter", function() Show_Tooltip(button, L["Group (verb)"], L["Put this display in a group"]) end);
group:SetScript("OnLeave", Hide_Tooltip);
local ungroup = CreateFrame("BUTTON", nil, button);
local ungroup = CreateFrame("Button", nil, button);
button.ungroup = ungroup;
ungroup:SetWidth(11);
ungroup:SetHeight(11);
@@ -1885,7 +1885,7 @@ local function Constructor()
ungroup:SetScript("OnLeave", Hide_Tooltip);
ungroup:Hide();
local upgroup = CreateFrame("BUTTON", nil, button);
local upgroup = CreateFrame("Button", nil, button);
button.upgroup = upgroup;
upgroup:SetWidth(11);
upgroup:SetHeight(11);
@@ -1902,7 +1902,7 @@ local function Constructor()
upgroup:SetScript("OnLeave", Hide_Tooltip);
upgroup:Hide();
local downgroup = CreateFrame("BUTTON", nil, button);
local downgroup = CreateFrame("Button", nil, button);
button.downgroup = downgroup;
downgroup:SetWidth(11);
downgroup:SetHeight(11);
@@ -1918,7 +1918,7 @@ local function Constructor()
downgroup:SetScript("OnLeave", Hide_Tooltip);
downgroup:Hide();
local expand = CreateFrame("BUTTON", nil, button);
local expand = CreateFrame("Button", nil, button);
button.expand = expand;
expand.expanded = true;
expand.disabled = true;
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasExpand", 3
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Anchor for a Expandable section
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandAnchor", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandSmall", 2
@@ -3,7 +3,7 @@ Icon Widget that allows for a tooltip, by preventing SetLabel from actually
setting a label
Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIcon", 1
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIconButton", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -62,7 +62,7 @@ Constructor
-------------------------------------------------------------------------------]]
local function Constructor()
local button = CreateFrame("BUTTON", nil, UIParent);
local button = CreateFrame("Button", nil, UIParent);
button:SetHeight(52);
button:SetWidth(52);
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasImportButton", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -124,7 +124,7 @@ Constructor
local function Constructor()
local name = "WeakAurasImportButton"..AceGUI:GetNextWidgetNum(Type);
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(18);
button:SetWidth(380);
button.dgroup = nil;
@@ -136,7 +136,7 @@ local function Constructor()
background:SetVertexColor(0.5, 0.5, 0.5, 0.25);
background:SetAllPoints(button);
local expand = CreateFrame("BUTTON", nil, button);
local expand = CreateFrame("Button", nil, button);
button.expand = expand;
expand.expanded = true;
expand.disabled = true;
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Input Widget that allows to show an alternative text when it does not have focus
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or 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() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasLoadedHeaderButton", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -142,7 +142,7 @@ Constructor
local function Constructor()
local name = Type..AceGUI:GetNextWidgetNum(Type)
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(20);
button:SetWidth(1000);
button:SetDisabledFontObject("GameFontNormal");
@@ -154,7 +154,7 @@ local function Constructor()
background:SetVertexColor(0.5, 0.5, 0.5, 0.6);
background:SetAllPoints(button);
local expand = CreateFrame("BUTTON", nil, button);
local expand = CreateFrame("Button", nil, button);
button.expand = expand;
expand.expanded = true;
expand.disabled = true;
@@ -172,7 +172,7 @@ local function Constructor()
expand:SetScript("OnEnter", function() Show_Tooltip(button, expand.title, expand.desc) end);
expand:SetScript("OnLeave", Hide_Tooltip);
local view = CreateFrame("BUTTON", nil, button);
local view = CreateFrame("Button", nil, button);
button.view = view;
view:SetWidth(16);
view:SetHeight(16);
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasMultiLineEditBox", 35
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
-- based on the AceGUI widget, overwrites the enter handling
local Type, Version = "WeakAuras-MultiLineEditBoxWithEnter", 1
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewButton", 24
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -90,7 +90,7 @@ Constructor
local function Constructor()
local name = "WeakAurasDisplayButton"..AceGUI:GetNextWidgetNum(Type);
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(40);
button:SetWidth(380);
button.dgroup = nil;
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewHeaderButton", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -56,7 +56,7 @@ Constructor
local function Constructor()
local name = Type..AceGUI:GetNextWidgetNum(Type)
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(20);
button:SetWidth(1000);
button:SetDisabledFontObject("GameFontNormal");
@@ -160,7 +160,7 @@ Constructor
local function Constructor()
local name = "WeakAurasPendingInstallButton" .. AceGUI:GetNextWidgetNum(Type)
local button = CreateFrame("BUTTON", name, UIParent)
local button = CreateFrame("Button", name, UIParent)
button:SetHeight(32)
button:SetWidth(1000)
button.data = {}
@@ -191,7 +191,7 @@ local function Constructor()
button.description = {}
local update = CreateFrame("BUTTON", nil, button)
local update = CreateFrame("Button", nil, button)
button.update = update
update.disabled = true
update.func = function()
@@ -289,7 +289,7 @@ Constructor
local function Constructor()
local name = "WeakAurasPendingUpdateButton" .. AceGUI:GetNextWidgetNum(Type)
local button = CreateFrame("BUTTON", name, UIParent)
local button = CreateFrame("Button", name, UIParent)
button:SetHeight(32)
button:SetWidth(1000)
button.data = {}
@@ -320,7 +320,7 @@ local function Constructor()
button.description = {}
local update = CreateFrame("BUTTON", nil, button)
local update = CreateFrame("Button", nil, button)
button.update = update
update.disabled = true
update.func = function()
@@ -137,7 +137,7 @@ local function Constructor()
button:SetHeight(24)
button:SetWidth(170)
local deleteButton = CreateFrame("BUTTON", nil, button)
local deleteButton = CreateFrame("Button", nil, button)
deleteButton:SetPoint("RIGHT", button, "RIGHT", -3, 0)
deleteButton:SetSize(20, 20)
local deleteTex = deleteButton:CreateTexture()
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTextureButton", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -87,7 +87,7 @@ Constructor
local function Constructor()
local name = "WeakAurasTextureButton"..AceGUI:GetNextWidgetNum(Type);
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(128);
button:SetWidth(128);
button:SetBackdrop({
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() then return end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTwoColumnDropdown", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)