Lua
C++
Edit

GUI

Ultra Engine features a robust graphical user interface for creating in-game interfaces and desktop applications.

The first step to creating a GUI is to retrieve the machine's displays (monitors). A window is then created on one display, typically the primary one, which is listed first. An Interface object is created on the window, which contains all our user interface elements. One or more Widgets are created on the root interface panel. Some widgets may have multiple items added to them with the Widget:AddItem method.

Widgets and timers are the two object types that may emit events using the EmitEvent command. When this is called, the event is first evaluated by any callbacks that have been defined with the ListenEvent function. The event is then added to the event queue, where it may be retrieved using the WaitEvent command.

Copyright © 2024 Ultra Software.
All rights reserved.