// During setup
// In Frame()
WIDGET.Render(0, m_pGraphics, m_pFont);
// In EventHandler()
Not much, but it got really tedious after a while (and annoying if I forget to add an event handler.) So, I finally coded up my WidgetManager class and THANK GOD! Mucho easier to add items and everything is tracked by the manager.
There is only one real problem I have with my GUI system, and that is that it doesn't have a command-esque event, so I have to detect df::IM_LBUTTONUP events. Works great, but it cuts out keyboard shortcuts and such. So, this is something I'm going to change for version 2.
I have mixed feelings about my ListBox/DropDownList system. To add items to a listbox requires the following code:
ListBox::ListBoxItem* pItem = new ListBox::ListBoxItem;
I'm going to refactor out the AddChild() call though, since my Set() method should do that.
Did I ever mention that I love working with GUIs? A lot? I have no idea why, but GUIs facinate me.
Check out my previous post for a demo link and new screenshots.
Bedtime now, I have to work tomorrow.