Advertisement
nio_kasgami

dddws

Sep 2nd, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.48 KB | None | 0 0
  1.  def process_escape_character(code, text, pos)
  2.     pattern = /anime\[(.*?),(.*?)\]/
  3.     case code.upcase
  4.     when '$'
  5.       @gold_window.open
  6.     when '.'
  7.       wait(15)
  8.     when '|'
  9.       wait(60)
  10.     when '!'
  11.       input_pause
  12.     when '>'
  13.       @line_show_fast = true
  14.     when '<'
  15.       @line_show_fast = false
  16.     when '^'
  17.       @pause_skip = true
  18.     when pattern
  19.       frame, speed = $1, $2
  20.       start_animation(frame, speed)
  21.     else
  22.       super
  23.     end
  24.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement