Skip to reading
Save Games & Inventory

2. Build your first inventory menu

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

1. Open the GUI Designer. Add a GUI named Player Inventory with ID inventory_lab.

2. Keep it hidden at game start and open it from a Button or other deliberate action. Give the window a readable background and a Close Button.

3. Choose Add Element, then Inventory Grid. Name it Bag Grid and give it ID bag_grid.

4. In General, position and size it inside the window. The workshop uses X 32, Y 90, Width 1056 and Height 400 in a 1120 × 660 window.

5. Open Type Settings. Set Visible Columns to 3, Visible Rows to 2 and Visible Slots to 6. Set Slot Width to 310 and Slot Height to 116.

Figure 2. The inventory widget is one element. The title, Close Button and utility buttons belong to its containing GUI.

Start with plain colors and two or three items. Get ownership and clicking right before spending time on artwork. A beautiful empty menu is still an empty menu.

Page 6 of 96Permalink
Go to page