Add new Views system
This commit is contained in:
28
CoopSweeper/View/MenuBarView.cs
Normal file
28
CoopSweeper/View/MenuBarView.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user