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 support for combo counter from legacy mania skins #28391

Closed
wants to merge 1 commit into from

Conversation

TheEZIC
Copy link

@TheEZIC TheEZIC commented Jun 4, 2024

Move all code from LegacyComboCounter to LegacyBaseComboCounter. We don't need ISerialisableDrawable implementation for LegacyManiaComboCounter. I made it like this because we can't move mania ComboCounter without configuration changes.

Made LegacyManiaComboCounter from LegacyBaseComboCounter.

Move logic of hiding default combo counter element from CatchLegacySkinTransformer to LegacySkinTransformer because we need to hide default combo counter in mania as well.

Add ShouldRoll property to BaseComboCounter. That property toggles rolling of combo counter and removes 'x' symbol at the end of it.

@TheEZIC TheEZIC force-pushed the mania-legacy-combo-counter branch from 95ad319 to 11f40c4 Compare June 4, 2024 23:13
@longnguyen2004
Copy link

Is this related to #26254?

@bdach
Copy link
Collaborator

bdach commented Jun 5, 2024

Is this related to #26254?

It sure looks like this to me, and some of the changes made in this pull on a 5-second skim make it dead-on-arrival as far as I'm concerned.

The other series has the right idea on how to execute this. This PR does not.

@bdach bdach closed this Jun 5, 2024
Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to elaborate on what I find objectionable about this change for future reference.

We added ruleset-specific HUD layers for the express purpose of implementing this sort of thing. So bypassing them entirely via means such as the ones introduced in this PR will be met with instant rejection.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class should not exist

@@ -34,5 +37,29 @@ protected LegacySkinTransformer(ISkin skin)

return base.GetSample(sampleInfo);
}

protected Drawable? ReplaceBaseComboCounter(ISkinComponentLookup lookup)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method cannot exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants