Skip to reading
Buttons, Labels & Text Boxes

2. Prepare a small working interface

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. Click Add New beside the GUI selector.

2. Give the GUI ID register_panel and Name Workshop Register. Apply the whole-GUI form.

3. Choose GUI Window and set GUI Width to 1000 and GUI Height to 620.

4. Enable a window background and border so the room does not compete with the text.

5. In Layout & Appearance, set Anchor Entire GUI to Center, with both offsets at 0.

6. Set Activation to Called by Trigger Action / Visual Script. Apply and save.

Figure 2. The GUI window owns the available space. A large background Panel would be a child element, not a replacement for the window dimensions.

For the example, a separate gameplay HUD has a Register button whose Click action is Show GUI, targeting register_panel. You can also show the panel from an existing scene action while you test it.

If your HUD has not been assigned yet, use Global Settings > General > Custom System Interfaces > Main HUD. Designer Preview is for appearance and control states; run the game to execute Show GUI or any other event.

Page 5 of 46Permalink
Go to page