S2ENGINE HD 2020
User guide
×
Menu
Index

GUI editor

 
Starting from S2Engine HD 1.4.6 there is a new tool for editing GUI (the Graphical User Interface of your game), now in BETA version.
GUI is used for making game menus and game HUD (Head Up Display).
 
To open GUI editor click on Tools->GUIEditor on the main menu as showed into the following image:
 
Once you have opened the GUI editor the GUI viewport and the GUI Widgets tool are showed as in the following image:
3.4.6. GUI editor
1

GUI Viewport

1. GUI Viewport
 
The GUI Viewport is used to show a preview of the look of the GUI that will be used in your game
2

GUI Widgets tool

2. GUI Widgets tool
 
The GUI Widgets tool contains the tree list of the whole GUI starting for the mainFrame (owned by GUI Object). It shows all the widgets contained into the GUI arranged in a hierarchical way. On the bottom of the list it is possible to select some operations to perform for editing the GUI:
 
  • Add Widget: Adds a new widget to the GUI. The widget is created at the end of the tree list.
  • Clone Widget: Clones the currently selected widget. It is cloned in the same level of the selected widget, in other words the cloned widget will have the same parent container of the selected widget.
  • Delete Widget: Deletes the currently selected widget
  • Show Selected: Show the selected widget with all its child widgets, if it is a Container
  • Show All: Show all the widgets of the GUI
  • Select Tree: Select the whole tree of widgets below the currently selected widget, if it is a Container
  • Put In Background: Place the currently selected widget at the beginning of the list of widgets of its parent, the effects of this is the GUI will draw the widget before all the others.