private void AnyElementHover(UIElement sender, vf mouse, Mouse button) { //if (sender != lastSender) { // try { // Sound.AudioManager.PlaySound(IO.AssetManager.GetSound("ui-pop")); // } catch { } //} //lastSender = sender; }
private void QuitClicked(UIElement sender, vf mouse, Mouse button) { owner.Finish(); }
private void SettingsClicked(UIElement sender, vf mouse, Mouse button) { Scene settingsScene = new SettingsScene(owner); owner.currentScene = settingsScene; }
private void PlayClicked(UIElement sender, vf mouse, Mouse button) { Scene playScene = new ShapeEditorScene(owner); //new GameScene(owner); owner.currentScene = playScene; }
private void BackClicked(UIElement sender, vf mouse, Mouse button) { owner.currentScene = new MenuScene(owner); }
private void RebindClicked(UIElement sender, vf mouse, Mouse button) { rebinding = true; rebindingAction = (sender as RebindButton).action; }
private void SaveClicked(UIElement sender, vf mouse, Mouse button) { owner.inputManager.Save(); }
public RebindButton(vf position, vf size, string action) : base(position, size, "") { this.action = action; }
public Player(vf position_w) : base(position_w) { graphics = IO.AssetManager.GetShape("player"); }
public bool ContainsPoint(vf point) { return(topLeft.x <= point.x && topLeft.y <= point.y && bottomRight.x > point.x && bottomRight.y > point.y); }
public AABB(vf topLeft, vf bottomRight) { this.topLeft = topLeft; this.bottomRight = bottomRight; }
public Bullet(vf position_w) : base(position_w) { }
public TextButton(vf position, string text) : base(position, (text.Length * 8 + 2, 10))