I am obviously making a really stupid mistake somewhere.
I al new to the whole WoW addons thing and I wanted to plug about with designing a UI before getting into anything heavy. But for the life of me I cant figure out what I am doing wrong.
getglobal() is completely unnecessary in this instance. You can directly access your globals by just referencing their variables:
HealAssistFrame:Show();
HealManReset:Show();
Yep I knew that it just didnt work so I tried adding the getglobal bit.
I am not getting any errors related to the xml. I am also nearly 100% sure that that function is getting called but Ill check again.
Is there any other reason why I would not be able to see what I have defined in the xml file? I know there is a something like the parent needs to be visible in order to see the child but since UIParent is the main wow interface frame I would have assumed that that is visible.
Ill check on the function to ensure it is running though wouldnt defining hidden="false" in the frame and button attributes have made it visisble anyway? I though that Show() would be just flagging this
Edit: As to Ace / Ace2 Im using neither at the moment. I just want to get something to display. Once I know I can handle that I can move onto the actual coding part.
I have never used backdrops without a background file and a tilesize specified. Are you sure the edge will display if there is no background? Also, calling "Show" on this particular frame won't do anything. By specifying "hidden='false'", it should show up right on UI loading time.
I have never used backdrops without a background file and a tilesize specified. Are you sure the edge will display if there is no background? Also, calling "Show" on this particular frame won't do anything. By specifying "hidden='false'", it should show up right on UI loading time.
Yeah thats what I thought. Ill add in the background information and see what happens though I would have thought that even though there isnt a visual clue that the Frame is there the button would still eb visible.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I al new to the whole WoW addons thing and I wanted to plug about with designing a UI before getting into anything heavy. But for the life of me I cant figure out what I am doing wrong.
I am calling HealAssist.xml from HealAssist.toc
The contents of HealAssist.xml are as follows:
In my HealAssist.lua file I just have
I dont see anything when the mod is loaded. I was expecting a frame with a button in it but I am missing something.
Any help would be appreciated as this is annoying the hell outta me
If there is something like "Could not parse HealAssist.xml", then you have a syntax error in the xml file. Can't see any though.
Next you should try printing something into the chat window in your HealAssist_OnLoad function so you can see if HealAssist_OnLoad is actually called.
Last... are you using Ace1 or Ace2? If Ace2, try HealAssist:OnLoad instead of the underscore.
getglobal() is completely unnecessary in this instance. You can directly access your globals by just referencing their variables:
Yep I knew that it just didnt work so I tried adding the getglobal bit.
I am not getting any errors related to the xml. I am also nearly 100% sure that that function is getting called but Ill check again.
Is there any other reason why I would not be able to see what I have defined in the xml file? I know there is a something like the parent needs to be visible in order to see the child but since UIParent is the main wow interface frame I would have assumed that that is visible.
Ill check on the function to ensure it is running though wouldnt defining hidden="false" in the frame and button attributes have made it visisble anyway? I though that Show() would be just flagging this
Edit: As to Ace / Ace2 Im using neither at the moment. I just want to get something to display. Once I know I can handle that I can move onto the actual coding part.
Yeah thats what I thought. Ill add in the background information and see what happens though I would have thought that even though there isnt a visual clue that the Frame is there the button would still eb visible.