Widgets
Description
The Widget component is a flexible 2D interface element used to create interactive UI components such as buttons, images, sliders, and other visual elements. Widgets can be customized in style, position, and function, making them suitable for a wide range of in-game UI applications.
Usage
Widgets are used to build interactive and informational UI elements, including menus, action buttons, minimaps, and health or progress bars. Their flexibility and configurability make them versatile tools for creating intuitive user interfaces that help players navigate and understand the game environment.
Key Properties
- Position: Specifies the widget’s location on the screen, either in pixel coordinates or relative to screen dimensions.
- Size: Sets the width and height of the widget, which can be customized for various screen sizes and resolutions.
- Image: Allows an image or texture to be applied to the widget, useful for icons, buttons, and background elements.
- Opacity: Adjusts the widget’s transparency level, allowing it to blend with or stand out against other elements.
- Interactivity: Determines whether the widget can be clicked or interacted with, suitable for buttons and other clickable elements.
- OnClick Event: Defines the action triggered when the player interacts with the widget, such as opening a menu or casting a spell.
Feedback
Please be sure to submit issues or feature requests through the embedded feedback form. In the event it is a major issue please contact us directly through Discord.