public override void OnRender(RenderTarget target) { BurntimeClassic classic = app as BurntimeClassic; int city = classic.InfoCity; TextHelper txt = new TextHelper(app, "burn"); Location loc = classic.Game.World.Locations[city]; titleFont.DrawText(target, new Vector2(193, 7), txt[city], TextAlignment.Center, VerticalTextAlignment.Top); if (itemCount[0] != -1) { font.DrawText(target, new Vector2(188, 120), itemCount[0].ToString()); } if (itemCount[1] != -1) { font.DrawText(target, new Vector2(188, 160), itemCount[1].ToString()); } // render npc info font.DrawText(target, new Vector2(100, 33), txt[396], TextAlignment.Left, VerticalTextAlignment.Top); font.DrawText(target, new Vector2(100, 51), txt[397], TextAlignment.Left, VerticalTextAlignment.Top); font.DrawText(target, new Vector2(100, 69), txt[398], TextAlignment.Left, VerticalTextAlignment.Top); int max = System.Math.Max(font.GetWidth(txt[396]), font.GetWidth(txt[397])); max = System.Math.Max(font.GetWidth(txt[398]), max); RenderNPCLine(target, new Vector2(110 + max, 29), fighter, fighterImage); RenderNPCLine(target, new Vector2(110 + max, 47), technicians, technicianImage); RenderNPCLine(target, new Vector2(110 + max, 65), doctors, doctorImage); // render resources font.DrawText(target, new Vector2(137, 86), txt[399], TextAlignment.Left, VerticalTextAlignment.Top); font.DrawText(target, new Vector2(229, 86), txt[406], TextAlignment.Left, VerticalTextAlignment.Top); txt.AddArgument("|J", loc.GetFoodProductionValue()); txt.AddArgument("|D", loc.Source.Water); font.DrawText(target, new Vector2(270, 117), txt[421], TextAlignment.Left, VerticalTextAlignment.Top); font.DrawText(target, new Vector2(270, 152), txt[422], TextAlignment.Left, VerticalTextAlignment.Top); if (loc.Danger != null) { font.DrawText(target, new Vector2(251, 68), loc.Danger.InfoString, TextAlignment.Center, VerticalTextAlignment.Top); } txt.ClearArguments(); }