Before the start menu, user selects the language in script.rpy
Code: Select all
label splashscreen:
$ result = renpy.imagemap("1.jpg", "2.jpg", [
(0, 0, 480, 160, "Rus"),
(0, 160, 480, 320, "Eng"),
])
if result == "Rus":
$ England = False
jump lang
elif result == "Eng":
$ England = True
jump lang
Code: Select all
label lang:
if England:
jump nenado
$ config.translations = {
"Skip Mode" : u"Режим прокрутки",
"Empty Slot." : u"Здесь пусто!",
"Yes" : u"Да",
"No" : u"Нет",
"Are you sure you want to quit?" : u"Точно хочешь выйти?",
"Quit" : u"Выход",
"Main Menu" : u"В главное меню",
"Load Game" : u"Загрузить",
"Save Game" : u"Сохранить",
"Preferencest" : u"Настройки", # etc.
}
label nenado: return
But there is one problem. I need to get a picture on the background of the main menu has been different for English and Russian versions. How change img in main menu, depending on language?
I found, how to change menu background:
options.rpy
Code: Select all
## The background of the main menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
mm_root = "beginE.jpg",