Hey guys!
I've tried to find a solution for this but no avail as yet. There is a section in our next game when the player needs to enter a password on a computer screen. Rather than the password simply showing as typed in the Textbox, is there a way of displaying all text characters typed within that Textbox as an 'x', for example? I think I've seen this in AGS games before.
Many thanks! Any help is super appreciated :)
Shaun
A font where every character is an x?
Great idea!! I will try that. Thanks :)
The other way is to use a Label and add an X to a string when the player presses a keyboard key and the password GUI is visible.
Thanks Khris! I've been trying your suggestion but I can't get it to work correctly. Would this be using the Append/AppendChar string functions?
Thanks!
Shaun
Yes, something like
// in on_key_press
if (gPassword.Visible) {
password = password.AppendChar(k); // k is the eKeyCode param
xString = xString.AppendChar('X');
lblPassword.Text = xString;
}
Awesome, thanks Khris - I managed to get it working with your help :)
Be sure to remove a character when backspace is pressed too!