mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 03:40:49 +00:00
fixed hdgraphics module
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
pfUI:RegisterModule("hdgraphic", "vanilla", function ()
|
pfUI:RegisterModule("hdgraphic", "vanilla", function ()
|
||||||
-- inject video settings to provide advanced slider values
|
-- inject video settings to provide advanced slider values (deferred until frame is shown)
|
||||||
_G.OptionsFrameSliders[3].maxValue = 15
|
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
|
local HookSetWorldDetail = SetWorldDetail
|
||||||
function _G.SetWorldDetail(arg)
|
function _G.SetWorldDetail(arg)
|
||||||
HookSetWorldDetail((arg > 2 and 2 or arg))
|
HookSetWorldDetail((arg > 2 and 2 or arg))
|
||||||
|
|||||||
Reference in New Issue
Block a user