GUI troubles
by Matthew Wilmot · in General Discussion · 07/18/2010 (2:54 pm) · 1 replies
Hello there,
Been looking to implement a control pad in the corner of my screen allowing for click/touch updates to feed data into the game and I've been finding it hard locating any help.
Instruction on using the GUI system seems to be pretty thin although I've found reference info that has helped a bit.
My main question is is there a equvilant version of onLevelLoaded() but for GUI?
I've not seen any and I'm not sure if it's good practice to use a game object with a class that then initiates GUI conponents.
Basically the GUI system does more to confuse than help at the moment.
Any help?
Been looking to implement a control pad in the corner of my screen allowing for click/touch updates to feed data into the game and I've been finding it hard locating any help.
Instruction on using the GUI system seems to be pretty thin although I've found reference info that has helped a bit.
My main question is is there a equvilant version of onLevelLoaded() but for GUI?
I've not seen any and I'm not sure if it's good practice to use a game object with a class that then initiates GUI conponents.
Basically the GUI system does more to confuse than help at the moment.
Any help?
Ignis
Ignis Design LLC
I'm not sure which functions you have/haven't experimented with, but have you tried the GUI functions such as OnAdd(), OnDialogPush(), etc.? I don't have extensive practice using these, but they might serve exactly the purpose you're looking for (or else can be used to effectively accomplish what you need).
Here are two pages that I use for virtually all of my GUI reference:
http://tdn.garagegames.com/wiki/TGB/Reference:_GuiControl
http://tdn.garagegames.com/wiki/TGB_GUI_Overview
Best of luck!
Brent