Skip to reading
The GUI Designer

3. Create a GUI and give it a clear ID

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 GUI Designer and click Add New beside the GUI selector.

2. With no child element selected, open the GUI record's General tab in the Inspector.

3. Set id to adventure_hud and name to Adventure HUD. Use another unique ID if that one already exists.

4. Choose a Database Folder, such as Interfaces, if you want to organise the record.

5. Click the record form's Apply Changes, then Save Project.

Figure 3. A newly created GUI has its own record form. Its ID and name belong to the whole interface.

Know which kind of ID you are editing#

adventure_hud identifies the GUI. menu_button will identify an element inside it. When an action asks for GUI and Element / Group, it needs both levels of that address.

Use short, stable IDs and readable names. For example, Workshop Menu(workshop_menu) is easier to recognise in a selector than a collection of numbered records. Do not assume that changing an ID repairs every hand-written script or event target.

A new GUI starts hidden and waits to be called. You will choose Visible at Start for the HUD and keep the menu trigger-controlled later in the walkthrough.

Page 7 of 57Permalink
Go to page