from retail

This commit is contained in:
NoM0Re
2025-01-25 17:12:25 +01:00
parent bd4cba924f
commit 6eafc394ae
17 changed files with 605 additions and 92 deletions
@@ -4,7 +4,7 @@ Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSnippetButton", 2
local Type, Version = "WeakAurasSnippetButton", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
return
@@ -71,6 +71,12 @@ local methods = {
self:SetDisabled(false)
self:SetTitle()
self:SetEditable(false)
self.ntex:SetTexture("Interface\\BUTTONS\\UI-Listbox-Highlight2.blp")
self.ntex:SetVertexColor(0.8, 0.8, 0.8, 0.25)
self.htex:SetTexture("Interface\\BUTTONS\\UI-Listbox-Highlight2.blp")
self.htex:SetVertexColor(0.3, 0.5, 1, 0.5)
self.ptex:SetTexture(1, 1, 1, 0.2)
end,
-- ["OnRelease"] = nil,
@@ -115,6 +121,14 @@ local methods = {
self.renameEditBox:HighlightText()
self.renameEditBox:SetFocus()
end
end,
["SetDynamicTextStyle"] = function(self)
self.ntex:SetTexture(nil)
self.htex:SetTexture("Interface\\AddOns\\WeakAuras\\Media\\Textures\\Options")
self.htex:SetTexCoord(0.774414, 0.957031, 0.000976562, 0.0214844)
self.htex:SetVertexColor(1, 1, 1, 1)
self.ptex:SetTexture("Interface\\AddOns\\WeakAuras\\Media\\Textures\\Options")
self.ptex:SetTexCoord(0.589844, 0.772461, 0.000976562, 0.0214844)
end
}
@@ -154,25 +168,20 @@ local function Constructor()
button.title = title
local ntex = button:CreateTexture()
ntex:SetTexture("Interface\\BUTTONS\\UI-Listbox-Highlight2.blp")
ntex:SetVertexColor(0.8, 0.8, 0.8, 0.25)
ntex:SetPoint("TOPLEFT", 0, -1)
ntex:SetPoint("BOTTOMRIGHT", 0, 1)
button:SetNormalTexture(ntex)
local htex = button:CreateTexture()
htex:SetTexture("Interface\\BUTTONS\\UI-Listbox-Highlight2.blp")
htex:SetVertexColor(0.3, 0.5, 1, 0.5)
htex:SetBlendMode("ADD")
htex:SetAllPoints(ntex)
button:SetHighlightTexture(htex)
button.htex = htex
local ptex = button:CreateTexture()
ptex:SetTexture(1, 1, 1, 0.2)
htex:SetAllPoints(ntex)
ptex:SetAllPoints(ntex)
button:SetPushedTexture(ptex)
button.ptext = ptex
button.ptex = ptex
local delHighlight = deleteButton:CreateTexture()
delHighlight:SetTexture([[Interface\Buttons\CancelButton-Highlight]])
@@ -214,6 +223,7 @@ local function Constructor()
title = title,
frame = button,
type = Type,
ntex = ntex,
htex = htex,
ptex = ptex,
deleteButton = deleteButton,