Originally Posted by gfxamk
look at the core.lua of the stuf addon.do a search for
and you should find
Code:
uf:SetPoint("TOPLEFT", UIParent, "TOPLEFT", dbuf.x, dbuf.y)
change that to something like
Code:
uf:SetPoint("TOPLEFT", UIParent, "BOTTOM", dbuf.x, dbuf.y)
or it
|
Theres a slight problem with your coding, altoough it looks like it would work, the way Stuf positions its frames, you would only be able to move the frames to the right and down from the bottom center of your screen.
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)
Then you need to change Stuf's options file which is Stuf_Options\options.lua
Find line 1192 or do a search for
and replace that line with the following
Code:
x.max, y.min = floor(sw / s)/2, 0
x.min, y.max = -floor(sw / s)/2, floor(sh /s)
Both these changes will have the effect of anchoring all the unit frames to the bottom center of the screen, so on a fresh install some frames will appear on top of each other.