diff --git a/Build/Scripting/ZDoom_DECORATE.cfg b/Build/Scripting/ZDoom_DECORATE.cfg index 64054a7012f13768216b387d45e863de4a8f8685..06effbda9f15b75bbd07fafafab910a36d69bf88 100644 --- a/Build/Scripting/ZDoom_DECORATE.cfg +++ b/Build/Scripting/ZDoom_DECORATE.cfg @@ -29,6 +29,7 @@ keywords $NotAngled = "$NotAngled"; $Category = "//$Category \"[EP]\""; $Sprite = "//$Sprite \"[EP]\""; + $IgnoreRenderstyle = "//$IgnoreRenderstyle"; $Title = "//$Title \"[EP]\""; $Arg0 = "//$Arg0 \"[EP]\""; $Arg1 = "//$Arg1 \"[EP]\""; diff --git a/Help/gc_decoratekeys.html b/Help/gc_decoratekeys.html index 836ad68ede7fd6b1628ff3983eb0de582fb2e41d..772c7f4e876784c8da6384d14373f74b8ced3d69 100644 --- a/Help/gc_decoratekeys.html +++ b/Help/gc_decoratekeys.html @@ -31,6 +31,9 @@ <strong>//$Title <title></strong><br /> 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.<br /> <br /> + <strong>//$IgnoreRenderstyle</strong> - <span class="red">GZDB only</span>.<br /> + "RenderStyle" DECORATE property will be ignored by the editor. Helpful when you want to see the sprite of an invivsible actor in Visual mode.<br /> + <br /> <strong><a name="argtitle" id="argtitle"></a>//$ArgN <name></strong> - <span class="red">GZDB only</span>.<br /> Allows to override default argument names for this actor.<br /> <br /> @@ -87,6 +90,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104 { //$Category "Pickups/Chex Powerups" //$Sprite ARMXA0 + //$IgnoreRenderstyle //$Title "Chex Shield" //$Color 12 //$NotAngled @@ -115,6 +119,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104 Height 44 Radius 26 + RenderStyle None Inventory.PickupMessage "Picked up the energized Chex armor!" States diff --git a/Source/Core/Config/ThingTypeInfo.cs b/Source/Core/Config/ThingTypeInfo.cs index 6ca6977a09df3b4e2169a4c1eaca39c9c9f1c7eb..7692855aaf6feb4c0f147e4f2888df7c65ab125a 100644 --- a/Source/Core/Config/ThingTypeInfo.cs +++ b/Source/Core/Config/ThingTypeInfo.cs @@ -461,7 +461,8 @@ namespace CodeImp.DoomBuilder.Config if(actor.HasPropertyWithValue("height")) height = actor.GetPropertyValueInt("height", 0); //mxd. Renderstyle - if(actor.HasPropertyWithValue("renderstyle")) renderstyle = actor.GetPropertyValueString("renderstyle", 0).ToLower(); + if(actor.HasPropertyWithValue("renderstyle") && !actor.HasProperty("$ignorerenderstyle")) + renderstyle = actor.GetPropertyValueString("renderstyle", 0).ToLower(); //mxd. Alpha if(actor.HasPropertyWithValue("alpha"))