menusystem and listbox changes
Posted: Fri Apr 01, 2005 11:44
Hi all my fellow CEGUI coders.
As I have said in a few other posts, I'm working on a menu system for CEGUI.
I have used the Roadmap to guide me, and thus I done the following:
- Made the ItemEntry class and a few subclasses: TextItem, MenubarItem currently. The only difference between a DefaultWindow and a TextItem is that the latter has a textColour and prints a text label.
MenubarItem has pushed,hover etc. states...
- Made a ItemListBase class that has the basic features for manipulating a list of item widgets.
wnd->addItem() should be used to add ItemEntry child windows.
- Derived a Menubar and PopupMenu from the ItemListBase to handle the actual menu windows.
Currently I have left the Listbox as it is, and I will only start on it when the menusystem is done. I have taken measures to make it fairly easy to convert to the ItemListBase/ItemEntry implementation. And most function names/behavior has not changed for compatibility.
I'm starting with WindowsLook, and will do taharez when it's all done.
Right now only the Menubar works, but It's almost done.
Items work too. I have just started the PopupMenu.
So... I just wanted to hear if anyone have had any thoughts about the menusystem. Things are going faster now as most of the boring code is over, so I'd really like some feedback.
heres a little screenshot of the menubar:
Setting it up is very easy. You just set the size of the menubar, and the text on the items. Add the items and everything gets laid out automatically.
I have'nt worked that much on the imagery yet though...
As I have said in a few other posts, I'm working on a menu system for CEGUI.
I have used the Roadmap to guide me, and thus I done the following:
- Made the ItemEntry class and a few subclasses: TextItem, MenubarItem currently. The only difference between a DefaultWindow and a TextItem is that the latter has a textColour and prints a text label.
MenubarItem has pushed,hover etc. states...
- Made a ItemListBase class that has the basic features for manipulating a list of item widgets.
wnd->addItem() should be used to add ItemEntry child windows.
- Derived a Menubar and PopupMenu from the ItemListBase to handle the actual menu windows.
Currently I have left the Listbox as it is, and I will only start on it when the menusystem is done. I have taken measures to make it fairly easy to convert to the ItemListBase/ItemEntry implementation. And most function names/behavior has not changed for compatibility.
I'm starting with WindowsLook, and will do taharez when it's all done.
Right now only the Menubar works, but It's almost done.
Items work too. I have just started the PopupMenu.
So... I just wanted to hear if anyone have had any thoughts about the menusystem. Things are going faster now as most of the boring code is over, so I'd really like some feedback.
heres a little screenshot of the menubar:
Setting it up is very easy. You just set the size of the menubar, and the text on the items. Add the items and everything gets laid out automatically.
I have'nt worked that much on the imagery yet though...