DECORATE keys

Doom Builder 2 includes a DECORATE parser used to obtain relevant information (such as editor number, Radius, Height, Scale, and so on) from custom actors. Additional information can be conveyed with keys in the form of special comments inserted within an actor's declaration block:

//$Angled - GZDB only.
//$NotAngled - GZDB only.
Specifies whether the direction matters (angled) or not. Things that are not angled are represented without a direction arrow.

//$Category <category>
Specifies in which category (Monsters, Weapons, etc.) it should be sorted. By default, a custom actor not identified in a configuration file will be put in the Decorate category.
GZDoom Builder supports hierarchical subgroups, using the backslash separator. For example, //$Category "Decorations/Tech" will put the actor within the "Tech" subgroup of the "Decorations" group.

//$Sprite <sprite>
Specifies which sprite to use to represent the actor in the editor. By default, a custom actor not identified in a configuration file will use the first suitable sprite it finds in the actor definition, trying first the states in the sequence Idle, See, Inactive, Spawn, and if all these fail, the first defined state. This key is therefore especially useful for stateless actor definitions. Keep in mind that this sprite name must match an image in the wad (i.e., if the sprite in your wad is named JUNKA0D0, you need to put JUNKA0D0, JUNKA0 won't work).

//$Title <title>
Specifies which name to give to the actor. By default, a custom actor not identified in a configuration file will use the Tag property, and if not present, will default to the class name.

//$ArgN <name> - GZDB only.
Allows to override default argument names for this actor.

//$ArgNDefault <integer> - GZDB only.
Allows to set the default value for this argument. This property can only be used in conjunction with "//$ArgN" property.

//$ArgNTooltip <text> - GZDB only.
Allows to specify a tooltip text displayed for this argument. Newline character ("\n") can be used to format the text. This property can only be used in conjunction with "//$ArgN" property.
Argument tooltips can be also set for things and linedefs in a Game Configuration.

//$ArgNType <integer> - GZDB only.
Allows to specify an argument type for this argument. This property can only be used in conjunction with "//$ArgN" property.

//$ArgNEnum <string or structure> - GZDB only.
Allows to specify an enum for this argument. This can be either a name of an enum defined in the Game Configuration, or an explicit enum definition. This property can only be used in conjunction with "//$ArgN" property.

//$Color <color index> - GZDB only.
Allows to override category color for this actor. Possible values are:

//$Obsolete <reason> - GZDB only.
Marks the thing as obsolete. It will be detected by "Check obsolete things" Map Analysis Mode check and will be marked in the Thing Properties Window and the Thing Info panel.


Additionaly, you can use the following special comments in the global block:


//$GZDB_SKIP - GZDB only.
DECORATE parser will stop parsing a file after encountering this comment. This can be used to speedup the parsing process by skipping files, which don't contain placeable actor definitions.

Note: It is a good idea to include the Doom Editor Number after the actor definition if you want it to show in Doom Builder, even if it is replacing a standard Doom actor.

Example:
Actor ChexShield : ResistanceRune replaces ResistanceRune 5104
{
  //$Category "Pickups/Chex Powerups"
  //$Sprite ARMXA0
  //$Title "Chex Shield"
  //$Color 12
  //$NotAngled
  //$Obsolete "That's a strange powerup. Consider replacing it with something else..."
  
  //$Arg0 "Respawn Delay"
  //$Arg0ToolTip "Positive values specify delay in tics.\nNegative - in seconds."
  
  //$Arg1 "Enum Example 1"
  //$Arg1ToolTip "Config enum example"
  //$Arg1Type 11
  //$Arg1Enum "keys"
	
  //$Arg2 "Enum Example 2"
  //$Arg2ToolTip "Explicit enum example"
  //$Arg2Type 11
  //$Arg2Enum { 1 = "First option"; 2 = "Second option"; 667 = "Option 667"; }
  
  //$Arg3 "Radius"
  //$Arg3Type 23
  //$Arg3Default 32
	
  //$Arg4 "Height"
  //$Arg4Type 24
  //$Arg4Default 64

  Height 44
  Radius 26
  Inventory.PickupMessage "Picked up the energized Chex armor!"

  States
  {
    Spawn:
      ARMX A 1
      Loop
  }
}

//$GZDB_SKIP
actor SuperGiantImpBall : DoomImpBall
{
  Scale 8.0
  Damage 30
}