Skip to reading
GUI: Working with Grids

Place the grid inside the menu

Edition 0.86.4.1 HF1

New illustrated guide for 0.86.4.1 Hotfix 1, covering desktop/phone grid layouts and built-in inventory/save widgets.

Download PDFView illustrations

03 / CREATE THE CONTAINER

The container is the rectangle that will hold all six verbs. Give it room to grow sideways and leave a little space above it for a title.

Left, the Grid Container in Add Element. Right, the four edges and offsets after applying the example settings.

01. Add the container

Choose Add Element Grid Container. Select it in the GUI Elements list. In General, set the ID to verb_grid. The ID is the name you will choose when you attach each button.

02. Stretch the container to the window

Under the General tab’s width and height fields, choose Edit layout and navigation…. Leave Layout parent blank. Choose Fill under Anchor preset. This sets Position to anchored and ties the four sides to the window.

03. Leave a margin on each side

After choosing Fill, enter offsetLeft 16, offsetTop 64, offsetRight −16 and offsetBottom −16. Click Apply. The right and bottom numbers are negative because those edges move inward.

WHAT TO LOOK FOR

At 640 × 360 the container starts at (16, 64) and is 608 pixels wide. A title can sit above it as a separate label.

Working with grids / 4

Page 4 of 12Permalink
Go to page