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:
@@ -834,7 +834,8 @@ setting.lasersopacity.name = Power Laser Opacity
|
|||||||
setting.bridgeopacity.name = Bridge Opacity
|
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 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.
|
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,8 +69,13 @@ 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", () -> {
|
||||||
Core.settings.put("publichost", true);
|
ui.showCustomConfirm("@setting.publichost.name", "@public.confirm.really", "@no", "@yes", () -> {
|
||||||
platform.updateLobby();
|
Core.settings.put("publichost", true);
|
||||||
|
platform.updateLobby();
|
||||||
|
}, () -> {
|
||||||
|
Core.settings.put("publichost", false);
|
||||||
|
platform.updateLobby();
|
||||||
|
});
|
||||||
}, () -> {
|
}, () -> {
|
||||||
Core.settings.put("publichost", false);
|
Core.settings.put("publichost", false);
|
||||||
platform.updateLobby();
|
platform.updateLobby();
|
||||||
|
|||||||
Reference in New Issue
Block a user