Stuf Unit Frames Anchoring
I made an UI compilation and I want it to work with all resolutions. Everything is anchored to "BOTTOM" and placed in the lower half of the screen, so the aspect ratio doesn't matter. Just Stuf is still anchoring the default way and doesn't fit with diverse ratios. It has no in-game anchor settings.
How can I change it? Do I need to rewrite anything in the LUA code? If so, what? |
look at the core.lua of the stuf addon.do a search for
Code:
uf:SetPoint Code:
uf:SetPoint("TOPLEFT", UIParent, "TOPLEFT", dbuf.x, dbuf.y) Code:
uf:SetPoint("TOPLEFT", UIParent, "BOTTOM", dbuf.x, dbuf.y) Code:
uf:SetPoint("CENTER", YourAnchorFrameName, "CENTER", dbuf.x, dbuf.y) |
Quote:
The way I accomplished this was to edit 2 files, the first been the same file mentioned in your post (Stuf\core.lua) , but to change the line to read: Code:
uf:SetPoint("BOTTOM", UIParent, "BOTTOM", dbuf.x, dbuf.y) Find line 1192 or do a search for Code:
x.max, y.min Code:
x.max, y.min = floor(sw / s)/2, 0 |
Is there any way to anchor every unit frame individually? For example I need to anchor everything to bottom, except for party unit frames, I need to anchor them to topleft.
|
All times are GMT -6. The time now is 10:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI