Add new Views system

This commit is contained in:
Marvin Rohrbach
2018-12-16 11:47:26 +01:00
parent 624f6d1ea6
commit 35e3010a33
9 changed files with 338 additions and 191 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CoopSweeper.View
{
public class MenuBarView : IView
{
public Position Position { get; set; }
public void Draw(bool fullRedraw)
{
Console.SetCursorPosition(Position.X, Position.Y);
Console.Write(" ");
Console.BackgroundColor = ConsoleColor.Gray;
Console.ForegroundColor = ConsoleColor.Black;
Console.Write("Configure Restart Exit");
Console.ForegroundColor = ConsoleColor.Gray;
Console.BackgroundColor = ConsoleColor.Black;
Console.Write(" ");
}
public bool HandleKeyEvent(ConsoleKey key)
{
return false;
}
}
}