as neither CEGUI nor BetaGUI convinced me, I'm creating an "OgreGUI", that uses a different approach:
It completely uses the ogre overlay system to create a full-featured GUI. It will be small and easy to use. It's done by registering overlay factories to ogre, so the entire gui can be created through an overlay script, introducing more overlay elemnt types with custom attributes.
For example, a button is derived from Ogre::PanelOverlayElement and would be created like that:
Code: Select all
mainmenu
{
container Button(startgame)
{
metrics_mode relative
material mainmenu
left 0.1
top 0.1
width 0.2
height 0.1
uv_coords 0 0 0.5 0.5
uv_coords_over 0.5 0 1 0.5
uv_coords_pressed 0 0.5 0.5 1
}
}
I hope that something like that doesn't exist yet, but even if it is the case, it isn't that much work and it's working fine for me.
It's just the easiest way for me to set up a small functional gui without the need to define coordinates in my code.
Nils