Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_Selectable < Window_Base
- def update
- super
- if cursor_movable?
- last_index = @index
- if Input.repeat?(Input::DOWN) or Keys.repeat?(Keys::S)
- tmp = Keys.trigger?(Keys::S)
- tmp2 = Input.trigger?(Input::DOWN)
- if tmp == true or tmp2 == true
- cursor_down(true)
- else
- cursor_down
- end
- end
- if Input.repeat?(Input::UP) or Keys.repeat?(Keys::W)
- tmp = Keys.trigger?(Keys::W)
- tmp2 = Input.trigger?(Input::UP)
- if tmp == true or tmp2 == true
- cursor_up(true)
- else
- cursor_up
- end
- end
- if Input.repeat?(Input::LEFT) or Keys.repeat?(Keys::A)
- tmp = Keys.trigger?(Keys::A)
- tmp2 = Input.trigger?(Input::LEFT)
- if tmp == true or tmp2 == true
- cursor_left(true)
- else
- cursor_left
- end
- end
- if Input.repeat?(Input::RIGHT) or Keys.repeat?(Keys::D)
- tmp = Keys.trigger?(Keys::D)
- tmp2 = Input.trigger?(Input::RIGHT)
- if tmp == true or tmp2 == true
- cursor_right(true)
- else
- cursor_right
- end
- end
- #if Input.repeat?(Input::R)
- # cursor_pagedown
- #end
- #if Input.repeat?(Input::L)
- # cursor_pageup
- #end
- if @index != last_index
- Sound.play_cursor
- end
- end
- update_cursor
- call_update_help
- end
- end
RAW Paste Data