mirror of
https://github.com/ppy/osu
synced 2025-02-01 19:02:00 +00: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:
parent
67c044773b
commit
8e0a97ca49
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user