Containers - Grisgram/gml-raptor GitHub Wiki
Base Controls - ✔Containers
- Tooltips - Clickables - Checkables - ListBox - InputBox - Mouse Cursor - ControlTree
This is a new control type since version 3.0
and is the base control for Window
and Panel
, where each of them has additional children, like MessageBoxWindow
and the UiRootPanel
.
They only add one additional variable definition to the Base Controls:
This expression defines the ControlTree for the new UI Subsystem from release 3.0
.
This is a lightweight invisible object, that acts "just as a container". It does nothing by itself, except that it provides its own ControlTree, so you can add controls to it.
This control allows you to create your game's UI windows, be it the Settings, Statistics or any other kind of detail window in a strategy game, whatever you can imagine. Create your layout by adding controls to the ControlTree of the window.
To configure the look & feel of the window, it offers these variable definitions:
center_on_open |
If true , the window will center itself, depending on the value of draw_on_gui ,either in the center of the UI layer (draw_on_gui = true), or in the center of the room (draw_on_gui = false) |
title |
The title text. Supports LG Localization like all other caption properties |
title_color |
Render color of the title text |
title_color_mouse_over |
Render color of the title text when the mouse hovers over the title bar of the window |
title_xoffset title_yoffset
|
Depending on your window sprite, it may be necessary to offset the text a bit, because the nine-slice will most likely affect only the client area of the window, but not the title bar |
titlebar_height |
The height of the titlebar-part of your window-sprite |
scribble_title_align |
The same alignment settings like in a text align property |
focus_border_color |
You may specify a different blend color for the window frame when it has focus |
window_x_button_visible |
If true , a button of type window_x_button_object will be shown in the top right corner of the window |
window_x_button_object |
The object type to use as x-button |
on_opening on_closing
|
callbacks to be invoked when the window opens/closes |
window_is_movable window_is_sizable
|
Allow the window to be moved and/or resized |
window_resize_border_width |
The width of the border (from the sprite's edges) on all four sides that shall be interpreted as the "sizing border". When the mouse is in the sizing area, the Mouse Cursor will change to a sizing symbol based on the corner or side that is touched by the mouse |
Base Controls - ✔Containers
- Tooltips - Clickables - Checkables - ListBox - InputBox - Mouse Cursor - ControlTree