Leadwerks 5 beta update
An update is available for Leadwerks Game Engine 5 beta. The GUI system is now working with support for the following items:
- Panel
- Button
- Tabber
- Label
- Hyperlink
- Text field (editable, single line)
- Text area (multiline, read-only, allows text selection)
The GUI scripts use a system of "blocks". You can add a solid rectangle, a wire rectangle, (both support rounded corners) or a text block.
The drawing hierarchy is not yet respected, so if you type a long line of text in a text field, for example, the text will overrun the container.
Some weirdness exists when GUI blocks are resized, can be seen in the tabbed panel tabs.
Alpha anti-alias is not currently implemented so curved edges will be a bit pixellated. Has to do with pre-multiplied alpha the engine now uses by default.
It's better to move, resize, show and hide, and change the text of blocks than to clear the widget and recreate them. There was some difficult stuff here with the culling and render tweening system I had to work out.
- 1
4 Comments
Recommended Comments