Layered GUI elements
by Ronald Ian Bantayan · in iTorque 2D · 04/06/2009 (12:14 am) · 0 replies
I'm properly dismantling the iPhoneTest project that came with iTGB, reading as much code as my brain can absorb in order to further my understanding of the engine. As far as I know, it's the only resource that touches upon iPhone specific features, like multitouch, and the accelerometer. Maybe ver1.2 will have documentation on integrating camera functionality?
So far I've managed to add two more buttons, in addition to "Gravity" and "Bounce". "Drag" loads a scene I made from scratch which spawns three balls, one of each color, which can be dragged around the screen, and a fourth button labeled "FX", which loads another new scene, filled with particle effects.
This project has two separate GUI elements, namely OverlayCtrl and mainScreenGUI, with OverlayCtrl sitting on top of mainScreenGUI. I tried implementing the same layered GUI to my testbed project, however the GUI element that has the buttons won't show up on the screen. Trying a different route, I combined the two GUI elements into one, with the GUI controls that carry different functions exist in the same GUI as sceneWindow2D. I don't think GUI elements were designed to have numbered orders, not unlike layers in scene builder (0-31).
Is there something I'm missing? TDN seems to be missing appropriate tutorials, and the documentation that came with iTGB is lacking in terms of creating a GUI from the ground up. Thanks!
So far I've managed to add two more buttons, in addition to "Gravity" and "Bounce". "Drag" loads a scene I made from scratch which spawns three balls, one of each color, which can be dragged around the screen, and a fourth button labeled "FX", which loads another new scene, filled with particle effects.
This project has two separate GUI elements, namely OverlayCtrl and mainScreenGUI, with OverlayCtrl sitting on top of mainScreenGUI. I tried implementing the same layered GUI to my testbed project, however the GUI element that has the buttons won't show up on the screen. Trying a different route, I combined the two GUI elements into one, with the GUI controls that carry different functions exist in the same GUI as sceneWindow2D. I don't think GUI elements were designed to have numbered orders, not unlike layers in scene builder (0-31).
Is there something I'm missing? TDN seems to be missing appropriate tutorials, and the documentation that came with iTGB is lacking in terms of creating a GUI from the ground up. Thanks!