From 09a84550f4658a155892c5e8ffde59d57ffa84f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=82=A4=EC=97=90=EB=A5=B4?= <44261958+Kieaer@users.noreply.github.com> Date: Sun, 20 Dec 2020 02:31:26 +0900 Subject: [PATCH] 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 Co-authored-by: Patrick 'Quezler' Mounier --- core/assets/bundles/bundle.properties | 3 ++- core/src/mindustry/ui/dialogs/HostDialog.java | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 247fc13932..06ee6cb11d 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -834,7 +834,8 @@ setting.lasersopacity.name = Power Laser Opacity setting.bridgeopacity.name = Bridge Opacity setting.playerchat.name = Display Player Bubble Chat setting.showweather.name = Show Weather Graphics -public.confirm = Do you want to make your game public?\n[accent]Anyone will be able to join 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. 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 diff --git a/core/src/mindustry/ui/dialogs/HostDialog.java b/core/src/mindustry/ui/dialogs/HostDialog.java index 1282d47b7d..ad3b410867 100644 --- a/core/src/mindustry/ui/dialogs/HostDialog.java +++ b/core/src/mindustry/ui/dialogs/HostDialog.java @@ -69,8 +69,13 @@ public class HostDialog extends BaseDialog{ if(steam){ Core.app.post(() -> Core.settings.getBoolOnce("steampublic2", () -> { ui.showCustomConfirm("@setting.publichost.name", "@public.confirm", "@yes", "@no", () -> { - Core.settings.put("publichost", true); - platform.updateLobby(); + ui.showCustomConfirm("@setting.publichost.name", "@public.confirm.really", "@no", "@yes", () -> { + Core.settings.put("publichost", true); + platform.updateLobby(); + }, () -> { + Core.settings.put("publichost", false); + platform.updateLobby(); + }); }, () -> { Core.settings.put("publichost", false); platform.updateLobby();