mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
hdgraphic: run on boot and merge pixelperfect
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
pfUI:RegisterModule("pixelperfect", function ()
|
||||
if C.global.pixelperfect == "1" then
|
||||
local resolution = GetCVar("gxResolution")
|
||||
for screenwidth, screenheight in string.gfind(resolution, "(.+)x(.+)") do
|
||||
local scale = (min(2, max(.64, 768/screenheight)))
|
||||
SetCVar("UseUIScale", 1)
|
||||
SetCVar("UIScale", scale)
|
||||
|
||||
-- scale UIParent to native screensize
|
||||
UIParent:SetWidth(screenwidth)
|
||||
UIParent:SetHeight(screenheight)
|
||||
UIParent:SetPoint("CENTER",0,0)
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user