20. Recognise the data-driven widgets
Widgets combine several controls and read game data. Add them with Add Element and place their outer frame as you would any other element. Their Type Settings and internal styles are more extensive than a label or button.
Figure 34. An Inventory Grid and Save Game Widget in the designer. The save rows are editor sample content; they are not a test of real saved-game files.
| Widget | What it is for |
|---|---|
| Inventory Grid | Shows carried inventory in slots, with paging and item interactions. |
| Save Game Widget | Presents save slots and supports the chosen save/load/browse role. |
| Journal List | Shows journal/quest information rather than a manually typed list of labels. |
| Hint List | Presents the game's configured hint content. |
For a first pass, choose the appropriate type, size it, select any required source/role and check it in gameplay. Do not try to reproduce the widget's internal behavior by stacking a large number of ordinary buttons on top of it.
Inventory/save widgets have several surfaces: outer widget, grid area, slot frame and, for save widgets, screenshot area. Their corner and image settings can be independent. The dedicated tutorials will explain those controls in detail.
