PKBeam / Edda

A beatmap editor for the VR rhythm game Ragnarock
GNU General Public License v3.0
34 stars 8 forks source link

Use ratio for scaling mapping area instead of absolute scaling #125

Closed UnforeseenOcean closed 3 months ago

UnforeseenOcean commented 5 months ago

If you maximize the window and set it so the spectrogram section takes half or so of the mapping area and then resize the window, the spectrogram will cover the entire mapping area and cannot be adjusted or used. 1717420104

A solution I'm proposing is to use the ratio of the spectrogram and note view (example shown below) by calculating how much area in the X-axis each part takes up and scaling them proportionally. 1717419924

Brollyy commented 5 months ago

The setup for the editor grid is a little bit more complex, so just scaling all the columns on resize wouldn't work. I was able to apply a workaround that should let the editor grid recover in most cases, but there are still some edge cases in which this situation can happen, unfortunately I'm not entirely sure how to handle them in WPF.