private static void DrawGUI() { cgui.DrawBox(); cgui.CenterTextAt(topRow, "Testa dig själv"); cgui.PrintAt(14, StatsRow, "Grund : 0% "); cgui.PrintAt(54, StatsRow, "Avancerad : 0% "); cgui.PrintAt(95, StatsRow, "Ninja : % "); cgui.CenterTextAt(27, "Totalt : % ", true); Pillars(); }
/// <summary> /// Mainmetoden. /// </summary> private static void Main() { DrawGUI(); StringBuilder result = new System.Text.StringBuilder("\nResultat:"); double g = Checka.Grund(); double a = Checka.Avancerad(); double n = Checka.Ninja(); double s = (g + a + n) / 300; double t = Math.Round(s * 100, 1); cgui.PrintAt(14, statsRow, $"Grund : {g}% "); cgui.PrintAt(54, statsRow, $"Avancerad : {a}% "); cgui.PrintAt(95, statsRow, $"Ninja : {n}% "); cgui.CenterTextAt(27, $"Totalt : {t}% ", true); cgui.SetPos(0, 0); Console.ReadLine(); }