Add a visualisation mode for depth sprites.

For now this displays the raw sprites.  It will
eventually be repurposed for rendering the proper
depth data.
This commit is contained in:
Paul Chote
2015-09-28 19:47:35 +01:00
parent b08adbeb61
commit 83949b250a
7 changed files with 165 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ namespace OpenRA.Traits
public bool BuildAnywhere;
public bool ShowCombatGeometry;
public bool ShowDebugGeometry;
public bool ShowDepthPreview;
public object Create(ActorInitializer init) { return new DeveloperMode(this); }
}
@@ -41,6 +42,8 @@ namespace OpenRA.Traits
// Client side only
public bool ShowCombatGeometry;
public bool ShowDebugGeometry;
public bool ShowDepthPreview;
public bool EnableAll;
public DeveloperMode(DeveloperModeInfo info)
@@ -54,6 +57,7 @@ namespace OpenRA.Traits
BuildAnywhere = info.BuildAnywhere;
ShowCombatGeometry = info.ShowCombatGeometry;
ShowDebugGeometry = info.ShowDebugGeometry;
ShowDepthPreview = info.ShowDepthPreview;
}
public void ResolveOrder(Actor self, Order order)