4K Resolution UI Scale Issue

The built-in method doesn’t work. That’s fine.

/run UIParent:SetScale(2160/3840)

That works, obviously. But I want that to load upon login. I created an addon using https://addon.bool.no but the script doesn’t seem to load upon login (doesn’t matter if I change run with script). I’ve been creating similar addons, but this doesn’t work.

I just want this script to load upon login. Any help?

/console uiScale 0.56

or

/run C_CVar.SetCVar("uiScale",0.56)

to do it permanently.

It doesn’t work. The key word here is 4K resolution. All the methods I’ve tried work perfectly at FHD (1920x1080) resolution, but they don’t work at 4K.

“UIScale” script doesn’t work past 1080p or 1440p, or at least it doesn’t work on 4K resolution. The only script type that works is the manual “UIParent” one (the one I mentioned).

Somehow I need to load my script (or something similar to that) upon login. I’m kinda baffled that this has become an issue, I really wanna enjoy my 4K resolution in my favorite game. Worst case scenario, I gotta click my macro every time I log in or reload on every character (which is a hassle).

Well you either didn’t hook your script into the correct event, or coded something else wrong.

Can do it as a WeakAura, just stick UIParent:SetScale(2160/3840) in as a custom action.

I looked up 10-20 guides, videos and various websites on how to do it with WA. But I don’t use WA and I can’t make a script in WA, I can only paste the Auras that others make into my WA addon, that’s all.

But I managed to make my simple addon kinda work that I created using https://addon.bool.no I was coding it wrong before. The only issue here is that when I do a /reload, the UI scales back to how it was before the script. Doesn’t matter if I disable or enable the UI scale from the options. This is more fine than having to click it ‘every time’, but I can see this being an issue when I have to do a reload in pvp (like in BG/RBG). I can fix this only by relogging, which is often not an option when you’re in pvp.

If I manage to still run this script after a /reload, it’s done.

Just show the addon code instead of all the waffle.

1 Like
!WA:2!1nvZUTTrqyRQdfGOW1whmCAZbJuaNeu4FQKTJTtYbtdryhiBPqsfNCIEj3LIB7YDxS7sBRCuOOTxYf)iOZ9KEeYtaHrEcYJqEcYSIcbbbr8cNzX3m738nFBnVg5nWnW)3dvIcdJYjQU9d7C65Tv30nnvtm1K)oMQLm0WqYnMOuHkhzIKrgAojcpKJYPjrMmfrNjy4H3PZqyX1VPQ47VWeepjtO6jOCt8XTppSTVCT53WQSAYLsk0grUfrFjgzi(KRiCZhrfWPidn5ck2K5EeKQqjgQGR3ZxBqkJtCkLt1zoUWpZ63Ifrv96Y4Q)Y73)0Eif0TddiMGeeJ8OM)XEBVvR93z7hpYOOdgqu6fxxnl8FgJjXfPPHdLe1jT70ZRFhxdK4JkuOMJ0scJDkw78rDr8uAgaOP3mj64JccJccpYp0TaitSDOjkFqZiANsN4tiiMj7lL1trGY8d61UtNBl4ZUEh5Y2j8ksyv(zcm5)xq(G5lI5cCKc0SlLRpFqmYauYWOuMqOYUvtyPv7i3UHHDpZnvWnYL8u03U2llqyODO1cdhdu1NmWk3)YkLREhKgJs(RbG5HJDzce2l2ack3SIFEbZqDCb1jzLYTC8tyiT2g5QPVLydgzVKai5EZCnVUY1uFSA6DyfCxdq94ebpLoW5weNA3(c(ELl69EcstcmWMCGj7hlx1Ll4K7WWoXIiYUHuAcukwpYc12UYdDZruUx5bqbLhw(0YNv(C4)p)TNi)T5lDsfjHQH7OU8x)UOQc8TGXJTeGo1HcAGGjuVOo8P(tWmsth62PTx4yJi5kGSaOvR9VzpGIv9pDQZC01cf(cfso6IzbtsvG9bgByJu)tvVU8ShzhV4GJ9B3(C1WzVDBwqXtoO1(Dpi5rNZIF1DW7haFxzfFM8vS)hMuTdoEkfRvRw9XGzKGN(q7V)PjuE1ubf68jWOquCe7vvK(Dn0YL3DZ938jBStRngGB2KSlQvJR(WR)8
1 Like

Thank you, this works perfectly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.