Drag[en]gine Script Module DragonScript
1.23
|
Behavior element behavior show/hide element if triggered. More...
Classes | |
class | Instance |
Behavior instance. More... | |
Public Member Functions | |
ECBehaviorTriggered | getTriggered () |
Trigger to show element. More... | |
TSTriggerTable | getTriggerTable () |
Trigger table or null if not used. More... | |
Instance | instance (BehaviorElement element) |
Get instance in element from owner element class. More... | |
ECBehaviorShowElement | new (BehaviorElementClass eclass) |
Create behavior element class. More... | |
ECBehaviorShowElement | new (BehaviorElementClass eclass, TSTriggerTable triggerTable) |
ECBehaviorShowElement | new (BehaviorElementClass eclass, TSTriggerTable triggerTable, String prefix) |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
void | assignInstanceIndex (int instanceIndex) |
Assign instance index. More... | |
void | dispose () |
Dispose of behavior. More... | |
String | getBehaviorID () |
Unique identifier of behavior. More... | |
String | getID () |
Identifier. More... | |
int | getInstanceIndex () |
Instance index. More... | |
void | loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance) |
Load instance data of another behavior. More... | |
bool | supportsBehaviorID (String identifier) |
Behavior supports loading instance data of another behavior. More... | |
Public Member Functions inherited from Dragengine.Scenery.ECBehavior | |
ECBehaviorInstance | createInstance (BehaviorElement element) |
Create Behavior instance. More... | |
Static Public Member Functions | |
static ECBehaviorShowElement | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Public Attributes | |
ECBehaviorTriggered | pTriggered |
TSTriggerTable | pTriggerTable |
Protected Member Functions | |
void | setTriggerTable (TSTriggerTable triggerTable) |
Set trigger table or null if not used. More... | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
DefaultECBehavior | new (BehaviorElementClass eclass, String id) |
Create default composeable behavior. More... | |
void | setBehaviorID (String identifier) |
Set behavior identifier. More... | |
void | useClassNameAsBehaviorID () |
Set behavior identifier to "<class-name>:<identifier>". More... | |
void | useFullyQualifiedClassNameAsBehaviorID () |
Set behavior identifier to "<fully-qualified-class-name>:<identifier>". More... | |
Behavior element behavior show/hide element if triggered.
If trigger evaluates to true the element is set visible and touchable others not.
Element class properties have the prefix "showElement.". Behavior can be added only once.
This behavior supports persistable element class (setPersistable).
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorComponent.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorShowElement.getTriggered | ( | ) |
Trigger to show element.
TSTriggerTable Dragengine.Scenery.ECBehaviorShowElement.getTriggerTable | ( | ) |
Trigger table or null if not used.
Instance Dragengine.Scenery.ECBehaviorShowElement.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
ECBehaviorShowElement Dragengine.Scenery.ECBehaviorShowElement.new | ( | BehaviorElementClass | eclass | ) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
ECBehaviorShowElement Dragengine.Scenery.ECBehaviorShowElement.new | ( | BehaviorElementClass | eclass, |
TSTriggerTable | triggerTable | ||
) |
ECBehaviorShowElement Dragengine.Scenery.ECBehaviorShowElement.new | ( | BehaviorElementClass | eclass, |
TSTriggerTable | triggerTable, | ||
String | prefix | ||
) |
|
protected |
Set trigger table or null if not used.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorShowElement.pTriggered |
TSTriggerTable Dragengine.Scenery.ECBehaviorShowElement.pTriggerTable |