Issues with SetPoint and a Few Other Questions
I'm working on a personal addon that will place addons listed in a table based on which addons are loaded and visible. SetPoint seems to be my kryptonite, as you can see, I have triedtwo ways to anchor the frames. No matter how hard I try to place them, they tend to overlap. What am I missing?
Lua Code:
Is it OK to use _G to lookup the frames? I tried just using the name, but I wasn't successful. Finally, maybe I am overthinking the design. I'm not sure if using two loops is the most efficient way, or creating a second table to correctly list the active and visible addons. Thanks as always. |
Code:
lt[j-1][2] Code:
_G[lt[j][2]]:SetPoint("BOTTOMLEFT",_G[lt[j-1][2]],"TOPLEFT",lt[3],lt[4]) Code:
pestartpoint[4], pestartpoint[5] -- -10, 30 |
1 Attachment(s)
Quote:
Lua Code:
The second piece of each key is the frame name I use for anchoring (except for the first time where I use unpack(pestartpoint). The third and fourth pieces are the x and y offset. I went back to a single line for setpoint: _G[lt[j][2]]:SetPoint("BOTTOM",_G[lt[j-1][2]],"TOP",lt[j][3],lt[j][4]) The code works without errors, but does not always place the addons where I think they should be. Sorry, my screen grabs are crappy looking. In this image, JWXPBars is not enabled. Attachment 9239 |
My bad, too much deciphering for a Sunday :(.
Have you checked the actual height of the frames you are anchoring. If a frame is taller than the visible components within it (if they are anchored to the top) then you will see a gap (you only anchor the bottom edge). I don't know Skada (if it has an option for the bar count to "grow" upward might work). |
Quote:
|
All times are GMT -6. The time now is 12:36 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI