summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-18 13:17:39 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-18 13:17:39 -0300
commit7f5c1d44791f6947023bb1cd7527341c9f562d3d (patch)
tree49c9fe701fceb9db70a43e6f062009896a788f48
parent5474d88f166431f40467ea7c7d44392e14b2d4e3 (diff)
downloadrenpy-7f5c1d44791f6947023bb1cd7527341c9f562d3d.tar.gz
renpy-7f5c1d44791f6947023bb1cd7527341c9f562d3d.tar.bz2
renpy-7f5c1d44791f6947023bb1cd7527341c9f562d3d.tar.xz
renpy-7f5c1d44791f6947023bb1cd7527341c9f562d3d.zip
Prepare the preference screen for translation support
-rw-r--r--game/options.rpy5
-rw-r--r--game/screens.rpy14
2 files changed, 13 insertions, 6 deletions
diff --git a/game/options.rpy b/game/options.rpy
index 906d9f7..605161f 100644
--- a/game/options.rpy
+++ b/game/options.rpy
@@ -53,6 +53,11 @@ define config.has_autosave = False
define config.hard_rollback_limit = 0
define config.rollback_enabled = False
+## Some Ren'Py features which must be enabled
+
+#define config.locale_to_language_function =
+#define config.enable_language_autodetect = True
+
## Sounds and music ############################################################
## These three variables control which mixers are shown to the player by
diff --git a/game/screens.rpy b/game/screens.rpy
index 099bcd1..c246ec1 100644
--- a/game/screens.rpy
+++ b/game/screens.rpy
@@ -661,6 +661,12 @@ screen preferences():
_("Disabled")):
action ToggleVariable("persistent.discord")
null height 10
+ label _("Steam Login")
+ textbutton ifte(persistent.steam,
+ _("Enabled"),
+ _("Disabled")):
+ action ToggleVariable("persistent.steam")
+ null height 10
label _("Game Client")
textbutton _("ManaPlus"):
action SetVariable("persistent.client", "manaplus")
@@ -670,13 +676,9 @@ screen preferences():
vbox:
style_prefix "check"
- label _("Steam Login")
- textbutton ifte(persistent.steam,
- _("Enabled"),
- _("Disabled")):
- action ToggleVariable("persistent.steam")
+ label _("Language")
+ textbutton "English" action Language(None)
null height 10
-
label _("Skip")
textbutton _("Unseen Text") action Preference("skip", "toggle")
textbutton _("After Choices") action Preference("after choices", "toggle")