mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
More things for the new languages, mainly the pwd files and the wallpaper
This commit is contained in:
parent
765cf99e1d
commit
fa03511289
2 changed files with 35 additions and 8 deletions
|
|
@ -32,6 +32,23 @@ end
|
|||
|
||||
module Wallpaper
|
||||
def self.set_persistent(name, color)
|
||||
|
||||
if (name == 'save_w32')
|
||||
case $persistent.langcode
|
||||
when 'fr'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
when 'pt_BR'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
when 'es'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
when 'ja'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
when 'ko'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
when 'zh_CN'
|
||||
name = $persistent.langcode + "\\" + name
|
||||
end
|
||||
end
|
||||
$game_oneshot.wallpaper = name
|
||||
$game_oneshot.wallpaper_color = color
|
||||
Wallpaper.set(name, color)
|
||||
|
|
|
|||
|
|
@ -473,17 +473,27 @@ module Script
|
|||
end
|
||||
|
||||
def self.password1
|
||||
copy_file("Graphics\\Fogs\\_\\scenario1\\pw1.png", Oneshot::DOCS_PATH + "\\ONESHOT_password1.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario1\\pw2.png", Oneshot::DOCS_PATH + "\\ONESHOT_password2.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario1\\pw3.png", Oneshot::DOCS_PATH + "\\ONESHOT_password3.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario1\\pw4.png", Oneshot::DOCS_PATH + "\\ONESHOT_password4.png")
|
||||
locale = $persistent.langcode
|
||||
if !Language::LANGUAGES.include? locale
|
||||
locale = 'en'
|
||||
end
|
||||
source_dir = "Graphics\\Fogs\\_\\scenario1\\" + locale.downcase
|
||||
copy_file(source_dir + "\\pw1.png", Oneshot::DOCS_PATH + "\\ONESHOT_password1.png")
|
||||
copy_file(source_dir + "\\pw2.png", Oneshot::DOCS_PATH + "\\ONESHOT_password2.png")
|
||||
copy_file(source_dir + "\\pw3.png", Oneshot::DOCS_PATH + "\\ONESHOT_password3.png")
|
||||
copy_file(source_dir + "\\pw4.png", Oneshot::DOCS_PATH + "\\ONESHOT_password4.png")
|
||||
end
|
||||
|
||||
def self.password2
|
||||
copy_file("Graphics\\Fogs\\_\\scenario2\\pw1.png", Oneshot::DOCS_PATH + "\\ONESHOT_password1.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario2\\pw2.png", Oneshot::DOCS_PATH + "\\ONESHOT_password2.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario2\\pw3.png", Oneshot::DOCS_PATH + "\\ONESHOT_password3.png")
|
||||
copy_file("Graphics\\Fogs\\_\\scenario2\\pw4.png", Oneshot::DOCS_PATH + "\\ONESHOT_password4.png")
|
||||
locale = $persistent.langcode
|
||||
if !Language::LANGUAGES.include? locale
|
||||
locale = 'en'
|
||||
end
|
||||
source_dir = "Graphics\\Fogs\\_\\scenario2\\" + locale.downcase
|
||||
copy_file(source_dir + "\\pw1.png", Oneshot::DOCS_PATH + "\\ONESHOT_password1.png")
|
||||
copy_file(source_dir + "\\pw2.png", Oneshot::DOCS_PATH + "\\ONESHOT_password2.png")
|
||||
copy_file(source_dir + "\\pw3.png", Oneshot::DOCS_PATH + "\\ONESHOT_password3.png")
|
||||
copy_file(source_dir + "\\pw4.png", Oneshot::DOCS_PATH + "\\ONESHOT_password4.png")
|
||||
end
|
||||
|
||||
=begin
|
||||
|
|
|
|||
Loading…
Reference in a new issue