Update general layout of WeakAurasOptions (#8)

* from retail

* (fix) improve pixel snapping by reapplying borders

* update spinbox texture

* add icons, loaded, standby, unloaded behavior from retail

* further use of ported inputbox and cleanup to ported frames

* move templates into WeakAuras and upversion
This commit is contained in:
NoM0Re
2025-01-04 19:33:14 +01:00
committed by GitHub
parent a62d8f352e
commit 86e98d6bcf
47 changed files with 1582 additions and 679 deletions
@@ -2,7 +2,7 @@
ToolbarButton Widget, based on AceGUI Button
Graphical Button.
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasToolbarButton", 4
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
@@ -23,10 +23,18 @@ local function Button_OnClick(frame, ...)
end
local function Control_OnEnter(frame)
if frame.tooltip then
GameTooltip:ClearLines()
GameTooltip:SetOwner(frame, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOM", frame, "TOP", 0, 5);
GameTooltip:AddLine(frame.tooltip)
GameTooltip:Show()
end
frame.obj:Fire("OnEnter")
end
local function Control_OnLeave(frame)
GameTooltip:Hide()
frame.obj:Fire("OnLeave")
end
@@ -54,6 +62,10 @@ local methods = {
end
end,
["SetTooltip"] = function(self, text)
self.frame.tooltip = text
end,
["SetDisabled"] = function(self, disabled)
self.disabled = disabled
if disabled then