Really great! The biggest improvements i could imagine on this are the adding of "hot" colors as imgui called them, or mouseover colors, and the ability to have dragable windows with controls in them.
Thanks for the compliment.
Technically, it does have a hot/mouseover color; you just can't customize it. It would be pretty easy for me to add that feature, but my wife just had a baby, and I don't know when I'll have time to get back to it.
In the mean time, you could get into the code and change the color to whatever you want, but it would apply to every instance. If you want to do that, look into the CheckState functions for cpObject and cpButton. I think it's around lines 478 & 794.
As for dragable windows, I don't think I'll be doing that anytime soon.
You're free to add that feature to the code if you want as long as you follow the license.
When I go to build your example using MingW in Windows I get 2 errors...
Compiling...
cpGUI.cpp: In member function `sf::Font* cp::cpGuiContainer::GetFont(std::string
, unsigned int)':
cpGUI.cpp:146: error: `runtime_error' is not a member of `std'
Finished!
Run Executable? 'y' or 'n'
Y
Sorry. I use Visual Studio, which automatically includes some standard headers in the project. Maybe trying this in the cpGUI code will help:
#include <stdexcept>
Also, it appears that maybe you're trying to load a font that doesn't exist where you're telling it to look.