Skip to content

Commit 1b71420

Browse files
committed
feat: add transfer log toggle button skin
1 parent 3c2cc60 commit 1b71420

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Modules/Skins/Blizzard/Character.lua

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
local W, F, E, L = unpack((select(2, ...)))
22
local S = W.Modules.Skins
3+
local ES = E.Skins
34

45
local _G = _G
56

@@ -31,14 +32,31 @@ function S:Blizzard_UIPanels_Game()
3132
end
3233

3334
-- Reputation
34-
self:CreateShadow(_G.ReputationDetailFrame)
3535
self:CreateShadow(_G.ReputationFrame.ReputationDetailFrame)
3636
_G.ReputationFrame.ReputationDetailFrame:ClearAllPoints()
3737
_G.ReputationFrame.ReputationDetailFrame:Point("TOPLEFT", _G.ReputationFrame, "TOPRIGHT", 3, 0)
38+
end
39+
40+
function S:Blizzard_TokenUI()
41+
if not self:CheckDB("character") then
42+
return
43+
end
44+
45+
local button = _G.TokenFrame.CurrencyTransferLogToggleButton
46+
if button then
47+
self:ESProxy("HandleButton", button)
48+
button:SetNormalTexture(E.Media.Textures.ArrowUp)
49+
button:GetNormalTexture():SetRotation(ES.ArrowRotation.right)
50+
button:GetNormalTexture():SetInside(button, 3, 3)
51+
52+
button:SetPushedTexture(E.Media.Textures.ArrowUp)
53+
button:GetPushedTexture():SetRotation(ES.ArrowRotation.right)
54+
button:GetPushedTexture():SetInside(button, 3, 3)
55+
end
3856

39-
-- Currency Transfer
4057
self:CreateShadow(_G.CurrencyTransferLog)
4158
self:CreateShadow(_G.CurrencyTransferMenu)
4259
end
4360

4461
S:AddCallbackForAddon("Blizzard_UIPanels_Game")
62+
S:AddCallbackForAddon("Blizzard_TokenUI")

0 commit comments

Comments
 (0)