1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:53:12 +08:00

AvailabilityPickerItem -> RoomAvailabilityPickerItem

This commit is contained in:
DrabWeb 2018-06-06 05:41:46 -03:00
parent d6e3dc10e9
commit 766e0d1e17

View File

@ -15,7 +15,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
{ {
public class RoomAvailabilityPicker : TabControl<RoomAvailability> public class RoomAvailabilityPicker : TabControl<RoomAvailability>
{ {
protected override TabItem<RoomAvailability> CreateTabItem(RoomAvailability value) => new AvailabilityPickerItem(value); protected override TabItem<RoomAvailability> CreateTabItem(RoomAvailability value) => new RoomAvailabilityPickerItem(value);
protected override Dropdown<RoomAvailability> CreateDropdown() => null; protected override Dropdown<RoomAvailability> CreateDropdown() => null;
public RoomAvailabilityPicker() public RoomAvailabilityPicker()
@ -30,13 +30,13 @@ namespace osu.Game.Screens.Multi.Screens.Match
AddItem(RoomAvailability.InviteOnly); AddItem(RoomAvailability.InviteOnly);
} }
private class AvailabilityPickerItem : TabItem<RoomAvailability> private class RoomAvailabilityPickerItem : TabItem<RoomAvailability>
{ {
private const float transition_duration = 200; private const float transition_duration = 200;
private readonly Box selection; private readonly Box selection;
public AvailabilityPickerItem(RoomAvailability value) : base(value) public RoomAvailabilityPickerItem(RoomAvailability value) : base(value)
{ {
RelativeSizeAxes = Axes.Y; RelativeSizeAxes = Axes.Y;
Width = 120; Width = 120;