Hey, gostava de saber como faço para tonalizar a tela via script, em que parte do script coloco:
#==============================================================================
# ** Lima
#------------------------------------------------------------------------------
# #==============================================================================
class Lima < Window_Base
#----------------------------------------------------------------------------
# * Inicialização do objeto
#----------------------------------------------------------------------------
def initialize
super(0, 0, 110, 75)
#self.windowskin = Cache.system("")
update
end
#----------------------------------------------------------------------------
# * Atualização do objeto
#----------------------------------------------------------------------------
def update
super
self.contents.clear
self.contents.draw_text(60, -12, 200, 50, sprintf("%02d",$game_variables[1]))
self.contents.draw_text(40, -13.5, 200, 50, " :")
self.contents.draw_text(30, -12, 200, 50, sprintf("%02d",$game_variables[2]))
self.contents.draw_text(0, -12, 200, 50, sprintf("%02d",$game_variables[3]))
self.contents.draw_text(35, 12, 200, 50, sprintf("%04d",$game_variables[5]))
######################
if $game_variables[4] == 4
draw_icon(1000, 0, 25)
else
if
$game_variables[4] == 1
draw_icon(1001, 0, 25)
end
end
######################
end
end
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
# Esta classe executa o processamento da tela de mapa.
#==============================================================================
class Scene_Map < Scene_Base
alias lima_main main
alias lima_update update
#----------------------------------------------------------------------------
# * Processo principal
#----------------------------------------------------------------------------
def main
@chama = Lima.new
lima_main
@chama.dispose
end
#----------------------------------------------------------------------------
# * Atualização do processo
#----------------------------------------------------------------------------
def update
lima_update
@chama.close if Input.trigger?(:X) && @chama.open?
@chama.open if Input.trigger?(:X) && @chama.close?
unless $game_variables[11] == @old_variable1
@old_variable1= $game_variables[1]
@chama.update
end
end
end