Skip to content

[Enhancement] New triggers: Display #1340

@funaydmc

Description

@funaydmc

Add new mechanics to create and transform Display. Include Display Text, Display Item, and Display Block.

Mechanic: Display

Create a new display. Use the position and direction of the current target as the origin coordinate system.

  • Key: Used for identification. Supports grouping and transformation.
  • Type: Choose one of the 3 types: Text, Item, and Block.
  • Text: (if type is text) Content of Text Display.
  • Font: (if type is text) Font of text in Text Display.
  • Material: (if type is item) Material of item in Item Display.
  • Model: if type is item) Custom model data of item in Item Display.
  • Block: (if type = block) Block type of block in Block Display.
  • Billboard:
    • None: Do not turn according to the direction of the viewer.
    • Horizontal: Only turn left and right according to the viewer.
    • Vertical: Only turn up and down according to the viewer.
    • Both: Rotate in the direction of the player in all directions.
  • Brightness. Overwrite lighting of Display.
  • Follow target: Chose target to follow after being created.
    • None: No target, use for static Display.
    • Current Target: Follow currently selected target.
    • Caster: Follow skill caster.
  • Follow position: Move along with the current target moving.
  • Follow direction: Rotate according to the angle whenever the current target changes direction.
  • Duration: How long does Display should last.
  • ...Base transform: The specifications of the display for initialization.

Mechanic: Display group

The group of displays rearranges to share a common reference frame. The group itself is also considered a display.

  • Key: Used for identification. Supports grouping and transformation as same as a Display.
  • Children: A list of the subkeys of this group. Supports both pure display and display group.

Mechanic: Display transform.

  • Key: Key of target Display (or Display group) to transform.
  • Interpolate duration: Time needed to perform the transformation.
  • ...Transform: The specifications for transformation. Take the display as the reference frame.

Option group: Transform

  • Absolute: Transform the display without relying on the coordinate system. Default to false.
  • Use matrix transform: whether use affine transformation Matrix to transform display.
  • Matrix = true
    • Matrix: String list used to describe the transformation matrix.
  • Matrix = false
    • Use offset transform
      • Forward offset
      • Upward offset
      • Right offset
    • Use scale transform
      • Inconsistent scale = true
        • Scale
      • Inconsistent scale = false
        • Scale X
        • Scale Y
        • Scale Z
    • Use rotate transfom
      • Rotate X
      • Rotate Y
      • Rotate Z

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions