Re: [Glgui-dev] ListBox & other ideas
Status: Alpha
Brought to you by:
druid-
From: SiO2 S. <si...@ne...> - 2000-07-03 10:32:21
|
----- Original Message ----- From: "sfranke" <sf...@us...> To: <glg...@li...> Sent: Thursday, June 29, 2000 9:05 PM Subject: [Glgui-dev] ListBox & other ideas > I decided to make listbox a control after all. It makes more sense, it > uses buttons, etc to build itself - and this is how I've defined controls > (kind of a higher-level GUI component). Hmm.. the semantics of this are > probably needlessly complex. > > Anyway, listbox is done, which includes sublists. I'll probably break off > the sublist functionality and put it in a CUI_Menu inherited from > CUI_ListBox. > > I'm also planning on a fairly big change that will let CUI_Frame's (every > GUI component) to have a pointer to the UI to which it belongs. This will > expose a whole lot of functionality to the components. The initial reason > I decided to do this was so that the List/Menu can make one of it's > sublists selected so key commands are processed there. There's no way to > do that without the change I will be working on. > > It also opens up a lot of other possibilities. All frame adding will be > moved to go through CUI_UI (including subframes of controls which normally > couldn't), so CUI_UI can do some extra stuff to the frames as they're > added. Enabling and disabling will also go through CUI_UI so (with a few > other changes) it will be simple to add fly-in or fade-in effects for > when a frame becomes visible. > > Yeah, it's a bells and whistles feature, but it's simple once a required > feature is added, so I don't see any drawbacks. There are probably lots > of other possibilities that this allows that I haven't realized yet. I'm all for bells-and-whistles features that can be simply implemented and do not eat a significant amount of CPU time. Anyway, the more "feature rich" controls would probably be used only for the pre-game menus, with the simpler controls actually needed for the in-game stuff. Pre-game menus really do need of the controls and features that can be mustered, in order to look professional (if you see what I mean). Regards, Keith Harrison SiO2 Software. ke...@ne... (personal) si...@ne... (work) |