Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBShowInteractionBubble
Behavior showing interaction bubble.
This behavior can be used only once on an element.
Element class properties have the prefix showInteractionBubble.
.
List of buttons to show in the interaction bubble.
showInteractionBubble.buttons
Possible values:
Name | Description |
---|---|
duplicate | Duplicate object |
remove | Remove object. |
ghost | Temporarily replace textures with ghost texture. |
record | Toggle if object can be recorded. |
teleport | Teleport actor to this element. |
hide | Hide object. do not use unless another behavior can show it again. |
capture | Toggle if actor can be captured. for mocap actor use only. |
<list name='showInteractionBubble.buttons'> <string>duplicate</string> <string>ghost</string> </list>
Name of element class to use for the bubble.
showInteractionBubble.class
InteractionBubble
<string name='showInteractionBubble.class'>InteractionBubble</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 ECBShowInteractionBubble showInteractionBubble func new() showInteractionBubble = ECBShowInteractionBubble.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='ECBShowInteractionBubble'> <!-- set element properties. omit property prefix if used inside behavior tag --> <list name='.buttons'> <!-- possible values: - duplicate: duplicate object - remove: remove object - ghost: temporarily replace textures with ghost texture - record: toggle if object can be recorded - teleport: teleport actor to this element - hide: hide object. do not use unless another behavior can show it again - capture: toggle if actor can be captured. for mocap actor use only --> <string>button_identifier</string> </list> <string name='.class'>InteractionBubble</string> </behavior> </elementClass>