Adding in other input options for Japanese players

This commit is contained in:
mshirt 2017-08-30 23:53:45 -07:00
parent da7958ddf0
commit 6c52468897

View file

@ -3,25 +3,57 @@ Font.default_name = Language::FONT_WESTERN
class Language class Language
def self.create_input def self.create_input
input = Window_NameInput.new if Font.default_name == FONT_J
input.set_mode_buttons [[tr('Upper'), tr('Lower')]] input = Window_NameInput.new
input.character_tables = { input.ok_text = '決定'
[0] => [ # Case: Upper input.set_mode_buttons [['かな', 'カナ', '英字']]
"A","B","C","D","E","F","G","H","I","J", input.character_tables = {
"K","L","M","N","O","P","Q","R","S","T", [0] => [ # Hiragana
"U","V","W","X","Y","Z"," ",".",",","-", "","","","","","","","","","","","","","","","","","",
"0","1","2","3","4","5","6","7","8","9", "","","","","","","",""," ",""," ","","","","","","","",
"!","?",'"',"'","/","&","[","]","(",")", "","","","","","","","","","","","","","","","","","",
], "","","","","","","",""," ",""," ","","","","","","","",
[1] => [ # Case: Lower "","","","","","","","","","","","","","","","","","",
"a","b","c","d","e","f","g","h","i","j", ],
"k","l","m","n","o","p","q","r","s","t", [1] => [ # Katakana
"u","v","w","x","y","z"," ",".",",","-", "","","","","","","","","","","","","","","","","","",
"0","1","2","3","4","5","6","7","8","9", "","","","","","","",""," ",""," ","","","","","","","",
"!","?",'"',"'","/","&","[","]","(",")", "","","","","","","","","","","","","","","","","","",
], "","","","","","","",""," ",""," ","","","","","","","",
} "","","","","","","","","","","","","","","","","","",
input.table_height = 5 ],
input.init [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.set_mode_buttons [[tr('Upper'), tr('Lower')]]
input.character_tables = {
[0] => [ # Case: Upper
"A","B","C","D","E","F","G","H","I","J",
"K","L","M","N","O","P","Q","R","S","T",
"U","V","W","X","Y","Z"," ",".",",","-",
"0","1","2","3","4","5","6","7","8","9",
"!","?",'"',"'","/","&","[","]","(",")",
],
[1] => [ # Case: Lower
"a","b","c","d","e","f","g","h","i","j",
"k","l","m","n","o","p","q","r","s","t",
"u","v","w","x","y","z"," ",".",",","-",
"0","1","2","3","4","5","6","7","8","9",
"!","?",'"',"'","/","&","[","]","(",")",
],
}
input.table_height = 5
input.init
end
end end
end end