Ask double pop-ups to create a public server (#4042)

* Double check public host dialog

* Update bundle.properties

* Update core/src/mindustry/ui/dialogs/HostDialog.java

Co-authored-by: Patrick 'Quezler' Mounier <Quezler@me.com>

Co-authored-by: Patrick 'Quezler' Mounier <Quezler@me.com>
This commit is contained in:
키에르
2020-12-19 12:31:26 -05:00
committed by GitHub
co-authored by Patrick 'Quezler' Mounier
parent 9e05f7604d
commit 09a84550f4
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -835,6 +835,7 @@ setting.bridgeopacity.name = Bridge Opacity
setting.playerchat.name = Display Player Bubble Chat setting.playerchat.name = Display Player Bubble Chat
setting.showweather.name = Show Weather Graphics setting.showweather.name = Show Weather Graphics
public.confirm = Do you want to make your game public?\n[accent]Anyone will be able to jo in your games.\n[lightgray]This can be changed later in Settings->Game->Public Game Visibility. public.confirm = Do you want to make your game public?\n[accent]Anyone will be able to jo in your games.\n[lightgray]This can be changed later in Settings->Game->Public Game Visibility.
public.confirm.really = If you want to play with friends, use [green]Invite Friend[] instead of a [scarlet]Public server[]!\nDo you [accent]really want to make your game [scarlet]public[]?
public.beta = Note that beta versions of the game cannot make public lobbies. public.beta = Note that beta versions of the game cannot make public lobbies.
uiscale.reset = UI scale has been changed.\nPress "OK" to confirm this scale.\n[scarlet]Reverting and exiting in[accent] {0}[] seconds... uiscale.reset = UI scale has been changed.\nPress "OK" to confirm this scale.\n[scarlet]Reverting and exiting in[accent] {0}[] seconds...
uiscale.cancel = Cancel & Exit uiscale.cancel = Cancel & Exit
@@ -69,12 +69,17 @@ public class HostDialog extends BaseDialog{
if(steam){ if(steam){
Core.app.post(() -> Core.settings.getBoolOnce("steampublic2", () -> { Core.app.post(() -> Core.settings.getBoolOnce("steampublic2", () -> {
ui.showCustomConfirm("@setting.publichost.name", "@public.confirm", "@yes", "@no", () -> { ui.showCustomConfirm("@setting.publichost.name", "@public.confirm", "@yes", "@no", () -> {
ui.showCustomConfirm("@setting.publichost.name", "@public.confirm.really", "@no", "@yes", () -> {
Core.settings.put("publichost", true); Core.settings.put("publichost", true);
platform.updateLobby(); platform.updateLobby();
}, () -> { }, () -> {
Core.settings.put("publichost", false); Core.settings.put("publichost", false);
platform.updateLobby(); platform.updateLobby();
}); });
}, () -> {
Core.settings.put("publichost", false);
platform.updateLobby();
});
})); }));
if(Version.modifier.contains("beta") || Version.modifier.contains("alpha")){ if(Version.modifier.contains("beta") || Version.modifier.contains("alpha")){