class
Window
public class Window : Widget Constructors
Window(Widget parent) Properties
| Name | Type | Description |
|---|---|---|
StateCookie | String | A unique identifier for this window, to store the window state across sessions using the Cookie library. |
Title | String | |
Canvas | Widget | |
MenuBar virtual | MenuBar | |
MenuWidget | Widget | |
StatusBar | StatusBar | |
StartCentered | Boolean | Initialises the window at the centre of the screen (or main editor window if one is present) by default. |
IsDialog | Boolean | |
CloseButtonVisible | Boolean |
Methods
virtual Void RestoreFromStateCookie() Called whenever the window should restore its state via the EditorCookie library, that was previously saved in SaveToStateCookie. You should use StateCookie in the cookie name.
virtual Void SaveToStateCookie() Called whenever the window should save its state via the EditorCookie library, to be later restored in RestoreFromStateCookie. This is useful to carry data across game sessions. You should use StateCookie in the cookie name.
virtual Void SetWindowIcon(String name) virtual Void SetWindowIcon(Pixmap icon) virtual Void Show() virtual Void Close() Void Clear() TODO this was a test, get rid of it
Void AddToolBar(ToolBar bar, ToolbarPosition position = 4) Void RemoveToolBar(ToolBar bar) String SaveState(Int32 version = 0) Void RestoreState(String state) Void Center() Position the window at the centre of the screen, or main editor window if one is present.
Fields
| Name | Type | Description |
|---|---|---|
All static | List<Window> |