Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_NameInput < Window_Selectable
- #--------------------------------------------------------------------------
- # * Character Tables (Latin)
- #--------------------------------------------------------------------------
- LATIN1 = [ 'A','B','C','D','E', 'a','b','c','d','e',
- 'F','G','H','I','J', 'f','g','h','i','j',
- 'K','L','M','N','O', 'k','l','m','n','o',
- 'P','Q','R','S','T', 'p','q','r','s','t',
- 'U','V','W','X','Y', 'u','v','w','x','y',
- 'Z',' ',' ',' ',' ', 'z',' ',' ',' ',' ',
- ' ',' ',' ',' ',' ', ' ',' ',' ',' ','OK']
- def initialize(edit_window)
- super(edit_window.x, edit_window.y + edit_window.height + 8,
- edit_window.width, fitting_height(7))
- @edit_window = edit_window
- @page = 0
- @index = 0
- refresh
- update_cursor
- activate
- end
- def character
- @index < 68 ? table[@page][@index] : ""
- end
- def is_page_change?
- false
- end
- def is_ok?
- @index == 69
- end
- def cursor_down(wrap)
- if @index < 60 or wrap
- @index = (index + 10) % 70
- end
- end
- def cursor_up(wrap)
- if @index >= 10 or wrap
- @index = (index + 60) % 70
- end
- end
- def process_jump
- if @index != 69
- @index = 69
- Sound.play_cursor
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement