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:
Artur Morozov
2019-06-16 15:03:35 +02:00
committed by shagu
parent 635f70ed21
commit a75fd5dca4
28 changed files with 1180 additions and 186 deletions
+10 -2
View File
@@ -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