Open 3D Engine LyShine Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Inherits AZ::ComponentBus.
Public Types | |
typedef AZStd::function< void(AZ::EntityId, AZ::Vector2, bool)> | StateChangeCallback |
params: sending entity id, new state | |
Public Member Functions | |
virtual bool | GetState ()=0 |
virtual void | SetState (bool checked)=0 |
virtual bool | ToggleState ()=0 |
virtual StateChangeCallback | GetStateChangeCallback ()=0 |
Get the state change callback. | |
virtual void | SetStateChangeCallback (StateChangeCallback onChange)=0 |
Set the state change callback. | |
virtual void | SetCheckedEntity (AZ::EntityId entityId)=0 |
Set the optional checked (ON) entity. | |
virtual AZ::EntityId | GetCheckedEntity ()=0 |
Get the optional checked (ON) entity. | |
virtual void | SetUncheckedEntity (AZ::EntityId entityId)=0 |
Set the optional unchecked (OFF) entity. | |
virtual AZ::EntityId | GetUncheckedEntity ()=0 |
Get the optional unchecked (OFF) entity. | |
virtual const LyShine::ActionName & | GetTurnOnActionName ()=0 |
Get the action triggered when turned on. | |
virtual void | SetTurnOnActionName (const LyShine::ActionName &actionName)=0 |
Set the action triggered when turned on. | |
virtual const LyShine::ActionName & | GetTurnOffActionName ()=0 |
Get the action triggered when turned off. | |
virtual void | SetTurnOffActionName (const LyShine::ActionName &actionName)=0 |
Set the action triggered when turned off. | |
virtual const LyShine::ActionName & | GetChangedActionName ()=0 |
Get the action triggered when changed. | |
virtual void | SetChangedActionName (const LyShine::ActionName &actionName)=0 |
Set the action triggered when changed. | |
Static Public Attributes | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
Only one component on a entity can implement the events. | |
|
pure virtual |
Query the state of the checkbox
|
pure virtual |
Manually override the state of the checkbox
isOn | The new desired state of the checkbox. |
|
pure virtual |
Toggle the state of the checkbox