Beispiel #1
0
 public override void OnKeyDown(InputState input)
 {
     if (input.Shift && input.ConsumeEvent(Keys.X)) OnClose();
     if (input.Ctrl && input.ConsumeEvent(Keys.Back)) {
         Button f = AddChild(new Button()).OnButtonClick(() => {});
         f.Rect = new PxRect(0, 0, 64, 16);
         f.Text = "derp";
     }
 }