Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBBehaviorGuiPanels
Behavior adding support to create behavior gui panels for editing. Behaviors depending on ECBBehaviorGuiPanels are required to subclass ECBBehaviorGuiPanels.BehaviorGuiPanel
implementing createPanel()
to create the gui widget (subclass of WMPPanelSceneObject
) to allow editing the matching behavior if asked for. An instance of this ECBBehaviorGuiPanels.BehaviorGuiPanel
subclass has to be added to ECBBehaviorGuiPanels using addBehaviorGuiPanel()
.
This behavior can be used only once on an element.
Element class properties have the prefix guiPanels.
.
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 requires no other behaviors.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBBehaviorGuiPanels guiPanels func new() guiPanels = ECBBehaviorGuiPanels.new(this) 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='ECBBehaviorGuiPanels'/> </elementClass>