Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NPS Graph Widget #105

Merged
merged 13 commits into from
Jul 13, 2024
Merged

Add NPS Graph Widget #105

merged 13 commits into from
Jul 13, 2024

Conversation

mjvotaw
Copy link
Contributor

@mjvotaw mjvotaw commented Jun 19, 2024

I recently saw someone lamenting the fact that there was no nps graph in SMEditor, so I thought I'd try adding one.

Screenshot 2024-06-19 at 11 28 58 AM

The graph includes a nps display that follows the mouse position.
I've also added preferences to show/hide the graph, and change the colors.

tillvit and others added 7 commits February 10, 2024 13:18
* tillvit-development: (29 commits)
  Add playbackOptions hide flag
  Add fn+direction display for mac, select to start/end
  Remove border radius for playbackoptions
  Make collapse button not tabbable + move button
  Make collapse button not tabbable
  Add playback options toggle button
  Fix initial load for warp/fake row in playbackoptions widget
  Add chart details to requiresSSC
  Remove note from selection when deleted
  Reduce note layout selection opacity
  Fix  popup y pos
  Fix waterfall positioning
  Playback options, keybind tooltip update
  Fix upperbound/lowerbound on reverse
  Fix missing app in statuswidget
  Add detect sync + offset to edit timing
  Tweak keybinds to not trigger when button selected
  Fix timing tracks not clearing animation on reuse
  Fix right timing track visiblity, note layout y calc
  Fix timing track visibility not moving instantly
  ...
@tillvit
Copy link
Owner

tillvit commented Jun 25, 2024

Looked through the changes; works quite well except there are a few issues with calculating the y position of the text in CMod. There also seems to be a bug in the calculation of the last beat/second that is also present in the old NoteLayoutWidget. I pushed a fix to the y position and added getLastSecond() and getLastBeat() methods to Chart.

Also, since both of the widgets share the same layout and overlays, we could just combine them and have each widget override the populate() method.

@mjvotaw
Copy link
Contributor Author

mjvotaw commented Jun 25, 2024

I'm not surprised to hear the cmod issues. I could tell something was probably wrong, but I couldn't work out what.

And I agree, I'll take a look at building a base class for both of these widgets to extend.

@tillvit
Copy link
Owner

tillvit commented Jul 13, 2024

Did some bug fixes, will do more thorough review soon

@tillvit tillvit merged commit e4efe41 into tillvit:development Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants