Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBHelpTopic
Behavior adding support to define help topic. Help topic is used by the “?” button shown next to the behavior panel if it supports ECBBehaviorGuiPanels.
This behavior can be used only once on an element.
Element class properties have the prefix helpTopic.
.
Help topic to show. Values have to match a wiki-page identifier relative to the democap
namespace. For example ocls_actormarker
shows the help page https://developer.dragondreams.ch/wiki/doku.php/democap:ocls_actormarker .
helpTopic.topic
<string name='helpTopic.topic'>ocls_actormarker</string>
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 ECBHelpTopic helpTopic func new() helpTopic = ECBHelpTopic.new(this) helpTopic.getHelpTopic().setValue("ocls_actormarker") 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='ECBHelpTopic'> <!-- set element properties. omit property prefix if used inside behavior tag --> <string name='.topic'>ocls_actormarker</string> </behavior> </elementClass>