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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LGoro

Pages: [1]
1
Window / Re: how to create a "input text fields" and save it in variables
« on: January 09, 2017, 06:54:14 pm »
Thanks very much  ;D I get the idea now, but I still have some questions if you be willing to help me..

Can I use one string and one text for all 3 ?

I can somehow write only if I selected that position?

For example if I have this:

I can not figure out how to do this  :'(

2
Window / how to create a "input text fields" and save it in variables
« on: January 09, 2017, 04:41:47 pm »
Hi everyone  ;D
I am an c++ novice and especially a beginner with sfml (more specifically I started 3 days ago) and I want to create a replica of minesweeper game. All well and good, after working these days, I did the game but now I realy need help on how to create a Text field area in game where the player can enter a "custom" game (width, height and minenumber) as the original game. I need to place three for each (int) size on game windows. i really need some help  :'(

How should i display these TextEntered on the window and after that put them in (int) variables?

Exemple: The player write '16' on width text field. That '16' is drawn on screen but also put in my width variable. The same for the height and minenumber variables.

Can someone help me ? You can do this?

Pages: [1]