Skip to reading
The GUI Designer

20. Recognise the data-driven widgets

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

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.

Source table from 20. Recognise the data-driven widgets, page 41
WidgetWhat it is for
Inventory GridShows carried inventory in slots, with paging and item interactions.
Save Game WidgetPresents save slots and supports the chosen save/load/browse role.
Journal ListShows journal/quest information rather than a manually typed list of labels.
Hint ListPresents 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.

Page 41 of 57Permalink
Go to page