Skip to reading
Save Games & Inventory

Arrows, wheel, touch and external controls

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 PDF page
Source table from Arrows, wheel, touch and external controls, page 20
Scroll ModeWhat to arrange
arrowsUse the widget’s navigation buttons.
wheel-touchUse wheel or touch paging where the widget receives that input.
bothAllow the built-in arrow and wheel/touch paths.
externalProvide your own controls outside the widget.
noneNo built-in paging route; only suitable when the list fits or you deliberately control it another way.

Navigation Placement puts the arrow controls above, below, at the sides or split around the grid. It does not change their meanings. Turn off directions you do not need rather than showing four mysterious arrows in a one-row bag.

Wheel and touch behavior depends on where the input lands. A nested scroller can take a wheel event, while a draggable inventory item can take a touch gesture as an item drag. Test over the blank panel, a filled cell and an empty cell.

For an external Button, the legacy inventory-next, inventory-previous, inventory-up and inventory-down event behaviors target an inventory element ID. The GDScript runtime also exposes inventory_gui_command(element_id, command). Use a unique ID and test the controls again after changing filters or rebuilding the GUI.

In 0.86.3.4, rebuilding a widget through runtime property changes can leave the external inventory-navigation path with an old widget reference. The built-in arrows address their live widget. If an external paging button stops after a filter change, keep the built-in arrows or re-test with a freshly opened menu.

Page 20 of 96Permalink
Go to page