View Single Post
03-17-11, 01:09 PM   #3
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
Originally Posted by gfxamk View Post
look at the core.lua of the stuf addon.do a search for
Code:
uf:SetPoint
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
Code:
x.max, y.min
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.
__________________
  Reply With Quote