Esempio n. 1
0
 private void AnyElementHover(UIElement sender, vf mouse, Mouse button)
 {
     //if (sender != lastSender) {
     //	try {
     //		Sound.AudioManager.PlaySound(IO.AssetManager.GetSound("ui-pop"));
     //	} catch { }
     //}
     //lastSender = sender;
 }
Esempio n. 2
0
 private void QuitClicked(UIElement sender, vf mouse, Mouse button)
 {
     owner.Finish();
 }
Esempio n. 3
0
        private void SettingsClicked(UIElement sender, vf mouse, Mouse button)
        {
            Scene settingsScene = new SettingsScene(owner);

            owner.currentScene = settingsScene;
        }
Esempio n. 4
0
        private void PlayClicked(UIElement sender, vf mouse, Mouse button)
        {
            Scene playScene = new ShapeEditorScene(owner);            //new GameScene(owner);

            owner.currentScene = playScene;
        }
Esempio n. 5
0
 private void BackClicked(UIElement sender, vf mouse, Mouse button)
 {
     owner.currentScene = new MenuScene(owner);
 }
Esempio n. 6
0
 private void RebindClicked(UIElement sender, vf mouse, Mouse button)
 {
     rebinding       = true;
     rebindingAction = (sender as RebindButton).action;
 }
Esempio n. 7
0
 private void SaveClicked(UIElement sender, vf mouse, Mouse button)
 {
     owner.inputManager.Save();
 }
Esempio n. 8
0
 public RebindButton(vf position, vf size, string action) : base(position, size, "")
 {
     this.action = action;
 }
Esempio n. 9
0
 public Player(vf position_w) : base(position_w)
 {
     graphics = IO.AssetManager.GetShape("player");
 }
Esempio n. 10
0
 public bool ContainsPoint(vf point)
 {
     return(topLeft.x <= point.x && topLeft.y <= point.y &&
            bottomRight.x > point.x && bottomRight.y > point.y);
 }
Esempio n. 11
0
 public AABB(vf topLeft, vf bottomRight)
 {
     this.topLeft     = topLeft;
     this.bottomRight = bottomRight;
 }
Esempio n. 12
0
 public Bullet(vf position_w) : base(position_w)
 {
 }
Esempio n. 13
0
 public TextButton(vf position, string text) : base(position, (text.Length * 8 + 2, 10))