Host dialog name selection
This commit is contained in:
@@ -70,8 +70,8 @@ text.continue = Continue
|
||||
text.nextmission = Next Mission
|
||||
text.maps.none = [LIGHT_GRAY]No maps found!
|
||||
text.about.button = About
|
||||
text.name = Player Name:
|
||||
text.noname = Pick a[accent] player name[] before connecting.
|
||||
text.name = Name:
|
||||
text.noname = Pick in a[accent] player name[] first.
|
||||
text.filename = File Name:
|
||||
text.unlocked = New Block Unlocked!
|
||||
text.unlocked.plural = New Blocks Unlocked!
|
||||
|
||||
@@ -50,6 +50,11 @@ public class HostDialog extends FloatingDialog{
|
||||
content().add().width(65f);
|
||||
|
||||
content().addButton("$text.host", () -> {
|
||||
if(Settings.getString("name").trim().isEmpty()){
|
||||
ui.showInfo("$text.noname");
|
||||
return;
|
||||
}
|
||||
|
||||
ui.loadfrag.show("$text.hosting");
|
||||
Timers.runTask(5f, () -> {
|
||||
try{
|
||||
|
||||
Reference in New Issue
Block a user