add sound to tab controls

This commit is contained in:
Jamie Taylor
2021-06-18 17:26:28 +09:00
parent 752d0a9f0b
commit 4feb7c848f
4 changed files with 6 additions and 3 deletions

View File

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

View File

@ -172,7 +172,7 @@ namespace osu.Game.Graphics.UserInterface
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Anchor = 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, Origin = Anchor.BottomLeft,
Anchor = 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); 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, ExpandedSize = 5f,
CollapsedSize = 0 CollapsedSize = 0
}, },
new HoverClickSounds() new HoverClickSounds(HoverSampleSet.TabSelect)
}; };
} }