public static void PrintLevel(LevelModel level) { string[] levelPrintable = Composer.Compose(level.Matrix); var levelState = new StaticElement(levelPrintable); levelState.Print(); }
/// <summary> /// Prints the set of elements on the screen. /// </summary> public override void Print() { if (!_menuFrame.Visible) { _menuFrame.Print(); } for (int i = 0; i < Elements.Count; i++) { if (i == _selected) { Console.ForegroundColor = ColorSelectedForeground; Console.BackgroundColor = ColorSelectedBackground; Elements[i].Print(); Console.ForegroundColor = ColorForeground; Console.BackgroundColor = ColorBackground; } else { Elements[i].Print(); } } IsShown = true; }