This commit is contained in:
NoM0Re
2025-08-06 01:44:29 +02:00
committed by GitHub
parent 78d681a06c
commit 727747ad1d
44 changed files with 287 additions and 167 deletions
@@ -1365,7 +1365,7 @@ local methods = {
self:Collapse();
end
end,
["UpdateStatusIcon"] = function(self, key, prio, icon, title, tooltip, onClick, color)
["UpdateStatusIcon"] = function(self, key, prio, icon, title, tooltip, onClick)
local iconButton
for _, button in ipairs(self.statusIcons.buttons) do
if button.key == key then
@@ -1395,11 +1395,6 @@ local methods = {
else
iconButton:SetScript("OnEnter", nil)
end
if color then
iconButton:GetNormalTexture():SetVertexColor(unpack(color))
else
iconButton:GetNormalTexture():SetVertexColor(1, 1, 1, 1)
end
iconButton:SetScript("OnClick", onClick)
iconButton:Show()
end,
@@ -1507,8 +1502,8 @@ local methods = {
self:ClearStatusIcon("load")
self:SortStatusIcons()
end,
["SetLoaded"] = function(self, prio, color, title, description)
self:UpdateStatusIcon("load", prio, "Interface\\AddOns\\WeakAuras\\Media\\Textures\\loaded", title, description, nil, color)
["SetLoaded"] = function(self, prio, file, title, description)
self:UpdateStatusIcon("load", prio, "Interface\\AddOns\\WeakAuras\\Media\\Textures\\" .. file, title, description, nil)
self:SortStatusIcons()
end,
["IsLoaded"] = function(self)
@@ -1537,13 +1532,9 @@ local methods = {
return;
end
if self.view.visibility >= 1 then
if not OptionsPrivate.Private.IsGroupType(self.data) then
OptionsPrivate.Private.FakeStatesFor(self.data.id, true)
end
--if (OptionsPrivate.Private.personalRessourceDisplayFrame) then
--OptionsPrivate.Private.personalRessourceDisplayFrame:expand(self.data.id);
--end
if (OptionsPrivate.Private.mouseFrame) then
OptionsPrivate.Private.mouseFrame:expand(self.data.id);
end
@@ -1770,7 +1761,6 @@ Constructor
local function Constructor()
local name = "WeakAurasDisplayButton"..AceGUI:GetNextWidgetNum(Type);
---@class Button
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
button:SetHeight(32);
button:SetWidth(1000);
@@ -1810,7 +1800,6 @@ local function Constructor()
button.description = {};
---@class Button
local view = CreateFrame("Button", nil, button);
button.view = view;
view:SetWidth(16);