Skip to reading
Buttons, Labels & Text Boxes

15. Mask a single-line answer

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Password / Cipher Mode changes how a single-line text box displays its contents. The underlying text is still the answer the player typed, so the same input-reading script can check it.

1. Select a single-line Text Box and open Type Settings.

2. Enable Password / Cipher Mode.

3. Set Password Mask Character to *, or another single character supported by the font.

4. Leave Password Mask Image as None and Use Per-Character Cipher off for a simple mask.

5. Run the game and type CLOCK. The field displays five mask characters.

Figure 26. CLOCK is displayed as five asterisks. The masking changes the view, not the String that the answer script reads.

Source table from 15. Mask a single-line answer, page 34
SettingMeaning
Password Mask CharacterThe ordinary one-character mask. If you enter a longer String, the simple mask uses its first character.
Password Mask ImageAn imported image repeated for the entered characters.
Mask Image SizeThe image size; shown when a mask image is selected. The field height also limits its visible size.
Mask Character SpacingThe space between custom mask/cipher marks.

This is a display effect for game input. It does not encrypt the answer or make a local game's stored data secret. Use it for a fictional terminal, combination or puzzle presentation.

Page 34 of 46Permalink
Go to page