Component_Handler Class
The base class for all handler-components. A handler-component is used to handle condition- or event-based processes of a In-Game UI object like executing bindings or triggering actions.
A handler is only executed if all assigned conditions and events are true.
Item Index
Methods
Properties
Methods
checkCondition
-
object
-
condition
Checks if the condition is true for the specified game object.
Parameters:
-
object
gs.Object_BaseThe game object.
-
condition
ObjectThe condition-object.
Returns:
If true the condition is true. Otherwise false.
checkCondition
-
condition
Checks if the specified condition is true.
Parameters:
-
condition
ObjectThe condition-object.
Returns:
If true the condition is true. Otherwise false.
checkConditions
-
conditions
Checks if the specified conditions are true.
Parameters:
-
conditions
ObjectAn array of condition-objects.
Returns:
If true all conditions are true. Otherwise false.
checkEvent
-
event
-
[binding=null]
Checks if the specified event is true.
Parameters:
-
event
ObjectThe event to check for.
-
[binding=null]
Object optionalbinding An optional binding-object necessary for some event-types.
Returns:
If true the event is true. Otherwise false.
checkObject
-
object
Checks if all events and conditions defined for the handler are true. If that check returns true the handler must be executed.
Parameters:
-
object
ObjectThe game object to check.
Returns:
If true the handler must be executed. Otherwise false.