Gui movearound question
Posted: Wed Jul 28, 2010 01:55
Hi and thanks for reading.
I am very new to programming (half a year or so max) and I really am still struggling with the basics and the underlying theory. I was hoping for a nudge in the right direction.
I'm trying my hardest to learn by doing although I have spent probably every night reading a book on VC++,game programing and scrillions of tutorials in the last month or 2. I just need to get something kinda working so i can play around with it so i can try out new things i read so they sticks with me.
So treat my like a newb! But know that I am trying hard.
I have everything up and running smooth with ogre3d and CEGUI and i have been able to create a beautiful start-up screen( 3 awesome buttons) for a very simple little "game" (mainly just going to be a few buttons with some answers or whatever in a text-box or 2. Adding different user controls along the way for practice.
Here is my question:
How do I go about moving from one "scene", "screen" to another. I really don't want to start using something that i will ultimately abandon and chose a different route so a some expert knowledge would be great.
Problem:
i want to click a "button" (already have the events handlers set up and the mighty quit button is working as it should) that removes the buttons on scene and displays lets say .. an imagebutton or 2 that load fast and nicely (not like when i tried this using windows forms and setVisible =false and true a month or so ago)
I really dont know where to start with this. Do people use a basic root-sheet window pointer and throw it around to different functions using references, removing and adding objects along the way?
Do people build a separate class to hold all the different scenes, objects and variables ?
Is there an awesome way to do this by using a different scenemanagers for each scene?
Do people retain the root pointers or make new ones for each scene and destroyscene them when you click a button only to make a new one with different child window-buttons ?
I am so lost!
All the tutorials i have been able to find have to do with adding an item to a scene and making it work in some random awesome way. What I am looking for is some good sized text on how actually people go about moving around the gui.
Sorry for the horribly chaotic post! I have way to many questions.
Any advice is appreciated.
I am very new to programming (half a year or so max) and I really am still struggling with the basics and the underlying theory. I was hoping for a nudge in the right direction.
I'm trying my hardest to learn by doing although I have spent probably every night reading a book on VC++,game programing and scrillions of tutorials in the last month or 2. I just need to get something kinda working so i can play around with it so i can try out new things i read so they sticks with me.
So treat my like a newb! But know that I am trying hard.
I have everything up and running smooth with ogre3d and CEGUI and i have been able to create a beautiful start-up screen( 3 awesome buttons) for a very simple little "game" (mainly just going to be a few buttons with some answers or whatever in a text-box or 2. Adding different user controls along the way for practice.
Here is my question:
How do I go about moving from one "scene", "screen" to another. I really don't want to start using something that i will ultimately abandon and chose a different route so a some expert knowledge would be great.
Problem:
i want to click a "button" (already have the events handlers set up and the mighty quit button is working as it should) that removes the buttons on scene and displays lets say .. an imagebutton or 2 that load fast and nicely (not like when i tried this using windows forms and setVisible =false and true a month or so ago)
I really dont know where to start with this. Do people use a basic root-sheet window pointer and throw it around to different functions using references, removing and adding objects along the way?
Do people build a separate class to hold all the different scenes, objects and variables ?
Is there an awesome way to do this by using a different scenemanagers for each scene?
Do people retain the root pointers or make new ones for each scene and destroyscene them when you click a button only to make a new one with different child window-buttons ?
I am so lost!
All the tutorials i have been able to find have to do with adding an item to a scene and making it work in some random awesome way. What I am looking for is some good sized text on how actually people go about moving around the gui.
Sorry for the horribly chaotic post! I have way to many questions.
Any advice is appreciated.