Skip to reading
Action Lists & Events

19. Widget input is not a new global event

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

Every GUI element can use the common Hover, Click, Double Click, Right Click and Double Right Click routes where supported by its control. Widgets also have built-in jobs: toggles write their bound variable, sliders write a number, text boxes can submit parser commands, and save rows carry slot information.

Source table from 19. Widget input is not a new global event, page 23
Widget routeUseful data / behaviorDo not assume...
Check box / radio buttonUpdates the bound variable from its toggled state.That there is a shared OnCheckBoxChanged subscription.
SliderUpdates its bound variable as the value changes.That Click alone reports every drag value.
Text boxCan submit text to the parser or use its configured text behavior.That every keystroke is a global action-list event.
Progress thresholdProvides percentage and value to its configured response.That a threshold callback is one of the five mouse events.
Save-game row eventAdds saveSlot, saveExists, saveName and other slot metadata.That the currently selected slot always exists.
Inventory item interactionUses the item's verb/combination actions and inventory context.That an inventory icon is the same scene entity as the pickup.

For progress thresholds, keep one place responsible for ordered work. The threshold route can launch a selected script and an action list without a single shared await chain; put a strict sequence inside the script if its order matters.

Use the widget's dedicated tutorial for its detailed layout and binding controls. Here the important distinction is which route starts your logic and which values that route actually passes.

Page 23 of 189Permalink
Go to page