public AirNoteButton(int noteType, NoteButtonEventHandler handler) : base(noteType, handler) { isMouseEnter = false; buttonArea = ButtonArea.None; previewBox.MouseEnter += PreviewBox_MouseEnter; previewBox.MouseLeave += PreviewBox_MouseLeave; previewBox.MouseMove += PreviewBox_MouseMove; // VirtualButtonRect.Left = new RectangleF(0, 0, virtualButtonWeight, previewBox.Height); VirtualButtonRect.Center = new RectangleF( virtualButtonWeight, 0, previewBox.Width - virtualButtonWeight * 2, previewBox.Height); VirtualButtonRect.Right = new RectangleF( previewBox.Width - virtualButtonWeight, 0, virtualButtonWeight, previewBox.Height); }
public SizableNoteButton(int noteType, NoteButtonEventHandler handler) : base(noteType, handler) { NoteSize = Status.NoteSize; isMouseEnter = false; isMousePressed = false; pressedLocation = new Point(); sizeDelta = 0; buttonArea = ButtonArea.None; previewBox.MouseEnter += PreviewBox_MouseEnter; previewBox.MouseLeave += PreviewBox_MouseLeave; previewBox.MouseMove += PreviewBox_MouseMove; previewBox.MouseUp += PreviewBox_MouseUp; // VirtualButtonRect.Top = new RectangleF(0, 0, previewBox.Width, virtualButtonWeight); VirtualButtonRect.Center = new RectangleF(0, virtualButtonWeight, previewBox.Width, previewBox.Height - virtualButtonWeight * 2); VirtualButtonRect.Bottom = new RectangleF(0, previewBox.Height - virtualButtonWeight, previewBox.Width, virtualButtonWeight); }
public BPMNoteButton(int noteType, NoteButtonEventHandler handler) : base(noteType, handler) { }
public NoteButton(int noteType, NoteButtonEventHandler handler) { InitializeComponent(); previewBox.MouseDown += PreviewBox_MouseDown; previewBox.Paint += PreviewBox_Paint; UpdateSelectedNoteButton += handler; this.noteType = noteType; // Size = new Size(150, 100); previewBox.Size = new Size(Width - margin * 2, Height - margin * 2); previewBox.Location = new Point(margin - 1, margin - 1); // AutoScaleMode = AutoScaleMode.None; #region ToolTip ToolTip toolTip = new ToolTip() { InitialDelay = 1000, ReshowDelay = 500, AutoPopDelay = 5000, ShowAlways = true }; string tipStr = "Note"; switch (noteType) { case NoteType.TAP: tipStr = "Tap"; break; case NoteType.EXTAP: tipStr = "ExTap"; break; case NoteType.AWEXTAP: tipStr = "AwesomeExTap"; break; case NoteType.EXTAPDOWN: tipStr = "ExTapDown"; break; case NoteType.FLICK: tipStr = "Flick"; break; case NoteType.HELL: tipStr = "Damage"; break; case NoteType.HOLD: tipStr = "Hold"; break; case NoteType.SLIDE: tipStr = "Slide"; break; case NoteType.SLIDECURVE: tipStr = "SlideCurve"; break; case NoteType.AIRUPL: case NoteType.AIRUPC: case NoteType.AIRUPR: tipStr = "AirUp"; break; case NoteType.AIRDOWNL: case NoteType.AIRDOWNC: case NoteType.AIRDOWNR: tipStr = "AirDown"; break; case NoteType.AIRHOLD: tipStr = "AirHold/AirAction"; break; case NoteType.BPM: tipStr = "BPM"; break; case NoteType.HIGHSPEED: tipStr = "HighSpeed"; break; default: break; } toolTip.SetToolTip(previewBox, tipStr); #endregion }
public ValueNoteButton(int noteType, NoteButtonEventHandler handler) : base(noteType, handler) { valueDelta = 0; }