GuiManager

Started by Feset, 10 December 2017, 15:43:58

Feset

Hey. I create a 2D RPG using SFML and TGUI. In my game, you need to have different kinds of interface for different scenes, such as: inventory, settings, main menu, etc. I can implement this on c # using enumerations and the Gui collection. Thus, you can create a large part of the game simply by creating many scenes and events in advance.

texus

What exactly are you asking for? I don't see what a GuiManager class could do that you couldn't easily do yourself by just putting them in a list or map.
All you need to do to create multiple scenes is create a Group (or Panel) widget for each and only show one Group at a time. When switching scenes you just hide one group and show the other.

Feset

Спасибо.