Trade the verbs for a command line
TUTORIAL 04 • GUI DESIGNER
Some players would rather type “look at the brass tag.” Make a second version of the controls so you can use either layout. Both will operate the same washer, doors and switch.
1 In Adventure Database › GUIs, select Laundry controls (laundry_hud) and use Duplicate. Name the new GUI Night shift commands, ID night_words. Open that copy in GUI Designer. In the element list select its nine verb buttons and delete them. Keep the inventory grid, Save and Load.
2 Use Add Element › Text Box. Give it ID entry. Drag it into the open space under the left half of the game. On the existing 1280 × 720 HUD, the pictured box uses top-left anchor, X 28, Y 613, width 505, height 62. Enter Type a command… as its placeholder.
GUI Designer • the element list now has four entries. The wide rectangle is the typing area. The inventory slots stay on its right.
3 With entry selected, open Type Settings › Text Box. Leave Multiline off. Check Run Text Parser Command When Enter Is Pressed and Clear Single-Line Text When Enter Is Pressed. Leave Return Focus To Text Box After Enter off so the player can return to clicking the room. Apply.
4 In Settings › System GUIs set Main HUD to Night shift commands and apply. To use the nine verbs again, set Main HUD back to Laundry controls. The choice here is made by the author. Next page connects the words players type.
PCA 3D Adventure Studio / 16
