Skip to reading
Panels, Tabs & List Boxes

11. Add your first list box

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

A list box is a set of rows inside one element. Each row has an ID, visible text, an optional icon and a disabled state. Begin with a manual list so you can see exactly where the rows come from.

1. Open Clues Page and add a List Box. Give it ID clue_list.

2. In General, use X 24, Y 88, Width 495 and Height 296. This leaves room for a heading and a separate Review Button.

3. Open Type Settings. Set Item Source to manual.

4. Leave Allow Multiple Selection and Dropdown View off for now.

5. Create a String variable called selected_clue with an empty starting value. Enter selected_clue in Selected Item Variable. Enter the ID alone, without a wildcard prefix.

Figure 16. The first list settings: source, selection mode, dropdown behavior and the output variable.

The source chooses where rows come from. Selected Item Variable chooses where the player’s choice is written. Those are two different jobs.

Page 19 of 50Permalink
Go to page