Help with GUI Text box

Started by SinSin, Wed 17/03/2021 09:35:16

Previous topic - Next topic

SinSin

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

 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. 
Currently working on a project!

arj0n

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.

Khris

Yeah, that "underscore" is the cursor :)

SinSin

Currently working on a project!

SMF spam blocked by CleanTalk