Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: GUI Question  (Read 3270 times)

0 Members and 1 Guest are viewing this topic.

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
GUI Question
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: GUI Question
« Reply #1 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).
Laurent Gomila - SFML developer

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: GUI Question
« Reply #2 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: GUI Question
« Reply #3 on: July 01, 2012, 10:49:02 pm »
If you don't know what you want... what do you expect from us? :P
Laurent Gomila - SFML developer

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: GUI Question
« Reply #4 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10936
    • View Profile
    • development blog
    • Email
Re: GUI Question
« Reply #5 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 or libRocket.

But if you want much more like a normal GUI application then Qt would make a better match.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: GUI Question
« Reply #6 on: July 02, 2012, 09:36:17 pm »
Okay sweet. Thanks for the awesome answers guys. :) Much appreciated.

 

anything