From 9a6d3ea84c6c3e62b571cf46ad6833c0b4cf7f8e Mon Sep 17 00:00:00 2001 From: MaxED Date: Thu, 14 Jul 2016 12:42:16 +0000 Subject: [PATCH] Added, DECORATE: added "//$ArgNRenderStyle" special comment. It allows to specify a rendering shape to display the value of given argument. Supported values are "circle" and "rectangle". Added, DECORATE: added "//$ArgNRenderColor" special comment. It allows to specify a color used by the rendering shape. Updated documentation. --- Help/gc_argumentsettings.html | 14 ++- Help/gc_decoratekeys.html | 41 ++++++--- Source/Core/Config/ArgumentInfo.cs | 92 ++++++++++++++++++- Source/Core/Config/ThingTypeInfo.cs | 4 +- Source/Core/GZBuilder/Data/LinksCollector.cs | 65 ++++++++++++- .../BuilderModes/ClassicModes/ThingsMode.cs | 21 +---- 6 files changed, 203 insertions(+), 34 deletions(-) diff --git a/Help/gc_argumentsettings.html b/Help/gc_argumentsettings.html index 5d3a63e6..6c2400af 100644 --- a/Help/gc_argumentsettings.html +++ b/Help/gc_argumentsettings.html @@ -91,7 +91,19 @@ arg0 Enums can be also set in DECORATE.
-

flags (structure or string) - GZDB only
+

renderstyle (string) - GZDB only
+ Allows to specify a rendering shape to display the value of this argument. Supported values are:
+

+ Rendering shapes can be toggled using "Toggle Event Lines" action/menu button.
+ Currently rendering shapes are supported only for Thing arguments.
Currently rendering shapes are shown only in Classic modes.

+

rendercolor (integer) - GZDB only
+ Allows to specify a color used by rendering shape. Supported values are hex color (like "FF0000"), HTML-formatted hex color (like "#F00" or "#FF0000") or color name (like "Red").
+ By default rendering shapes will use Event line editor color.
+ This property must be used in conjunction with the "renderstyle" property.

+

flags (structure or string) - GZDB only
Provides a list of predefined bit flag values to display for this argument. Used only when argument type is 26.
The value can be either a name of a predefined enum or an explicit definition.
Example: diff --git a/Help/gc_decoratekeys.html b/Help/gc_decoratekeys.html index b10d4961..9d614025 100644 --- a/Help/gc_decoratekeys.html +++ b/Help/gc_decoratekeys.html @@ -48,21 +48,39 @@ 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.
+ Allows to set the default value for this argument. This property must be used in conjunction with the "//$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.
+ Allows to specify a tooltip text displayed for this argument. Newline character ("\n") can be used to format the text. This property must be used in conjunction with the "//$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.
+ Allows to specify an argument type for this argument. This property must be used in conjunction with the "//$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: -