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,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