1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:07:52 +08:00

Remove usage of HasSubmenu

Property has been removed in the appropriate framework-side PR and
instead folded into `IsActionable`.

See: https://github.com/ppy/osu-framework/pull/5658#discussion_r1114834647
This commit is contained in:
Bartłomiej Dach 2023-05-20 18:02:12 +02:00
parent 67c044773b
commit 8e0a97ca49
No known key found for this signature in database

View File

@ -77,12 +77,10 @@ namespace osu.Game.Graphics.UserInterface
private void updateState()
{
bool enabledState = IsActionable || HasSubmenu;
hoverClickSounds.Enabled.Value = IsActionable;
Alpha = IsActionable ? 1 : 0.2f;
hoverClickSounds.Enabled.Value = enabledState;
Alpha = enabledState ? 1 : 0.2f;
if (IsHovered && enabledState)
if (IsHovered && IsActionable)
{
text.BoldText.FadeIn(transition_length, Easing.OutQuint);
text.NormalText.FadeOut(transition_length, Easing.OutQuint);