Not necessarily a question of deep thought, but more of to ask opinions of what people think about my GUI system.
Currently I have an abstract class "Control" which is used for GUI elements (Labels, Buttons), which requires the necessary methods for input events and drawing and such.
Then I have a GuiManager, which basically contains a list of Controls and methods for updating, adding, and removing Controls. One thing is that if a control has a lifetime specified and has expired, it is removed
GuiManager is a global singleton, so basically any object can add and remove screen elements, which I plan on using to display information (Character stats, NPC names, Item information, damage dealt and done), but I've always been worried of singletons.
I am just wondering if I am on the right track to making a GUI system, and wondering if anyone has any input on this.
Thank you!