Add template type to editor coordinate label.
This commit is contained in:
@@ -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) : "";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user