A Question about Simple Buttons
I've been attempting UI Design for WoW for about a week now. I've figured out how to react to events using text and what not, but I have yet to successfully create a button.
I'm using this code inside a Frame header (in the xml file) Code:
<Button name="TestButton" text="Go!" hidden="false" parent="TestFrame"> |
The button itself looks ok. It should be a transparent button with a "Go!" text. Is it in a <Frames> section?
This isn't the only way but it's a common way: Code:
<Ui> <Frame> <Button/> <Frames/> </Frame> Then it won't see the button. |
I had forgotten that... but it did not fix my problem
Here's my entire XML file: Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> Code:
function TestingGround_OnLoad() Now, when I reload my UI, I recieved the red "Loaded!" message in the UIErrorsFrame, but nothing else shows up anywhere. |
Oreth, take a look at this thread. It seems that you are having the same difficulty I was having. There were some links provided by shouryuu that you may find useful as well. The fara tutorial was most useful in showing the implementation of the XML code for creating a button. I hope this helps.
Good luck! |
All times are GMT -6. The time now is 01:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI