*

Feset

  • *
  • 10
    • View Profile
GuiManager
« on: 10 December 2017, 15:43:58 »
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

  • *****
  • 1280
    • View Profile
    • Texus's Blog
Re: GuiManager
« Reply #1 on: 10 December 2017, 15:50:55 »
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

  • *
  • 10
    • View Profile
Re: GuiManager
« Reply #2 on: 11 December 2017, 15:06:55 »
Спасибо.