12. Make a built-in parser command field
Create a temporary GUI called Built-in Parser Test. Add a single-line Text Box, make the GUI visible while testing and select the Text Box in the GUI Designer.
Figure 6. These Enter options connect a single-line Text Box to PCA’s native parser.
| Type Settings option | Native prototype value |
|---|---|
| Multiline | Off |
| Clear Single-Line Text When Enter Is Pressed | On |
| Run Text Parser Command When Enter Is Pressed | On |
| Return Focus To Text Box After Enter | On while testing repeated commands |
In Play, click the field, type a command and press Enter. For ordinary object commands, PCA uses the same authored verb responses that your clickable interface can use. A Look response does not need a second copy merely because the player typed it.
The temporary native field is not one of the finished controller fields. Hide or remove the test GUI after this stage. Leaving two visible command receivers can send input to the wrong field or make a shortcut open the test GUI.
