#=============================================================================== #-----------------------------= Game Frame =------------------------------------ #-----------------------------= by: DrDhoom =----------------------------------- # Version: 1.0 # Date Published: 10 - 01 - 2012 #------------------------------------------------------------------------------- # Introduction: # You know what this is for. #------------------------------------------------------------------------------- # How to use: # - Insert this script above Main and Below Requirment Script # - Put Game Frame graphic at Graphics>System folder, then change the filename # to "game_frame" #------------------------------------------------------------------------------- #===============================================================================
module Dhoom module GameFrame #Don't draw the Game Frame at specified Scene #EXCLUDE_SCENE = [Scene Name, Scene Name, ...] EXCLUDE_SCENE = [Scene_Title, Scene_Item] end end
class Scene_Base
include Dhoom::GameFrame
alias dhoom_game_frame_start start alias dhoom_game_frame_update update alias dhoom_game_frame_terminate terminate
def start create_game_frame dhoom_game_frame_start end
def update update_game_frame dhoom_game_frame_update end
def terminate dispose_game_frame dhoom_game_frame_terminate end
def create_game_frame for scene in EXCLUDE_SCENE return if $scene.is_a?(scene) end @game_frame = Sprite.new @game_frame.bitmap = Cache.system("game_frame") @game_frame.z = 9999999 end
def update_game_frame @game_frame.z = 9999999 if @game_frame != nil end
def dispose_game_frame @game_frame.dispose if @game_frame != nil end end