Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBAnimated
Behavior extending ECBehaviorAnimated to allow user to edit certain parameters using a gui panel.
This behavior can be used only once on an element.
Element class properties have the prefix animated.
.
This behavior has no events.
This behavior adds no conversation commands.
This behavior adds no conversation conditions.
This behavior adds no behavior tree actions.
This behavior adds no behavior tree conditions.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBBehaviorGuiPanels guiPanels public var ECBehaviorComponent component public var ECBehaviorAnimated animated public var ECBAnimated ecbAnimated func new() component = ECBehaviorComponent.new(this, null) animated = ECBehaviorAnimated.new(this, component) guiPanels = ECBBehaviorGuiPanels.new(this) ecbAnimated = ECBAnimated.new(this, guiPanels, animated) end end
Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):
<?xml version='1.0' encoding='UTF-8'?> <elementClass name='MyClass' class='GenericBehaviorElement'> <behavior type='ECBehaviorComponent'/> <behavior type='ECBehaviorAnimated'/> <behavior type='ECBAnimated'/> </elementClass>