From e4d872536aa85b75bacb85ccc9872fde572c1108 Mon Sep 17 00:00:00 2001 From: MaxED Date: Wed, 4 Feb 2015 18:02:03 +0000 Subject: [PATCH] DECORATE: added "$argN" special comment. It can be used to specify default argument names. Updated documentation. --- Help/default.css | 2 +- Help/gc_decoratekeys.html | 45 +++++++++++++++++------------ Source/Core/Config/ArgumentInfo.cs | 11 ++++++- Source/Core/Config/ThingTypeInfo.cs | 31 +++++++++++--------- Source/Core/ZDoom/ZDTextParser.cs | 12 ++++++-- 5 files changed, 64 insertions(+), 37 deletions(-) diff --git a/Help/default.css b/Help/default.css index 1fdf8557..60f9ebb7 100644 --- a/Help/default.css +++ b/Help/default.css @@ -54,7 +54,7 @@ pre { background: #f4f4f4; color: #515151; - width: 500px; + width: 600px; margin: 10px 0px 10px 20px; font: 100% Courier New,Courier,sans-serif; text-align: left; diff --git a/Help/gc_decoratekeys.html b/Help/gc_decoratekeys.html index bdd86ace..d814d801 100644 --- a/Help/gc_decoratekeys.html +++ b/Help/gc_decoratekeys.html @@ -18,7 +18,7 @@

- 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: + 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:

//$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.

//$Sprite <sprite>
@@ -29,14 +29,18 @@ //$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> (GZDoom Builder only)
+ Allows to override default argument names for this actor.
+ +
//$Color <color index> (GZDoom Builder only)
Allows to override category color for this actor. Possible values: