Add template type to editor coordinate label.

This commit is contained in:
Paul Chote
2017-07-05 17:51:20 +00:00
committed by reaperrr
parent 72cf5d29e7
commit 4ffcd9b4a5
3 changed files with 4 additions and 4 deletions

View File

@@ -91,8 +91,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ {
var cell = worldRenderer.Viewport.ViewToWorld(Viewport.LastMousePos); var cell = worldRenderer.Viewport.ViewToWorld(Viewport.LastMousePos);
var map = worldRenderer.World.Map; var map = worldRenderer.World.Map;
var height = map.Height.Contains(cell) ? map.Height[cell] : 0; return map.Height.Contains(cell) ?
return "{0},{1}".F(cell, height); "{0},{1} ({2})".F(cell, map.Height[cell], map.Tiles[cell].Type) : "";
}; };
} }

View File

@@ -464,7 +464,7 @@ Container@EDITOR_WORLD_ROOT:
Font: Bold Font: Bold
Contrast: true Contrast: true
Label@CASH_LABEL: Label@CASH_LABEL:
X: 95 X: 125
Width: 50 Width: 50
Height: 25 Height: 25
Align: Left Align: Left

View File

@@ -439,7 +439,7 @@ Container@EDITOR_WORLD_ROOT:
Font: Bold Font: Bold
Contrast: true Contrast: true
Label@CASH_LABEL: Label@CASH_LABEL:
X: 570 X: 600
Width: 50 Width: 50
Height: 25 Height: 25
Align: Left Align: Left