public override void MouseButtonReleased(Nuclex.Input.MouseButtons buttons) { base.MouseButtonReleased(buttons); if (buttons == Nuclex.Input.MouseButtons.Left && screenHandler.CurrentScreen == this) { var mouseState = Game.input.GetMouse().GetState(); Game.World.MouseButtonPressed(buttons, mouseState); if (EnterIcon.Contains(mouseState)) { ; } else if (MenuIcon.Contains(mouseState)) { screenHandler.AddScreen <MenuPartyScreen>(); } else if (ShopIcon.Contains(mouseState)) { ; } else if (DataIcon.Contains(mouseState)) { ; } buttons = 0; } }
private void btnButton_Clicked(Nuclex.Input.MouseButtons buttons, float arg1, float arg2) { AddDebugText("Button clicked"); if (ROClient.Singleton.GuiManager.Controls.Contains(newCharWindow)) { // bring to front return; } newCharWindow = new NewCharWindow(); ROClient.Singleton.GuiManager.Controls.Add(newCharWindow); }
void ibScrollRight_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { if (_value < _maximum) { _value++; if (ValueChanged != null) { ValueChanged(); } } }
void ibScrollLeft_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { if (_value > _minimum) { _value--; if (ValueChanged != null) { ValueChanged(); } } }
void btnOkYes_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { if (arg1 == Nuclex.Input.MouseButtons.Left) { if (callback != null) { callback(1); } this.Close(); } }
public override void OnClick(Nuclex.Input.MouseButtons buttons, float x, float y) { int atY = 0; for (int i = drawStart; i < drawCount; i++) { if (y >= atY && y < atY + lineHeight) { _selectedIndex = i; break; } atY += lineHeight; } base.OnClick(buttons, x, y); }
public override void OnClick(Nuclex.Input.MouseButtons buttons, float x, float y) { if (buttons == Nuclex.Input.MouseButtons.Left) { if (Slot1.Contains((int)x, (int)y)) { selectionOffset = 0; } else if (Slot2.Contains((int)x, (int)y)) { selectionOffset = 1; } else if (Slot3.Contains((int)x, (int)y)) { selectionOffset = 2; } RefreshIndex(); } }
void btnAction_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { if (arg1 == Nuclex.Input.MouseButtons.Left) { if (cbChars.SelectedIndex == -1) { if (OnCreateChar != null) { OnCreateChar(cbChars.SelectedSlot); } } else { if (OnSelectChar != null) { OnSelectChar(cbChars.SelectedSlot); } } } }
public override void MouseButtonReleased(Nuclex.Input.MouseButtons buttons) { base.MouseButtonReleased(buttons); if (buttons == Nuclex.Input.MouseButtons.Left) { foreach (var component in Components) { if (component is ObjectListControl) { ObjectListControl list = ((ObjectListControl)component); if (list.Bounds.Contains(new Point((int)MouseLoc.X, (int)MouseLoc.Y))) { list.MouseClicked(MouseLoc); break; } } } buttons = 0; } }
protected override void OnMousePressed(Nuclex.Input.MouseButtons button) { base.OnMousePressed(button); MouseClick.Invoke(); }
public override void OnClick(Nuclex.Input.MouseButtons buttons, float x, float y) { Checked = !Checked; base.OnClick(buttons, x, y); }
public virtual void MouseButtonPressed(Nuclex.Input.MouseButtons buttons) { }
public virtual void MouseButtonReleased(Nuclex.Input.MouseButtons buttons) { }
void btnCancel_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { }
void ibScrollRight_Clicked(Nuclex.Input.MouseButtons arg1, float arg2, float arg3) { cbChars.GoRightOnce(); }
public override void MouseButtonPressed(Nuclex.Input.MouseButtons buttons) { base.MouseButtonPressed(buttons); }
public override void OnClick(Nuclex.Input.MouseButtons buttons, float x, float y) { caretPosition = Text.Length; }
protected override void OnMouseReleased(Nuclex.Input.MouseButtons button) { base.OnMouseReleased(button); MouseRelease.Invoke(); }
public override void OnMouseUp(Nuclex.Input.MouseButtons buttons, float x, float y) { pressed = false; base.OnMouseUp(buttons, x, y); }
public override void OnMouseDown(Nuclex.Input.MouseButtons buttons, float x, float y) { pressed = true; base.OnMouseDown(buttons, x, y); }