From a259b44a82213f8976f39dcb871442741e62f399 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 8 Aug 2022 23:31:21 -0300 Subject: Improve add server for mobile interfaces --- game/misc.rpy | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/game/misc.rpy b/game/misc.rpy index 3de3cf4..ec7fcfb 100644 --- a/game/misc.rpy +++ b/game/misc.rpy @@ -278,17 +278,29 @@ We provide no warranty for custom servers, and they cannot be removed from the s \n\ Remember that selecting a new server will disconnect you from the one you are set to login automatically.\n\ Make sure to note down the password or have provided a valid email, or you'll lose access to your account!\n\n{fast}{w=2.0}Click to continue →" - $ namai=renpy.input("What is the host of the server you want to add?", default="spheres.tmw2.org") + if renpy.android: + $ namai=renpy.call_screen("input_box", "What is the host of the server you want to add?\n\ + Default: spheres.tmw2.org") + else: + $ namai=renpy.input("What is the host of the server you want to add?", default="spheres.tmw2.org") if (namai == ""): $ renpy.full_restart() return - $ porta=renpy.input("In which port is it listening to?", default="61000", allow="0123456789") or 0 + if renpy.android: + $ porta=renpy.call_screen("input_box", "In which port is it listening to?\n\ + Default: 61000") or "61000" + else: + $ porta=renpy.input("In which port is it listening to?", default="61000", allow="0123456789") or 0 $ porta=int(porta) if (porta > 65535 or porta < 1): centered "Ports only go up to 65535." $ renpy.full_restart() return - $ human=renpy.input("What is the human readable name of the server?", default="Custom Server") + if renpy.android: + $ human=renpy.call_screen("input_box", "What is the human readable name of the server?\n\ + Default: Custom Server") or "Custom Server" + else: + $ human=renpy.input("What is the human readable name of the server?", default="Custom Server") if (human == ""): $ renpy.full_restart() return -- cgit v1.2.3-60-g2f50