User Tools

Site Tools


democap:behavior_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.

  • Full name: showInteractionBubble.buttons
  • Type: string
  • Default Value: empty list
  • Possible values:

    NameDescription
    duplicateDuplicate object
    removeRemove object.
    ghostTemporarily replace textures with ghost texture.
    recordToggle if object can be recorded.
    teleportTeleport actor to this element.
    hideHide object. do not use unless another behavior can show it again.
    captureToggle if actor can be captured. for mocap actor use only.
  • Example (*.deeclass)
    <list name='showInteractionBubble.buttons'>
      <string>duplicate</string>
      <string>ghost</string>
    </list>

class

Name of element class to use for the bubble.

  • Full name: showInteractionBubble.class
  • Type: string
  • Default Value: InteractionBubble
  • Example (*.deeclass)
    <string name='showInteractionBubble.class'>InteractionBubble</string>

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

  • Show interaction bubble.

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

You could leave a comment if you were logged in.
democap/behavior_ecbshowinteractionbubble.txt · Last modified: 2025/03/22 19:37 by dragonlord