SFML community forums

Help => General => Topic started by: Tresky on July 01, 2012, 08:18:57 pm

Title: GUI Question
Post by: Tresky on July 01, 2012, 08:18:57 pm
I'm working on an RPG Dungeon Crawler and I need to make a GUI for it. Would the best way be to use a GUI System that was made with SFML or simply integrate my game into a Qt widget and make the GUI from Qt?
Title: Re: GUI Question
Post by: Laurent on July 01, 2012, 09:39:41 pm
It depends what you need, both solutions are very different:

Quote
a GUI System that was made with SFML
This will allow you to integrate the GUI into your SFML view (the GUI is inside the game).

Quote
integrate my game into a Qt widget and make the GUI from Qt?
This will integrate your SFML view into the GUI (the GUI is outside the game).
Title: Re: GUI Question
Post by: Tresky on July 01, 2012, 09:48:18 pm
That's the problem. I'm not quite sure which method is best suited for this situation. I know the GUI needs to interact with the game but you can pass stuff to it through Qt. An SFML GUI seems more practical but I'm not sure. Haha
Title: Re: GUI Question
Post by: Laurent on July 01, 2012, 10:49:02 pm
If you don't know what you want... what do you expect from us? :P
Title: Re: GUI Question
Post by: Tresky on July 01, 2012, 11:26:39 pm
Well, I know what I want to turn out, but I don't know which is best. Haha. I'll just try one and see how it goes. :P Thanks for the help.
Title: Re: GUI Question
Post by: eXpl0it3r on July 02, 2012, 05:19:24 pm
If you need a GUI for your game it's often better to use an GUI that renders with SFML, since you then can match the appearences better with the game design, you wouldn't lose space for the game drawing (i.e. you can draw the GUI elements directly on top of the game) and you can change it way more dynamically.
I can suggest to use SFGUI  (http://sfgui.sfml-dev.de/)or libRocket (http://librocket.com/).

But if you want much more like a normal GUI application then Qt would make a better match.
Title: Re: GUI Question
Post by: Tresky on July 02, 2012, 09:36:17 pm
Okay sweet. Thanks for the awesome answers guys. :) Much appreciated.