mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Merge pull request #22716 from peppy/fix-menu-state-display
Update in line with framework menu handling changes
This commit is contained in:
commit
7fa8a1148d
@ -77,10 +77,10 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
private void updateState()
|
private void updateState()
|
||||||
{
|
{
|
||||||
hoverClickSounds.Enabled.Value = !Item.Action.Disabled;
|
hoverClickSounds.Enabled.Value = IsActionable;
|
||||||
Alpha = Item.Action.Disabled ? 0.2f : 1;
|
Alpha = IsActionable ? 1 : 0.2f;
|
||||||
|
|
||||||
if (IsHovered && !Item.Action.Disabled)
|
if (IsHovered && IsActionable)
|
||||||
{
|
{
|
||||||
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