this is not just ShowMuzzles anymore

This commit is contained in:
Matthias Mailänder
2014-01-03 13:30:12 +01:00
parent 4d99f9ce53
commit a6c5b80731
5 changed files with 10 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Traits
public bool PathDebug = false; public bool PathDebug = false;
public bool UnlimitedPower; public bool UnlimitedPower;
public bool BuildAnywhere; public bool BuildAnywhere;
public bool ShowMuzzles; public bool ShowCombatGeometry;
public bool ShowDebugGeometry; public bool ShowDebugGeometry;
public object Create (ActorInitializer init) { return new DeveloperMode(this); } public object Create (ActorInitializer init) { return new DeveloperMode(this); }
@@ -37,7 +37,7 @@ namespace OpenRA.Traits
[Sync] public bool BuildAnywhere; [Sync] public bool BuildAnywhere;
// Client size only // Client size only
public bool ShowMuzzles; public bool ShowCombatGeometry;
public bool ShowDebugGeometry; public bool ShowDebugGeometry;
public DeveloperMode(DeveloperModeInfo info) public DeveloperMode(DeveloperModeInfo info)
@@ -49,7 +49,7 @@ namespace OpenRA.Traits
PathDebug = info.PathDebug; PathDebug = info.PathDebug;
UnlimitedPower = info.UnlimitedPower; UnlimitedPower = info.UnlimitedPower;
BuildAnywhere = info.BuildAnywhere; BuildAnywhere = info.BuildAnywhere;
ShowMuzzles = info.ShowMuzzles; ShowCombatGeometry = info.ShowCombatGeometry;
ShowDebugGeometry = info.ShowDebugGeometry; ShowDebugGeometry = info.ShowDebugGeometry;
} }

2
OpenRA.Mods.RA/CombatDebugOverlay.cs Executable file → Normal file
View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA
public void RenderAfterWorld(WorldRenderer wr, Actor self) public void RenderAfterWorld(WorldRenderer wr, Actor self)
{ {
if (devMode == null || !devMode.ShowMuzzles) if (devMode == null || !devMode.ShowCombatGeometry)
return; return;
if (health.Value != null) if (health.Value != null)

View File

@@ -57,11 +57,11 @@ namespace OpenRA.Mods.RA.Widgets.Logic
fastChargeCheckbox.OnClick = () => Order(world, "DevFastCharge"); fastChargeCheckbox.OnClick = () => Order(world, "DevFastCharge");
} }
var showMuzzlesCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_MUZZLES"); var showCombatCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_COMBATOVERLAY");
if (showMuzzlesCheckbox != null) if (showCombatCheckbox != null)
{ {
showMuzzlesCheckbox.IsChecked = () => devTrait.ShowMuzzles; showCombatCheckbox.IsChecked = () => devTrait.ShowCombatGeometry;
showMuzzlesCheckbox.OnClick = () => devTrait.ShowMuzzles ^= true; showCombatCheckbox.OnClick = () => devTrait.ShowCombatGeometry ^= true;
} }
var showGeometryCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_GEOMETRY"); var showGeometryCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_GEOMETRY");

View File

@@ -101,7 +101,7 @@ Container@CHEATS_PANEL:
Width:200 Width:200
Font:Regular Font:Regular
Text:Show A* Cost Text:Show A* Cost
Checkbox@SHOW_MUZZLES: Checkbox@SHOW_COMBATOVERLAY:
X:290 X:290
Y:235 Y:235
Height:20 Height:20

View File

@@ -81,7 +81,7 @@ Background@CHEATS_PANEL:
Width:PARENT_RIGHT - 30 Width:PARENT_RIGHT - 30
Height:20 Height:20
Text:Show A* Cost Text:Show A* Cost
Checkbox@SHOW_MUZZLES: Checkbox@SHOW_COMBATOVERLAY:
X:30 X:30
Y:350 Y:350
Height:20 Height:20