#==============================================================================
# ** Game_Screen
#------------------------------------------------------------------------------
# This class handles screen maintenance data, such as change in color tone,
# flashing, etc. Refer to "$game_screen" for the instance of this class.
#==============================================================================
class Game_Screen
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias_method :hero_zooming_game_screen_intialize, :initialize
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :var_zoom_x, # Should a variable be used to alter zoom x?
:zoom_index_x, # What index has the zoom x value.
:var_zoom_y, # Should a variable be used to alter zoom y?
:zoom_index_y # What index has the zoom y value.
#--------------------------------------------------------------------------
# * Object Initialization !ALIAS!
#--------------------------------------------------------------------------
def initialize
hero_zooming_game_screen_intialize
@var_zoom_x = @var_zoom_y = false
@zoom_index_x = @zoom_index_y = 0
end
end
#==============================================================================
# ** Game_Picture
#------------------------------------------------------------------------------
# This class handles the picture. It's used within the Game_Screen class
# ($game_screen).
#==============================================================================
class Game_Picture
#--------------------------------------------------------------------------
# * Move Picture !OVERRIDE!
# duration : time
# origin : starting point
# x : x-coordinate
# y : y-coordinate
# zoom_x : x directional zoom rate
# zoom_y : y directional zoom rate
# opacity : opacity level
# blend_type : blend method
#--------------------------------------------------------------------------
def move(duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
@duration = duration
@origin = origin
@target_x = x.to_f
@target_y = y.to_f
# If we are using a game_variables to zoom.
@target_zoom_x = $game_screen.var_zoom_x ?
$game_variables[$game_screen.zoom_index_x].to_f : zoom_x.to_f
@target_zoom_y = $game_screen.var_zoom_y ?
$game_variables[$game_screen.zoom_index_y].to_f : zoom_y.to_f
@target_opacity = opacity.to_f
@blend_type = blend_type
end
end