public int Start() { ScreenSize = new Graphics.Vector2(90, 30); ConsoleOutput = new Graphics.Console.ConsoleWriter(ScreenSize); for (int i = 0; i < 10; i++) { ConsoleOutput.Screen[12, i].Character = (char)(i + 97); } for (int i = 0; i < 90; i++) { ConsoleOutput.Screen[i, 15].Character = (char)((i % 20) + 97); } h = new Graphics.Console.Sprite("This\nIs\nA\nMulti-Line\n Sprite", new Graphics.Vector2(10, 20), ConsoleColor.Black, ConsoleColor.Cyan); h.Size = new Graphics.Vector2(15, 10); ConsoleOutput.Sprites.Add(h); ConsoleOutput.Screen[0, 10].Character = 'O'; ConsoleOutput.Screen[0, 10].Background = ConsoleColor.Red; ConsoleOutput.Screen[0, 10].Forground = ConsoleColor.Yellow; return(0); }
public int Start() { ScreenSize = new Graphics.Vector2(90, 30); ConsoleOutput = new Graphics.Console.ConsoleWriter(ScreenSize); int y = 0; foreach (Application App in Applications) { y++; Graphics.Console.Sprite TempSprite = new Graphics.Console.Sprite(App.GetType().Name, new Graphics.Vector2((int)Position.X, (int)Position.Y + y)); ConsoleOutput.Sprites.Add(TempSprite); Sprites.Add(TempSprite); } return(0); }