Skip to reading
Replace the Built-in Screens

Lay out a practical HUD

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 Lay out a practical HUD, page 12
ElementPosition / sizeJob
Background Panel16, 600; 1248 × 104One stable band for the controls.
Character / score Label34, 610; 220 × 32Name plus $$score in the sample.
Status Label34, 650; 220 × 33{verb} and {target}.
Four verb ButtonsStart 270, 620; 98 × 60 eachWalk, Look, Use and Talk; 104-pixel spacing.
Inventory / Journal708 / 843, 620; 125 / 110 × 60Open the active player’s assigned screen.
Character switch963, 620; 148 × 60Select the other playable character.
Menu1121, 620; 119 × 60Open the assigned Pause Menu.

These are starting measurements, not required engine values. If your project uses another resolution, preserve the spacing and hierarchy rather than pasting coordinates that no longer fit.

Set the Panel’s Z Index below the Buttons. Keep text clear of the rounded corners and test longer translated captions. A 98-pixel Button that fits “Use” may not fit every translation of “Pick up.”

The sample background is a decorative PCA image used to make the interface easy to see. Your game can keep rendering its ordinary 2D, 2.5D or 3D room behind the same HUD.

Page 12 of 88Permalink
Go to page