BetaGUI is a small project I've been working on for the last day to implement a GUI system into the NxOgre tutorials without any dependencies but Ogre.
It's main features, which I like to call the core 7 are:
- Create a Window.
- Move that Window around.
- Resize it.
- Create a Button in a window
- When that button is pushed call some code
- Create a textual input gadget in a window
- Create some plain text in a window
Your probably thinking CEGUI or OpenGUI is better, I agree with you. But your missing the point. BetaGUI isn't meant to be a competitor, it's meant for those small applications that don't need 4 other libraries and a load of resources to run, or when your programming your core of your code, and you just want to test it out without fiddling with XML files. That is the usage right there.
Oh, I should point out again the source is 264 lines long and completely unreadable!
The demo above is one of the NxTutorials, for those non-NxOgre users out there; A NxTutorial is just a tutorial explaining some feature. In this case Spheres and torque.
Super imposed on the screen is an BetaGUI window made up of a Button, some StaticText and a InputText, stylised with several materials.
It was created as so:
Code: Select all
BetaGUI::Window* window = mGUI->createWindow(Vector4(100,100,250,100), "bgui.window", true, true); window->createStaticText(Vector4(4,22,198,40), "Create one or more bodies:"); mAddButton = window->createButton(Vector4(108,50,104,24), "bgui.button", "Add", BetaGUI::Callback(this)); mAmount = window->createTextInput(Vector4(4,50,104,24), "bgui.text104", "1", 3);
The captions on the buttons and TextInput will not center. I am running Eihort CVS so I do not know if the bug is in Dagon.
The full download , usage instructions, basically everything is on the Wiki page.
I wish you all the best using it, and I expect there will be quite a few forks in the future