remove hardcoded 20px offset in TimerWidget
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenRA.Widgets
|
||||
var s = WidgetUtils.FormatTime(Game.LocalTick);
|
||||
var font = Game.Renderer.Fonts["Title"];
|
||||
var rb = RenderBounds;
|
||||
var pos = new float2(rb.Left - font.Measure(s).X / 2, rb.Top - 20);
|
||||
var pos = new float2(rb.Left - font.Measure(s).X / 2, rb.Top);
|
||||
|
||||
font.DrawTextWithContrast(s, pos, Color.White, Color.Black, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user