Skip to reading
Panels, Tabs & List Boxes

12. Understand what a selection returns

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

Figure 18. The selected row is highlighted. The Label below the list displays the returned ID: letter.

When the player clicks the keeper’s letter, selected_clue becomes the String letter. The visible sentence is not the returned value. Your response logic should compare IDs, not the words on screen.

To see this while testing, add a separate Label with Text: Chosen ID: $$selected_clue. A normal Label expands that variable wildcard during gameplay. The list’s row text has different rules, covered in Chapter 15.

Source table from 12. Understand what a selection returns, page 21
Player actionResult in this single-select example
Clicks letterselected_clue becomes "letter".
Clicks receiptIt becomes "receipt"; letter is no longer selected.
Clicks the disabled ledgerThe selection does not change.
Clicks the selected row againThe selection clears to an empty String.
Page 21 of 50Permalink
Go to page