Hi guys I wanted to ditche away the window message simply because I don't really love this method but now I wanted to see what I should keep from the default for make it usable I meet a doubt
#-------------------------------------------------------------------------- # * Control Character Processing # code : the core of the control character # e.g. "C" in the case of the control character \C[1]. # text : character string buffer in drawing processing (destructive) # pos : draw position {:x, :y, :new_x, :height} #-------------------------------------------------------------------------- def process_escape_character(code, text, pos) case code.upcase when '$' @gold_window.open when '.' wait(15) when '|' wait(60) when '!' input_pause when '>' @line_show_fast = true when '<' @line_show_fast = false when '^' @pause_skip = true else super end endthese little code
case code.upcase I was wounder...this impossible to use it out of the window class right
I was just wounder about this
and if no I can use it out of the window class can you explain me a method who permit me to replicate this code in my own personnal class?
thanks for your further answer!
#-------------------------------------------------------------------------- # * Control Character Processing # code : the core of the control character # e.g. "C" in the case of the control character \C[1]. # text : character string buffer in drawing processing (destructive) # pos : draw position {:x, :y, :new_x, :height} #-------------------------------------------------------------------------- def process_escape_character(code, text, pos) case code.upcase when '$' @gold_window.open when '.' wait(15) when '|' wait(60) when '!' input_pause when '>' @line_show_fast = true when '<' @line_show_fast = false when '^' @pause_skip = true else super end endthese little code
case code.upcase I was wounder...this impossible to use it out of the window class right
I was just wounder about this
and if no I can use it out of the window class can you explain me a method who permit me to replicate this code in my own personnal class?
thanks for your further answer!