Files
pfQuest-turtle/pfQuest-config.lua
praxis 332cfcf5bb OctoWoW Forever (70334) build of pfQuest-turtle master 02a7027
Built with ops/pfquest_port/build.py (gateway 4a82cb0a): compat layer + setfenv(1, pfQuestEnv) per Lua file.
New README (install/use on Forever, credits to Shagu, rivi-s and contributors) and CONVERTING.md (porting guide).
2026-11-27 00:31:33 +02:00

34 lines
1.1 KiB
Lua

setfenv(1, pfQuestEnv) local function RebuildConfigUI()
if not pfQuestConfig or not pfQuestConfig.RebuildConfigUI then
return false
end
pfQuestConfig:RebuildConfigUI()
pfQuestConfig:SetScale(math.min(1.0, 0.6 / UIParent:GetEffectiveScale()))
if ResizeArrow then ResizeArrow() end
return true
end
pfQuest.RebuildConfigUI = RebuildConfigUI
local configFrame = CreateFrame("Frame")
configFrame:RegisterEvent("VARIABLES_LOADED")
configFrame:SetScript("OnEvent", function(self, event)
if event == "VARIABLES_LOADED" then
local timer = 0
self:SetScript("OnUpdate", function()
timer = timer + 1
if timer > 10 then
if RebuildConfigUI() then
self:SetScript("OnUpdate", nil)
self:UnregisterAllEvents()
elseif timer > 300 then
self:SetScript("OnUpdate", nil)
self:UnregisterAllEvents()
DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccpf|cffffffffQuest|r: Config UI rebuild failed")
end
end
end)
end
end)