mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Add password textbox input
This commit is contained in:
parent
24f330e5c1
commit
4fd6f2101c
@ -146,7 +146,6 @@ namespace osu.Game.Online.Rooms
|
|||||||
|
|
||||||
ChannelId.Value = other.ChannelId.Value;
|
ChannelId.Value = other.ChannelId.Value;
|
||||||
Status.Value = other.Status.Value;
|
Status.Value = other.Status.Value;
|
||||||
Password.Value = other.Password.Value;
|
|
||||||
Availability.Value = other.Availability.Value;
|
Availability.Value = other.Availability.Value;
|
||||||
Type.Value = other.Type.Value;
|
Type.Value = other.Type.Value;
|
||||||
MaxParticipants.Value = other.MaxParticipants.Value;
|
MaxParticipants.Value = other.MaxParticipants.Value;
|
||||||
|
@ -44,6 +44,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
public OsuTextBox NameField, MaxParticipantsField;
|
public OsuTextBox NameField, MaxParticipantsField;
|
||||||
public RoomAvailabilityPicker AvailabilityPicker;
|
public RoomAvailabilityPicker AvailabilityPicker;
|
||||||
public GameTypePicker TypePicker;
|
public GameTypePicker TypePicker;
|
||||||
|
public OsuTextBox PasswordTextBox;
|
||||||
public TriangleButton ApplyButton;
|
public TriangleButton ApplyButton;
|
||||||
|
|
||||||
public OsuSpriteText ErrorText;
|
public OsuSpriteText ErrorText;
|
||||||
@ -190,12 +191,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
},
|
},
|
||||||
new Section("Password (optional)")
|
new Section("Password (optional)")
|
||||||
{
|
{
|
||||||
Alpha = disabled_alpha,
|
Child = PasswordTextBox = new SettingsPasswordTextBox
|
||||||
Child = new SettingsPasswordTextBox
|
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
TabbableContentContainer = this,
|
TabbableContentContainer = this,
|
||||||
ReadOnly = true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -317,6 +316,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
currentRoom.Value.Name.Value = NameField.Text;
|
currentRoom.Value.Name.Value = NameField.Text;
|
||||||
currentRoom.Value.Availability.Value = AvailabilityPicker.Current.Value;
|
currentRoom.Value.Availability.Value = AvailabilityPicker.Current.Value;
|
||||||
currentRoom.Value.Type.Value = TypePicker.Current.Value;
|
currentRoom.Value.Type.Value = TypePicker.Current.Value;
|
||||||
|
currentRoom.Value.Password.Value = PasswordTextBox.Current.Value;
|
||||||
|
|
||||||
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
||||||
currentRoom.Value.MaxParticipants.Value = max;
|
currentRoom.Value.MaxParticipants.Value = max;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user