@@ -23,7 +23,7 @@ local function StyleSilverDragonText(fontString, size, color)
2323 fontString :SetShadowColor (0 , 0 , 0 , 0.8 )
2424end
2525
26- local function StyleSilverDragonLootWindow (frame )
26+ local function StyleSilverDragonLootWindow (_ , frame )
2727 if not frame then
2828 return
2929 end
@@ -96,13 +96,6 @@ local function StyleSilverDragonPopup(popup, module)
9696 if popup .lootIcon then
9797 S :Proxy (" HandleButton" , popup .lootIcon )
9898 popup .lootIcon .texture :SetAtlas (" VignetteLoot" )
99- popup .lootIcon :HookScript (" OnClick" , function ()
100- F .WaitFor (function ()
101- return popup .lootIcon and popup .lootIcon .window and true or false
102- end , function ()
103- StyleSilverDragonLootWindow (popup .lootIcon .window )
104- end )
105- end )
10699 end
107100
108101 StyleSilverDragonText (popup .title , E .db .general .fontSize + 2 )
@@ -340,14 +333,6 @@ local function SetupSilverDragonOverlay(silverDragon)
340333 return
341334 end
342335
343- hooksecurefunc (module , " ShowTooltip" , function (overlayModule )
344- F .WaitFor (function ()
345- return overlayModule .lootwindow and true or false
346- end , function ()
347- StyleSilverDragonLootWindow (overlayModule .lootwindow )
348- end )
349- end )
350-
351336 if module .tooltip then
352337 TT :SetStyle (module .tooltip )
353338 if module .tooltip .shoppingTooltips then
@@ -421,6 +406,7 @@ function S:SilverDragon()
421406 return
422407 end
423408
409+ SilverDragon :RegisterCallback (" LootWindowOpened" , StyleSilverDragonLootWindow )
424410 SetupSilverDragonPopups (SilverDragon )
425411 SetupSilverDragonHistory (SilverDragon )
426412 SetupSilverDragonOverlay (SilverDragon )
0 commit comments