public static void RenderMainStats(ControlPanel cp, float[] vehiclestats) { float[] stats = ExtractStats(vehiclestats, new int[] { 0, 1, 3, 4, 5, 9, 11 }); Render.DrawTextList(cp.WINDOW_SCALE, cp.ol_coords["podsel_shown"], Helper.ArrayToStrList(stats), cp.ol_font["podsel_shown"], cp.ol_color["txt_podsel_stats_shown"], TextAlignment.Left | TextAlignment.VerticalCenter); }
public static void RenderHiddenStats(ControlPanel cp, float[] vehiclestats) { string[] statNames = { "MAX TURN RATE", "DECELERATION", "BOOST THRUST", "HEAT RATE", "HOVER HEIGHT", "BUMP MASS", "DAMAGE IMMUNITY", "ISECT RADIUS" }; float[] stats = ExtractStats(vehiclestats, new int[] { 2, 6, 7, 8, 10, 12, 13, 14 }); Render.DrawTextList(cp.WINDOW_SCALE, cp.ol_coords["podsel_hidden"], statNames, stats, cp.ol_font["podsel_hidden"], cp.ol_color["txt_podsel_stats_hidden"], TextAlignment.Left | TextAlignment.Bottom, " "); }
public static void RenderMovementData2D(ControlPanel cp, float distance, float speed, float distancetotal, float timetotal) { string output = "2D: " + distance.ToString("00.000") + " ADU/f " + speed.ToString("000.0") + " ADU/s " + distancetotal.ToString("0.0") + " ADU/race " + (distancetotal / timetotal).ToString("000.0") + " avg ADU/s "; Render.DrawText(cp.WINDOW_SCALE, cp.ol_coords["txt_debug2"], output, cp.ol_font["default"], cp.ol_color["txt_debug"], TextAlignment.Right | TextAlignment.Bottom); }