| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ing mouse position
I've added a way to click on a collider and update its state (for texture). It also use given callback. Component: - `Button`: represents a clickable entity. Said entity should have `BoxCollider2D`, `Transform` and `Sprite2D` to work properly System: - `UpdateButtonState`: update `Button`s states and add TemporaryComponent `ES::Plugin::Tools::HasChanged<ES::Plugin::UI::Component::Button>` if state have changed - `UpdateButtonTexture`: if states have changed, it will update `Button`'s texture or color - `ButtonClick`: call `onClick` function attribute if button have changed from state pressed to hover I've also added other plugins and tools: - `HasChanged` (Plugin `Tools`): used to tell that a component has changed (should work with temporary component) - `Rect` (Plugin `Math`): struct to store data of a rectange (size and pos) - `QuaternionToEuler` (Plugin `Math`): utility function to convert a quaternion to euler angles (used to rotate a 2DTexture) - `Color` (Plugin `Colors`): struct representing a color using RGBA. Contains already many default colors --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
I've added a way to click on a collider and update its state (for texture). It also use given callback. Component: - `Button`: represents a clickable entity. Said entity should have `BoxCollider2D`, `Transform` and `Sprite2D` to work properly System: - `UpdateButtonState`: update `Button`s states and add TemporaryComponent `ES::Plugin::Tools::HasChanged<ES::Plugin::UI::Component::Button>` if state have changed - `UpdateButtonTexture`: if states have changed, it will update `Button`'s texture or color - `ButtonClick`: call `onClick` function attribute if button have changed from state pressed to hover I've also added other plugins and tools: - `HasChanged` (Plugin `Tools`): used to tell that a component has changed (should work with temporary component) - `Rect` (Plugin `Math`): struct to store data of a rectange (size and pos) - `QuaternionToEuler` (Plugin `Math`): utility function to convert a quaternion to euler angles (used to rotate a 2DTexture) - `Color` (Plugin `Colors`): struct representing a color using RGBA. Contains already many default colors --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
I've added a way to click on a collider and update its state (for texture). It also use given callback. Component: - `Button`: represents a clickable entity. Said entity should have `BoxCollider2D`, `Transform` and `Sprite2D` to work properly System: - `UpdateButtonState`: update `Button`s states and add TemporaryComponent `ES::Plugin::Tools::HasChanged<ES::Plugin::UI::Component::Button>` if state have changed - `UpdateButtonTexture`: if states have changed, it will update `Button`'s texture or color - `ButtonClick`: call `onClick` function attribute if button have changed from state pressed to hover I've also added other plugins and tools: - `HasChanged` (Plugin `Tools`): used to tell that a component has changed (should work with temporary component) - `Rect` (Plugin `Math`): struct to store data of a rectange (size and pos) - `QuaternionToEuler` (Plugin `Math`): utility function to convert a quaternion to euler angles (used to rotate a 2DTexture) - `Color` (Plugin `Colors`): struct representing a color using RGBA. Contains already many default colors --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
I've added a way to click on a collider and update its state (for texture). It also use given callback.
Component:
System:
I've also added other plugins and tools: