1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 19:12:57 +08:00

Fix more naming

This commit is contained in:
Dean Herbert 2019-10-14 21:34:16 +09:00
parent 89f270a19a
commit 4822496c13

View File

@ -37,23 +37,23 @@ namespace osu.Game.Overlays.Comments
private class SortTabItem : TabItem<CommentsSortCriteria> private class SortTabItem : TabItem<CommentsSortCriteria>
{ {
private readonly TabContent content; private readonly TabButton button;
public SortTabItem(CommentsSortCriteria value) public SortTabItem(CommentsSortCriteria value)
: base(value) : base(value)
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Child = content = new TabContent(value) Child = button = new TabButton(value)
{ {
Active = { BindTarget = Active } Active = { BindTarget = Active }
}; };
} }
protected override void OnActivated() => content.Activate(); protected override void OnActivated() => button.Activate();
protected override void OnDeactivated() => content.Deactivate(); protected override void OnDeactivated() => button.Deactivate();
private class TabContent : HeaderButton private class TabButton : HeaderButton
{ {
private const int text_size = 14; private const int text_size = 14;
@ -64,7 +64,7 @@ namespace osu.Game.Overlays.Comments
private readonly SpriteText text; private readonly SpriteText text;
public TabContent(CommentsSortCriteria value) public TabButton(CommentsSortCriteria value)
{ {
Add(text = new SpriteText Add(text = new SpriteText
{ {