mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
710be52f35
Drop the now-vestigial expansion plumbing.
- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
Register call sites
- Delete the pfUI.expansion variable
46 lines
1.5 KiB
Lua
46 lines
1.5 KiB
Lua
pfUI:RegisterModule("hdgraphic", function ()
|
|
-- inject video settings to provide advanced slider values (deferred until frame is shown)
|
|
local origOptionsFrame_OnShow = OptionsFrame_OnShow
|
|
function OptionsFrame_OnShow()
|
|
if origOptionsFrame_OnShow then origOptionsFrame_OnShow() end
|
|
if _G.OptionsFrameSliders and _G.OptionsFrameSliders[3] then
|
|
_G.OptionsFrameSliders[3].maxValue = 15
|
|
end
|
|
end
|
|
local HookSetWorldDetail = SetWorldDetail
|
|
function _G.SetWorldDetail(arg)
|
|
HookSetWorldDetail((arg > 2 and 2 or arg))
|
|
|
|
if arg > 2 then
|
|
ConsoleExec("frillDensity " .. (arg+1)*16)
|
|
ConsoleExec("lodDist " .. 100+arg*10)
|
|
ConsoleExec("nearClip " .. arg*2/100)
|
|
ConsoleExec("maxLOD " .. arg)
|
|
ConsoleExec("footstepBias " .. arg/15)
|
|
ConsoleExec("DistCull " .. 500+arg*25.92)
|
|
|
|
-- static triggers
|
|
ConsoleExec("SkyCloudLOD 1")
|
|
ConsoleExec("mapObjLightLOD 2")
|
|
ConsoleExec("texLodBias -1")
|
|
else
|
|
-- defaults
|
|
ConsoleExec("frillDensity 24")
|
|
ConsoleExec("lodDist 100")
|
|
ConsoleExec("nearClip 0.1")
|
|
ConsoleExec("maxLOD 0")
|
|
ConsoleExec("footstepBias 0.125")
|
|
ConsoleExec("DistCull 500")
|
|
|
|
ConsoleExec("SkyCloudLOD 0")
|
|
ConsoleExec("mapObjLightLOD 0")
|
|
ConsoleExec("texLodBias 0")
|
|
end
|
|
end
|
|
|
|
local HookGetWorldDetail = GetWorldDetail
|
|
function _G.GetWorldDetail(arg)
|
|
local frill = tonumber(GetCVar("frillDensity"))
|
|
return frill > 48 and frill/16-1 or HookGetWorldDetail()
|
|
end
|
|
end) |