mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Adding in other input options for Japanese players
This commit is contained in:
parent
da7958ddf0
commit
6c52468897
1 changed files with 52 additions and 20 deletions
|
|
@ -3,6 +3,37 @@ Font.default_name = Language::FONT_WESTERN
|
||||||
|
|
||||||
class Language
|
class Language
|
||||||
def self.create_input
|
def self.create_input
|
||||||
|
if Font.default_name == FONT_J
|
||||||
|
input = Window_NameInput.new
|
||||||
|
input.ok_text = '決定'
|
||||||
|
input.set_mode_buttons [['かな', 'カナ', '英字']]
|
||||||
|
input.character_tables = {
|
||||||
|
[0] => [ # Hiragana
|
||||||
|
"ー","っ","ぁ","ぱ","ば","だ","ざ","が","わ","ら","や","ま","は","な","た","さ","か","あ",
|
||||||
|
"~","ゃ","ぃ","ぴ","び","ぢ","じ","ぎ"," ","り"," ","み","ひ","に","ち","し","き","い",
|
||||||
|
"・","ゅ","ぅ","ぷ","ぶ","づ","ず","ぐ","を","る","ゆ","む","ふ","ぬ","つ","す","く","う",
|
||||||
|
"=","ょ","ぇ","ぺ","べ","で","ぜ","げ"," ","れ"," ","め","へ","ね","て","せ","け","え",
|
||||||
|
"☆","ゎ","ぉ","ぽ","ぼ","ど","ぞ","ご","ん","ろ","よ","も","ほ","の","と","そ","こ","お",
|
||||||
|
],
|
||||||
|
[1] => [ # Katakana
|
||||||
|
"ー","ッ","ァ","パ","バ","ダ","ザ","ガ","ワ","ラ","ヤ","マ","ハ","ナ","タ","サ","カ","ア",
|
||||||
|
"~","ャ","ィ","ピ","ビ","ヂ","ジ","ギ"," ","リ"," ","ミ","ヒ","ニ","チ","シ","キ","イ",
|
||||||
|
"・","ュ","ゥ","プ","ブ","ヅ","ズ","グ","ヲ","ル","ユ","ム","フ","ヌ","ツ","ス","ク","ウ",
|
||||||
|
"=","ョ","ェ","ペ","ベ","デ","ゼ","ゲ"," ","レ"," ","メ","ヘ","ネ","テ","セ","ケ","エ",
|
||||||
|
"☆","ヮ","ォ","ポ","ボ","ド","ゾ","ゴ","ン","ロ","ヨ","モ","ホ","ノ","ト","ソ","コ","オ",
|
||||||
|
],
|
||||||
|
[2] => [ # Latin
|
||||||
|
"A","B","C","D","E","F","G","H","I","a","b","c","d","e","f","g","h","i",
|
||||||
|
"J","K","L","M","N","O","P","Q","R","j","k","l","m","n","o","p","q","r",
|
||||||
|
"S","T","U","V","W","X","Y","Z"," ","s","t","u","v","w","x","y","z"," ",
|
||||||
|
"0","1","2","3","4","+","-","=","&","!","?","'",'"',".",",",":",";","$",
|
||||||
|
"5","6","7","8","9","*","/","#","|","[","]","(",")","<",">","{","}","@",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
input.index = 17 # Start on あ
|
||||||
|
input.table_height = 5
|
||||||
|
input.init
|
||||||
|
else
|
||||||
input = Window_NameInput.new
|
input = Window_NameInput.new
|
||||||
input.set_mode_buttons [[tr('Upper'), tr('Lower')]]
|
input.set_mode_buttons [[tr('Upper'), tr('Lower')]]
|
||||||
input.character_tables = {
|
input.character_tables = {
|
||||||
|
|
@ -25,3 +56,4 @@ class Language
|
||||||
input.init
|
input.init
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue