Pixel Perfect UIScale
Hello there,
I was wondering what solutions you guys have to achieve a pixel perfect UIScale. Addons such as the following are outdated: https://www.wowinterface.com/downloa...8-UIScale.html https://www.wowinterface.com/downloa...-UIScaler.html I know ElvUI can achieve pixel perfection but I'd rather not install elvui for that single feature. Thanks. |
I don't bother with pixel-perfect layouts, but there are a couple options.
First, there's the PixelUtil API provided by Blizzard. Alternatively, you can calculate the optimal UI scale with a mathematical formula. Code:
768 / select(2, GetPhysicalScreenSize()) |
You need to check if GetPhysicalScreenSize()'s second return is >= 1200; if it is, modify SDPhantom's method to scale UIParent.
Code:
local physicalWidth, physicalHeight = GetPhysicalScreenSize() |
Code:
local screenHeight = GetScreenHeight() Code:
/script SetCVar("uiScale", 768/string.match(({GetScreenResolutions()})[GetCurrentResolution()], "%d+x(%d+)")) Code:
function E:UIScale(init) |
I had a typo. It isn't "UIScale" but instead:
Code:
SetCVar("uiScale", pixelPerfectScale) |
Quote:
Quote:
|
Quote:
|
I use this
## Interface: 50200 ## Title: UIScaler ## Notes: Automatic UI scaling. ## Author: Haleth/Freethinker ## Version: 5.2.0.4 I dont know where I last got it tho. |
Quote:
|
Looks like pleomax_b is using this: https://www.wowinterface.com/downloa...-UIScaler.html
|
All times are GMT -6. The time now is 06:48 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI