View Single Post
03-21-10, 01:02 PM   #26
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,941
Ah, strange, but managed to get it working but only if I hard code the nUI is Loaded and InfoPanel flags. Sounds like its the values not being loaded problem nUI is getting. Testing for it returns false at Variables Loaded stage and that is where the setup needs to be done.

Eg: This doesn't work

addonData["nUI"].Loaded = IsAddOnLoaded("nUI");
if ( addonData["nUI"].Loaded and addonData["nUI"].InfoPanel ) then
print("We are using the infopanel");
end

But this does

addonData["nUI"].Loaded = true;
addonData["nUI"].InfoPanel = true;
if ( addonData["nUI"].Loaded and addonData["nUI"].InfoPanel ) then
print("We are using the infopanel");
end

But if I put all creation code in PlayerEnteringWorld the whole watchframe messes up. *sigh* .. looks like another all dayer so will look at this during the week when I have more time rofl.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818