Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SinSin on Wed 17/03/2021 09:35:16

Title: Help with GUI Text box
Post by: SinSin on Wed 17/03/2021 09:35:16
Hi everyone,
Im currently working on a project where I am displaying the player stats within a text box within a GUI.
The thing is when I test the game they all end with an underscore.

eg

Spaceship level   12 _       

I have got this code in my Global Script like so
Code (ags) Select

function repeatedly_execute_always()

ShipCurrLvl.Text = String.Format ("%d",Ship.lvl);


Is there a way of removing the underscore?
I think I might have to use labels instead, is this correct ?

Please and thank you. 
Title: Re: Help with GUI Text box
Post by: arj0n on Wed 17/03/2021 12:10:18
I would use a label instead indeed.
I usually use a Textbox to get input from a player, like the savegame gui where you type in a savegame name.
Title: Re: Help with GUI Text box
Post by: Khris on Wed 17/03/2021 13:38:42
Yeah, that "underscore" is the cursor :)
Title: Re: Help with GUI Text box
Post by: SinSin on Mon 22/03/2021 20:21:39
Cheers folks :)