Example #1
0
 public override void OnUpdate(CoreConsole console)
 {
     if (console.KeyPressed(ConsoleKey.D2))
     {
     }
     else if (console.KeyPressed(ConsoleKey.Spacebar))
     {
         _character.TotalXp += _character.LevelProgress.Level * 10;
         VisibleFrame        = CreateFrame(this);
     }
 }
Example #2
0
 public override void OnUpdate(CoreConsole console)
 {
     if (console.KeyPressed(ConsoleKey.D2))
     {
         console.ActiveWindow = ChildWindows[0];
     }
 }
Example #3
0
 public void Update(CoreConsole console)
 {
     if (console.KeyPressed(ConsoleKey.Escape) && Parent != null)
     {
         console.ActiveWindow = Parent;
         return;
     }
     OnUpdate(console);
 }