1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:15:45 +08:00

add sound to tab controls

This commit is contained in:
Jamie Taylor 2021-06-18 17:26:28 +09:00
parent 752d0a9f0b
commit 4feb7c848f
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
4 changed files with 6 additions and 3 deletions

View File

@ -22,6 +22,9 @@ namespace osu.Game.Graphics.UserInterface
[Description("songselect")]
SongSelect,
[Description("tabselect")]
TabSelect,
[Description("scrolltotop")]
ScrollToTop
}

View File

@ -172,7 +172,7 @@ namespace osu.Game.Graphics.UserInterface
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
},
new HoverClickSounds()
new HoverClickSounds(HoverSampleSet.TabSelect)
};
}

View File

@ -76,7 +76,7 @@ namespace osu.Game.Graphics.UserInterface
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
},
new HoverClickSounds()
new HoverClickSounds(HoverSampleSet.TabSelect)
};
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Torus, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);

View File

@ -99,7 +99,7 @@ namespace osu.Game.Overlays
ExpandedSize = 5f,
CollapsedSize = 0
},
new HoverClickSounds()
new HoverClickSounds(HoverSampleSet.TabSelect)
};
}