Thursday, March 31, 2011

starting up a UI class structure

running how to run the UI for an editor in my head. So starting on building a class hierarchy to control it. I haven't liked any of the premade ones I have come across, they are not transferable to different projects very well. They all want to take over the whole program, and dictate how you do you program under them.

I want one that will be a simple add-on to the SDL framework, that works under it, not take over the whole thing. So working on a simple base class that all other elements will come from, and a control that will display and check what input was done. Then react to that input. It is going to be a semi-persistant immediate mode GUI. It will follow the IMGUI style, but with some persistance but without a complicated callback system.

Instead of the normal IMGUI where the program checks and reacts right away to the input as it draws out the GUI, it will run through all the GUI elements, then do a direct call on the element that has the focus. Doing this so I can have drag-n-drop. If everything stayed in one place a standard IMGUI would work fine.

No comments:

Post a Comment