Headers, item captions and icons
Figure 12. The item content controls choose text, icon placement and text style.
Show Header controls the title and its page indicator. Use a short title such as Carried items. The page indicator is hidden when there is only one page; hiding the header also hides that indicator.
Show Item Text and Show Item Icon can be used independently. An icon-only bag is compact; a text-only list can suit a parser game. A new adventure is easier to understand when the player can see both the object and its name.
Icon Placement can put the icon to the left, right, above or below the caption. A top placement needs a taller cell. The example uses a left icon with a 72-pixel iconSize and 8-pixel slotPadding, both supported as advanced element properties.
Title font controls style the header. Item font controls style names and quantities inside cells. Hover, click and right-click text styles are separate state overrides. Start with the same size in every state so the text does not jump.
Inventory captions use the item’s name. Do not put normal Label wildcards such as $$score in an item name and expect the inventory grid to expand them. Use a separate Label for changing descriptions or counts.
