Skip to reading
Eight Adventure Interface Workshops

Build four fixed action targets

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 PDF page
Source table from Build four fixed action targets, page 88
ElementPosition and sizePurpose
gem_context_panel465, 170; 770 × 405Background #596960F2; pale square border.
Target heading489, 183; 600 × 40Name the target or show a clear context heading.
Eye489, 240; 158 × 82Set Verb → Look.
Hand661, 240; 158 × 82Set Verb → Use.
Mouth833, 240; 158 × 82Set Verb → Talk.
Foot1005, 240; 158 × 82Set Verb → your custom Foot verb.
Inventory485, 347; 722 × 160Two rows of carried items.

1. Create gem_context as a hidden, nonmodal GUI.

2. Set the four Button captions first, then replace them with your own icons if desired.

3. Keep all four hit rectangles equally generous. A small foot drawing does not need a tiny clickable target.

4. Add a Close or Cancel Button. Run cancel_target_menu from Chapter 12 so cancellation clears the stored target as well as the visible panel.

Page 88 of 119Permalink
Go to page