Skip to reading
Eight Adventure Interface Workshops

Lay out the black command area

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

1. Create the GUI zak_hud. Start it visible and assign it as your main HUD.

2. Add zak_band, a black Panel at X 0, Y 446, Width 1280, Height 274. Set Z Index to 1.

3. Add zak_command, a Label at 20, 450, size 1100 × 38. Use green #42F899, a 27-pixel monospaced font and no visible background.

4. Begin with {command} as the label text. The sentence-line helper later adds the selected item and preposition prefix.

5. Add the fifteen text Buttons from the next page. Set their Z Index above the Panel.

6. Add a small Save/load button at 1130, 450, size 130 × 36, opening zak_save.

Source table from Lay out the black command area, page 27
StyleValue
Button backgroundBlack; no rounded frame; use a restrained dark hover background.
Verb text#4AE9F5; 24 pixels; left aligned; monospaced.
Inventory text#EF6CFC; 22 pixels; monospaced.
Border Radius0 on the band, buttons, grid and slots.

The example reserves the lower portion for controls. Make sure important room hotspots are not hidden behind that area. Design or frame the room with the visible play area in mind.

Page 27 of 119Permalink
Go to page