Skip to reading
Getting started with PCA3D

20. Build the HUD, inventory and ending

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

20. Build the HUD, inventory and ending

The demo uses four GUIs. Build the HUD first, then Inventory, Journal and the ending. All rectangles in the reference tables use the same 1280 by 720 design resolution.

A shared style#

Use background #101a29ed, text #f3e7cf, border #a58b55, border width 1 and radius 5 for the basic panels and buttons. Copy the exact per-element differences from the GUI tables. Keep the HUD visible initially with Z index 10. Keep Inventory, Journal and ending hidden initially.

The HUD#

Add a title label, Menu, Journal, Inventory and Hint buttons. Add Look, Use, Talk, Take and Walk controls and a hover label showing {verb} {target}. Add the score label {score} / 100. The reference table gives every rectangle and its Click Action.

For a button that runs a script, choose Call Script in Events or use the supplied legacy script:ID shortcut. For a GUI toggle, use Toggle GUI with the appropriate ID. For a verb button, use Set Verb. Use only one route per button during this lesson.

Inventory#

Page 54 of 184Permalink
Go to page