osu icon indicating copy to clipboard operation
osu copied to clipboard

Add support for ruleset-specific blueprints in editor timeline

Open OliBomby opened this issue 1 year ago • 1 comments

RFC. This PR allows rulesets to customize how hit objects are represented in the timeline without having to modify the hit object classes or create additional interfaces. The need for this has been expressed multiple times already in https://github.com/ppy/osu/pull/29441 and https://github.com/ppy/osu/pull/21566

The API is a bit limited because it expects objects of type TimelineHitObjectBlueprint which already defines all the layout and interactions. If more freedom is required, I think TimelineHitObjectBlueprint should not define layout and instead the parts of it should be split into separate classes which could be composited instead.

As an example I've implemented two ruleset-specific changes that make use of this API:

  • Sample points at the tail end of spinners
  • Disabled timeline in mania (as in stable)

The IHasDisplayColour interface can also be eliminated in favour of taiko specific timeline blueprints.

OliBomby avatar Sep 23 '24 16:09 OliBomby

The above comment notwithstanding I'm gonna need @peppy cross-check on this, since I vividly remember him being vehemently opposed to the notion of per-ruleset deviations of any sort on the timeline, although I cannot find the paper trail for this. I think it must have been somewhere around when we started to implement this editor design. I think it could have been in stream twitch chat or something...?

bdach avatar Sep 24 '24 10:09 bdach

A couple of screenshot comparisons in the OP would help to explain what this is aiming to achieve. There may be better ways we can do this. I'm hesitant to make the timeline non-generic.

peppy avatar Oct 23 '24 07:10 peppy

A couple of screenshot comparisons in the OP would help to explain what this is aiming to achieve. There may be better ways we can do this. I'm hesitant to make the timeline non-generic.

I've added a few screenshots and edited images to show what I want to achieve with the timeline.

OliBomby avatar Oct 23 '24 18:10 OliBomby

Thanks. I think it's a valid direction as long as we make sure to keep the UX between rulesets as similar as we can.

peppy avatar Oct 24 '24 09:10 peppy