performance update

performance update
This commit is contained in:
Meow
2026-01-03 12:55:04 +01:00
parent 62a53b3c43
commit f5d2f65999
35 changed files with 77 additions and 468 deletions
+4 -17
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Quest Log", "vanilla:tbc", function ()
pfUI:RegisterSkin("Quest Log", "vanilla", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
@@ -6,23 +6,10 @@ pfUI:RegisterSkin("Quest Log", "vanilla:tbc", function ()
_G.MAX_WATCHABLE_QUESTS = 20 -- TODO
do -- quest log frame
-- Compatibility
local QUEST_COUNT
if QuestLogCount then -- tbc
QUEST_COUNT = QuestLogCount
local QUEST_COUNT = QuestLogQuestCount
StripTextures(QUEST_COUNT)
QUEST_COUNT:ClearAllPoints()
hooksecurefunc("QuestLogUpdateQuestCount", function(numQuests)
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("BOTTOMRIGHT", QuestLogFrame, "TOPRIGHT", 0, -50)
end)
else -- vanilla
QUEST_COUNT = QuestLogQuestCount
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("TOPRIGHT", -10, -30)
end
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("TOPRIGHT", -10, -30)
hooksecurefunc("QuestLog_OnShow", function()
QuestLogFrame:ClearAllPoints()