How to elaborate the GUI using GUI Editor

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

How to elaborate the GUI using GUI Editor

Post by wsw1231 »

I have built a GUI using the GUI Editor and save the xml file.

By using loadGUI (), I can get the content of the xml file and the program will generate the corresponding GUI.

Now, I want to further edit the GUI using code.
For example, I built a menu bar in GUI editor, after loadGUI(), it will be shown. Now, I want to add submenus to it but I do not know how to refer to the menu (calling object) .

Could someone please help :(
wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

Post by wsw1231 »

why nobody helps -,-
Is there anything that I need to further explain?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

Post by wsw1231 »

In tutorial 09, the config.xml loaded does not contain any GUI.
Also, that config.xml is different from the guiTest.xml generated by the GUI Editor.

So, I am afraid tutorial 09 cant help me
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

Now, I want to further edit the GUI using code.
Now, I want to add submenus to it
tutorial 9 shows you how to add sub-menu. you can give the main menu an id and later on search for the menu by referring to the id and then add sub-menus to it. i hope i understand your question correctly. is that what you want?
grumpymonkey
Posts: 222
Joined: Mon Jan 19, 2009 10:03 pm
Location: Miami, Florida
Contact:

Post by grumpymonkey »

give an id to the menu, then find the gui element in your c++ code and edit it from there
Image
Post Reply