Dev Update #10 - UI 2.0
I completely revamped the UI system in ShapeEngine to be more user-friendly and robust. Drawing inspiration from Godot's Control Node system, I created a similar node called ControlNode in ShapeEngine. However, I simplified it and modified it to better suit ShapeEngine's needs.
The UI system in ShapeEngine is based on the Rect struct for drawing and handling mouse events like enter and exit. Each control node has a rect that is dynamically updated based on its properties or its parent's properties. ControlNodes in ShapeEngine follow a simple parent-child hierarchy, where one parent can have multiple children.
This allows for easy control over how the children are drawn, which is particularly useful for containers. Additionally, I introduced a ControlNodeNavigator that facilitates navigation between control nodes. It intelligently detects input from the keyboard, gamepad, and mouse to select the appropriate neighbor for navigation. This feature seamlessly works with containers, making UI navigation smooth and intuitive.
Changelog
- Classes of the old UI system were removed.
- ControlNode implemented
- ControlNodeNavigator implemented
- Additional support classes, structs, and enums added.
Get Shape Engine
Shape Engine
Simple 2d Engine focused on drawing shapes rather than using textures/sprites.
Status | In development |
Category | Tool |
Author | Dave Green |
Tags | 2D, Colorful, Game engine, Pixel Art, shapes, Singleplayer, Top-Down |
Languages | English |
More posts
- v2.1.0 Release69 days ago
- 2.0 Release79 days ago
- Dev Update 11 - Gapped Outline & Scaled LineAug 08, 2024
- Shape Engine 1.0 ReleaseMay 29, 2024
- Dev News - Word Emphasis 2.0May 17, 2024
- Dev News - Helldivers vs AsteroidsMay 01, 2024
- Dev News - Shape ProjectionApr 17, 2024
- Dev News - Pathfinding 3Apr 03, 2024
- Dev Update #9 - Pathfinding 2Mar 20, 2024
Leave a comment
Log in with itch.io to leave a comment.