ULimenSelectableMenuButton
Overview
ULimenSelectableMenuButton is a subclass of ULimenMenuButton designed to handle the selection state of a menu button. It provides functionality for setting and checking the button's selected state, as well as broadcasting events when the button is selected or unselected.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| ButtonSelectedStyle | EditAnywhere, BlueprintReadOnly | The style to apply when the button is in the selected state. |
Functions
Return Type | Signature | Description |
|---|---|---|
| SetButtonSelectedState(const bool bSelected) | Sets the button's selected state and updates the UI accordingly. |
| IsButtonSelected() const | Returns whether the button is currently in the selected state. |
| OnClicked() override | Handles the click event, toggling the button's selected state. |
| OnHovered() override | Handles the hover event, but only if the button is not selected. |
| OnUnhovered() override | Handles the unhover event, but only if the button is not selected. |
Usage & Implementation Notes
The button's style can be customized through the
ButtonSelectedStyleproperty.Clicking the button toggles its selected state and broadcasts the appropriate event.
Hover events are ignored when the button is selected to prevent unintended behavior.
Properties (Table: Type | Name | Access | Description)
Type | Name | Access | Description |
|---|---|---|---|
| ButtonSelectedStyle | EditAnywhere, BlueprintReadOnly | The style to apply when the button is in the selected state. |
Functions (Table: Return Type | Signature | Description)
Return Type | Signature | Description |
|---|---|---|
| SetButtonSelectedState(const bool bSelected) | Sets the button's selected state and updates the UI accordingly. |
| IsButtonSelected() const | Returns whether the button is currently in the selected state. |
| OnClicked() override | Handles the click event, toggling the button's selected state. |
| OnHovered() override | Handles the hover event, but only if the button is not selected. |
| OnUnhovered() override | Handles the unhover event, but only if the button is not selected. |
Usage & Implementation Notes
The button's style can be customized through the
ButtonSelectedStyleproperty.Clicking the button toggles its selected state and broadcasts the appropriate event.
Hover events are ignored when the button is selected to prevent unintended behavior.