Skip to reading
The GUI Designer

4. Size the actual GUI canvas

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

Click GUI Window in the designer toolbar. The canvas boundary becomes the selected item, and the Inspector opens the GUI Window tab. This is the space your elements belong to; adding a large Panel is not the same as resizing it.

1. For the HUD example, set GUI Width to 1280 and GUI Height to 720.

2. Set Runtime X and Runtime Y to 0.

3. Leave Use Window Background Color, Show Border Frame and Show Title Bar off for a transparent HUD.

4. Apply the GUI form and save.

Figure 4. The same controls can make a smaller menu. Here the menu canvas is 640 by 480, with a visible background and border.

Source table from 4. Size the actual GUI canvas, page 9
SettingMeaning
Runtime X / YThe authored position in the game viewport. An entire-GUI anchor can override this placement.
GUI Width / HeightThe space available inside this GUI. Elements use coordinates within it.
Window OpacityThe window surface opacity. Check text readability separately.
Border frame controlsEnable the outline, choose its color and width, then set its overall radius.

The designer shows the GUI at the editing canvas origin. Runtime X and Y describe its game position; they are not a way to pan the editor view. You can also resize the selected GUI boundary with its handles.

Page 9 of 57Permalink
Go to page