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() private void updateState()
{ {
bool enabledState = IsActionable || HasSubmenu; hoverClickSounds.Enabled.Value = IsActionable;
Alpha = IsActionable ? 1 : 0.2f;
hoverClickSounds.Enabled.Value = enabledState; if (IsHovered && IsActionable)
Alpha = enabledState ? 1 : 0.2f;
if (IsHovered && enabledState)
{ {
text.BoldText.FadeIn(transition_length, Easing.OutQuint); text.BoldText.FadeIn(transition_length, Easing.OutQuint);
text.NormalText.FadeOut(transition_length, Easing.OutQuint); text.NormalText.FadeOut(transition_length, Easing.OutQuint);