summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-08-08 23:31:21 -0300
committerJesusaves <cpntb1@ymail.com>2022-08-08 23:31:21 -0300
commita259b44a82213f8976f39dcb871442741e62f399 (patch)
tree098b61a788d6b6dd7655fe589896a40d50970f9c
parent026a29be8e1f1c78c91c0d0f6df69774dd529237 (diff)
downloadclient-a259b44a82213f8976f39dcb871442741e62f399.tar.gz
client-a259b44a82213f8976f39dcb871442741e62f399.tar.bz2
client-a259b44a82213f8976f39dcb871442741e62f399.tar.xz
client-a259b44a82213f8976f39dcb871442741e62f399.zip
Improve add server for mobile interfaces
-rw-r--r--game/misc.rpy18
1 files 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