20. Build the text-only screen
Create a GUI named Text Adventure Screen with ID text_screen. Make it visible at startup. Use a full-screen layout with the window frame disabled and a Cut opening/closing transition.
| Element ID | Type | X, Y | Width × height | Content |
|---|---|---|---|---|
| paper | Panel | 0, 0 | 1280 × 720 | Dark background. |
| text_title | Label | 36, 18 | 700 × 48 | THE LAST SIGNAL |
| text_score | Label | 890, 18 | 350 × 48 | Score: $$ta_score of 10 |
| story_transcript | Text Box | 36, 86 | 1208 × 486 | Multiline on. |
| text_command | Text Box | 84, 596 | 1160 × 64 | Multiline off. |
| text_help_button | Button | 720, 671 | 220 × 34 | Help; call send with help. |
| text_switch | Button | 970, 671 | 274 × 34 | Show graphical game |
Figure 12. The finished text screen in the GUI Designer. The large reader and the command field have separate jobs.
Add a small > label before the command field and a short help line at the bottom. Use a high-contrast text color and a comfortable font size; 24 for the transcript and 26 for the command field are suitable at this resolution.
Keep the IDs story_transcript and text_command. The controller locates those controls by ID. Giving them a nicer display name is fine; changing the ID requires changing the script too.
