Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove UnitInfluenceDebug checkbox
  • Loading branch information
pchote committed Apr 9, 2011
1 parent c99be90 commit 4c92293
Show file tree
Hide file tree
Showing 4 changed files with 969 additions and 994 deletions.
8 changes: 0 additions & 8 deletions OpenRA.Game/Traits/Player/DeveloperMode.cs
Expand Up @@ -19,7 +19,6 @@ public class DeveloperModeInfo : ITraitInfo
public bool FastCharge = false;
public bool DisableShroud = false;
public bool PathDebug = false;
public bool UnitInfluenceDebug = false;
public bool UnlimitedPower;
public bool BuildAnywhere;

Expand All @@ -34,7 +33,6 @@ public class DeveloperMode : IResolveOrder, ISync
[Sync] public bool FastBuild;
[Sync] public bool DisableShroud;
[Sync] public bool PathDebug;
[Sync] public bool UnitInfluenceDebug;
[Sync] public bool UnlimitedPower;
[Sync] public bool BuildAnywhere;

Expand All @@ -45,7 +43,6 @@ public DeveloperMode(DeveloperModeInfo info)
FastCharge = info.FastCharge;
DisableShroud = info.DisableShroud;
PathDebug = info.PathDebug;
UnitInfluenceDebug = info.UnitInfluenceDebug;
UnlimitedPower = info.UnlimitedPower;
BuildAnywhere = info.BuildAnywhere;
}
Expand Down Expand Up @@ -88,11 +85,6 @@ public void ResolveOrder (Actor self, Order order)
PathDebug ^= true;
break;
}
case "DevUnitDebug":
{
UnitInfluenceDebug ^= true;
break;
}
case "DevGiveExploration":
{
if (self.World.LocalPlayer == self.Owner)
Expand Down
3 changes: 0 additions & 3 deletions OpenRA.Mods.RA/Widgets/Delegates/DeveloperModeDelegate.cs
Expand Up @@ -43,9 +43,6 @@ public DeveloperModeDelegate( [ObjectCreator.Param] World world )
devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_SHROUD").BindReadOnly(devTrait, "DisableShroud");
devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_SHROUD").OnChange += _ => Order(world, "DevShroud");

devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_UNITDEBUG").BindReadOnly(devTrait, "UnitInfluenceDebug");
devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_UNITDEBUG").OnChange += _ => Order(world, "DevUnitDebug");

devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_PATHDEBUG").BindReadOnly(devTrait, "PathDebug");
devmodeBG.GetWidget<CheckboxWidget>("CHECKBOX_PATHDEBUG").OnChange += _ => Order(world, "DevPathDebug");

Expand Down

0 comments on commit 4c92293

Please sign in to comment.