Updated the observer ui

This commit is contained in:
teinarss
2019-05-22 14:56:52 +02:00
committed by Paul Chote
parent b90b3095a6
commit 9fc8b829e4
23 changed files with 3773 additions and 2076 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Common.Widgets
public int IconWidth = 32;
public int IconHeight = 24;
public int IconSpacing = 8;
public int IconSpacing = 1;
public string ClockAnimation = "clock";
public string ClockSequence = "idle";
@@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.Widgets
var tiny = Game.Renderer.Fonts["Tiny"];
var text = GetOverlayForItem(item, timestep);
tiny.DrawTextWithContrast(text,
location + new float2(16, 16) - new float2(tiny.Measure(text).X / 2, 0),
location + new float2(16, 12) - new float2(tiny.Measure(text).X / 2, 0),
Color.White, Color.Black, 1);
}
}