Table of Contents

, ,

Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBShowInteractionBubble

ECBShowInteractionBubble

Behavior showing interaction bubble.

Instance Counts

This behavior can be used only once on an element.

Element Class Properties

Element class properties have the prefix showInteractionBubble..

buttons

List of buttons to show in the interaction bubble.

class

Name of element class to use for the bubble.

Events

This behavior has no events.

Conversation Commands

This behavior adds no conversation commands.

Conversation Conditions

This behavior adds no conversation conditions.

Behavior Tree Actions

This behavior adds no behavior tree actions.

Behavior Tree Conditions

This behavior adds no behavior tree conditions.

Required Behaviors

This behavior requires no other behaviors.

Optional Behaviors

This behavior does not support optional behaviors.

API Documentation

Since DEMoCap Version 1.3

Use Cases

Element Class Example

class MyElement extends BehaviorElementClass
  public var ECBShowInteractionBubble showInteractionBubble
  func new()
    showInteractionBubble = ECBShowInteractionBubble.new(this)
  end
end

Behavior Factory

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>

Live Examples