mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-10 07:30:01 +00:00
skins: add a bunch of tbc compatible skins
* add skin for: auction, character, game_menu guild_registrar, inspect, macro, mail, merchant, options-interface, options-sound, options-video, popup_dialogs, professions, questlog, talents, tracking, guildbank, socket, readycheck, arena_registrar, arena, time_manager, LFG * add mail highlighting the quality of items * add quality borders of guildbank items
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
pfUI:RegisterSkin("Readycheck", "vanilla", function ()
|
||||
pfUI:RegisterSkin("Readycheck", "vanilla:tbc", function ()
|
||||
HookAddonOrVariable("Blizzard_RaidUI", function()
|
||||
-- Compatibility
|
||||
local update_func
|
||||
if ReadyCheckFrame_OnUpdate then -- tbc
|
||||
update_func = "ReadyCheckFrame_OnUpdate"
|
||||
else -- vanilla
|
||||
update_func = "ReadyCheck_OnUpdate"
|
||||
end
|
||||
|
||||
StripTextures(ReadyCheckFrame, true)
|
||||
CreateBackdrop(ReadyCheckFrame, nil, nil, .75)
|
||||
CreateBackdropShadow(ReadyCheckFrame)
|
||||
@@ -35,7 +43,7 @@ pfUI:RegisterSkin("Readycheck", "vanilla", function ()
|
||||
frame.bar:SetMinMaxValues(0, max)
|
||||
end, 1)
|
||||
|
||||
hooksecurefunc("ReadyCheck_OnUpdate", function()
|
||||
hooksecurefunc(update_func, function()
|
||||
if not ReadyCheckFrame.timer then return end
|
||||
|
||||
local perc = ReadyCheckFrame.timer/max
|
||||
|
||||
Reference in New Issue
Block a user