Renames "Disable Shroud & Fog" debug option to "Disable visibility checks".
This commit is contained in:
@@ -123,7 +123,7 @@ namespace OpenRA.Traits
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "DevShroudDisable":
|
case "DevVisibility":
|
||||||
{
|
{
|
||||||
DisableShroud ^= true;
|
DisableShroud ^= true;
|
||||||
self.Owner.Shroud.Disabled = DisableShroud;
|
self.Owner.Shroud.Disabled = DisableShroud;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Commands
|
|||||||
help.RegisterHelp(name, helpText);
|
help.RegisterHelp(name, helpText);
|
||||||
};
|
};
|
||||||
|
|
||||||
register("disableshroud", "toggles shroud and minimap.");
|
register("visibility", "toggles visibility checks and minimap.");
|
||||||
register("givecash", "gives the default or specified amount of money.");
|
register("givecash", "gives the default or specified amount of money.");
|
||||||
register("givecashall", "gives the default or specified amount of money to all players and ai.");
|
register("givecashall", "gives the default or specified amount of money to all players and ai.");
|
||||||
register("instantbuild", "toggles instant building.");
|
register("instantbuild", "toggles instant building.");
|
||||||
@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Commands
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "disableshroud": IssueDevCommand(world, "DevShroudDisable"); break;
|
case "visibility": IssueDevCommand(world, "DevVisibility"); break;
|
||||||
case "instantbuild": IssueDevCommand(world, "DevFastBuild"); break;
|
case "instantbuild": IssueDevCommand(world, "DevFastBuild"); break;
|
||||||
case "buildanywhere": IssueDevCommand(world, "DevBuildAnywhere"); break;
|
case "buildanywhere": IssueDevCommand(world, "DevBuildAnywhere"); break;
|
||||||
case "unlimitedpower": IssueDevCommand(world, "DevUnlimitedPower"); break;
|
case "unlimitedpower": IssueDevCommand(world, "DevUnlimitedPower"); break;
|
||||||
|
|||||||
@@ -8,9 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Support;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Widgets;
|
using OpenRA.Widgets;
|
||||||
|
|
||||||
@@ -23,11 +21,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
{
|
{
|
||||||
var devTrait = world.LocalPlayer.PlayerActor.Trait<DeveloperMode>();
|
var devTrait = world.LocalPlayer.PlayerActor.Trait<DeveloperMode>();
|
||||||
|
|
||||||
var shroudCheckbox = widget.GetOrNull<CheckboxWidget>("DISABLE_SHROUD");
|
var visibilityCheckbox = widget.GetOrNull<CheckboxWidget>("DISABLE_VISIBILITY_CHECKS");
|
||||||
if (shroudCheckbox != null)
|
if (visibilityCheckbox != null)
|
||||||
{
|
{
|
||||||
shroudCheckbox.IsChecked = () => devTrait.DisableShroud;
|
visibilityCheckbox.IsChecked = () => devTrait.DisableShroud;
|
||||||
shroudCheckbox.OnClick = () => Order(world, "DevShroudDisable");
|
visibilityCheckbox.OnClick = () => Order(world, "DevVisibility");
|
||||||
}
|
}
|
||||||
|
|
||||||
var pathCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_UNIT_PATHS");
|
var pathCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_UNIT_PATHS");
|
||||||
|
|||||||
@@ -44,13 +44,13 @@ Container@DEBUG_PANEL:
|
|||||||
Height: 20
|
Height: 20
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Instant Charge Time
|
Text: Instant Charge Time
|
||||||
Checkbox@DISABLE_SHROUD:
|
Checkbox@DISABLE_VISIBILITY_CHECKS:
|
||||||
X: 290
|
X: 290
|
||||||
Y: 105
|
Y: 105
|
||||||
Height: 20
|
Height: 20
|
||||||
Width: 200
|
Width: 200
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Disable Shroud & Fog
|
Text: Disable visibility checks
|
||||||
Button@GIVE_CASH:
|
Button@GIVE_CASH:
|
||||||
X: 90
|
X: 90
|
||||||
Y: 145
|
Y: 145
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ Container@DEBUG_PANEL:
|
|||||||
Height: 20
|
Height: 20
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Instant Charge Time
|
Text: Instant Charge Time
|
||||||
Checkbox@DISABLE_SHROUD:
|
Checkbox@DISABLE_VISIBILITY_CHECKS:
|
||||||
X: 290
|
X: 290
|
||||||
Y: 105
|
Y: 105
|
||||||
Height: 20
|
Height: 20
|
||||||
Width: 200
|
Width: 200
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Text: Disable Shroud & Fog
|
Text: Disable visibility checks
|
||||||
Button@GIVE_CASH:
|
Button@GIVE_CASH:
|
||||||
X: 90
|
X: 90
|
||||||
Y: 150
|
Y: 150
|
||||||
|
|||||||
Reference in New Issue
Block a user