Window Message Question

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!
code is a text string (in this case it's just a single character, but that's still a string of length 1).


upcase is a method of the string class that converts the contents to upper case.


It's got nothing to do with the message window class. It's standard Ruby. You can use .upcase on ANY string variable, anywhere.
thanks shaz! this help me a lot ~

Original thread: https://forums.rpgmakerweb.com/threads/window-message-question.36922/