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

@@ -81,6 +81,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
showTerrainGeometryCheckbox.OnClick = () => terrainGeometryTrait.Enabled ^= true;
}
var showDepthPreviewCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_DEPTH_PREVIEW");
if (showDepthPreviewCheckbox != null)
{
showDepthPreviewCheckbox.IsChecked = () => devTrait.ShowDepthPreview;
showDepthPreviewCheckbox.OnClick = () => devTrait.ShowDepthPreview ^= true;
}
var allTechCheckbox = widget.GetOrNull<CheckboxWidget>("ENABLE_TECH");
if (allTechCheckbox != null)
{