Guest User

Untitled

a guest
Nov 22nd, 2013
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Window_Selectable < Window_Base
  2.   def update
  3.     super
  4.     if cursor_movable?
  5.       last_index = @index
  6.       if Input.repeat?(Input::DOWN) or Keys.repeat?(Keys::S)
  7.         tmp = Keys.trigger?(Keys::S)
  8.         tmp2 = Input.trigger?(Input::DOWN)
  9.         if tmp == true or tmp2 == true
  10.           cursor_down(true)
  11.         else
  12.           cursor_down
  13.         end
  14.       end
  15.       if Input.repeat?(Input::UP) or Keys.repeat?(Keys::W)
  16.         tmp = Keys.trigger?(Keys::W)
  17.         tmp2 = Input.trigger?(Input::UP)
  18.         if tmp == true or tmp2 == true
  19.           cursor_up(true)
  20.         else
  21.           cursor_up
  22.         end
  23.       end
  24.       if Input.repeat?(Input::LEFT) or Keys.repeat?(Keys::A)
  25.         tmp = Keys.trigger?(Keys::A)
  26.         tmp2 = Input.trigger?(Input::LEFT)
  27.         if tmp == true or tmp2 == true
  28.           cursor_left(true)
  29.         else
  30.           cursor_left
  31.         end
  32.       end
  33.       if Input.repeat?(Input::RIGHT) or Keys.repeat?(Keys::D)
  34.         tmp = Keys.trigger?(Keys::D)
  35.         tmp2 = Input.trigger?(Input::RIGHT)
  36.         if tmp == true or tmp2 == true
  37.           cursor_right(true)
  38.         else
  39.           cursor_right
  40.         end
  41.       end
  42.       #if Input.repeat?(Input::R)
  43.       #  cursor_pagedown
  44.       #end
  45.       #if Input.repeat?(Input::L)
  46.       #  cursor_pageup
  47.       #end
  48.       if @index != last_index
  49.         Sound.play_cursor
  50.       end
  51.     end
  52.     update_cursor
  53.     call_update_help
  54.   end
  55. end
RAW Paste Data