SFML community forums

Help => General => Topic started by: n00boxular on April 04, 2017, 08:21:19 pm

Title: Adding character menu to my game
Post by: n00boxular on April 04, 2017, 08:21:19 pm
Hi,

I've been using OpenCV and SFML for my game. So far, I've implemented a state machine, I have working menus and such. It's been a great learning experience. Other people are working with OpenCV for the actual game itself.

One of the things I need to do it is to implement a "Add a character" option from the main menu. It seems fairly straight forward.

For this task I want the user to enter in a couple of details about a character in separate text boxes, for example:

Name:
Age:
Sex:
Current Illnesses:

Once these are entered, the user clicks submit and the character is added to a list.
On the same screen I want the scroll-able list of characters already added, selecting one and clicking edit, would should the character's stats in the text boxes where the user can edit them and save.

So three textboxes, three buttons (Submit, save, edit) and one list. Should I be using one of the gui libraries like TGUI or would something else be better(easier) for this?

Title: Re: Adding character menu to my game
Post by: Hapax on April 05, 2017, 01:55:51 am
Unless you want to create your own GUI, it makes sense to instead make use of already-existing GUI libraries.