Originally Posted by Uitat
im mostly bare bones basic too
so bad as this
oUF installed and chk-marked
oUF layout sqwUnitframes installed and chk'd
start game.....
NOTHIN
any suggestions?
|
Start a separate thread for your oUF layout questions. If it's your own layout, post your code. If it's not your own layout, post more information (eg. where did you download oUF from? where did you download the layout from? did you try without other addons enabled? etc.) and see the troubleshooting link in my signature.
Originally Posted by zork
What do you need Unit1 for? Do you really need that as part of the global scope?
|
Originally Posted by Uitat
part of the visual layout
for just visualizing
|
His point was that you're using "Unit1" as a
global name for that frame. In general, you should avoid giving global names to things unless they actually need to have them. Frames using Blizzard templates (eg. unit frames) do need global names. Generic frames used to assist in layouts do not need global names. And when you do give something a global name, make sure that name meets these two critera:
(1) The name is unique. Generic names like "Unit1" are bad because the probability of other addons using the same name is fairly high. If two addons both define a global "Unit1" then one overwrites the other, and one or both addons might break.
(2) The name clearly identifies which addon the object belongs to, and what the object's purpose is, so that if it appears in an error message, the user knows which addon to blame, and if they are using "/fstack" it's obvious where they should look for options to move or hide the frame.
Here, you can name your individual unit frames eg. "UitatPlayerFrame", "UitatTargetFrame", etc. and this will solve both problems. And if the "Unit1" frame is meant to contain all the unit frames, then a name like "UitatBackground" would be a better choice -- it's unique, it clearly identifies the addon, and it clearly describes the frame's purpose -- if you really want it to have a global name at all.