#==============================================================================
#  Scene_Base
#------------------------------------------------------------------------------
# @Q[ׂ̂ẴV[̃X[p[NXłB
#==============================================================================

class Scene_Base
  #--------------------------------------------------------------------------
  #  C
  #--------------------------------------------------------------------------
  def main
    start                         # Jn
    perform_transition            # gWVs
    post_start                    # Jn㏈
    Input.update                  # ͏XV
    loop do
      Graphics.update             # Q[ʂXV
      Input.update                # ͏XV
      #T14-055 ADD--->
      if not Config::RESIZE_KEY.nil? and Input.trigger?(Config::RESIZE_KEY)
        Resize.toggle
      end
      #<--------------
      update                      # t[XV
      break if $scene != self     # ʂ؂ւ烋[v𒆒f
    end
    Graphics.update
    pre_terminate                 # IO
    Graphics.freeze               # gWV
    terminate                     # I
  end
  #--------------------------------------------------------------------------
  #  Jn
  #--------------------------------------------------------------------------
  def start
  end
  #--------------------------------------------------------------------------
  #  gWVs
  #--------------------------------------------------------------------------
  def perform_transition
    Graphics.transition(10)
  end
  #--------------------------------------------------------------------------
  #  Jn㏈
  #--------------------------------------------------------------------------
  def post_start
  end
  #--------------------------------------------------------------------------
  #  t[XV
  #--------------------------------------------------------------------------
  def update
  end
  #--------------------------------------------------------------------------
  #  IO
  #--------------------------------------------------------------------------
  def pre_terminate
  end
  #--------------------------------------------------------------------------
  #  I
  #--------------------------------------------------------------------------
  def terminate
  end
  #--------------------------------------------------------------------------
  #  ʉʂ̔wiƂĎg߂̃XibvVbg쐬
  #--------------------------------------------------------------------------
  def snapshot_for_background
    $game_temp.background_bitmap.dispose
    $game_temp.background_bitmap = Graphics.snap_to_bitmap
    $game_temp.background_bitmap.blur
  end
  #--------------------------------------------------------------------------
  #  j[ʌn̔wi쐬
  #--------------------------------------------------------------------------
  def create_menu_background
    @menuback_sprite = Sprite.new
    @menuback_sprite.bitmap = $game_temp.background_bitmap
    @menuback_sprite.color.set(16, 16, 16, 128)
    update_menu_background
  end
  #--------------------------------------------------------------------------
  #  j[ʌn̔wi
  #--------------------------------------------------------------------------
  def dispose_menu_background
    @menuback_sprite.dispose
  end
  #--------------------------------------------------------------------------
  #  j[ʌn̔wiXV
  #--------------------------------------------------------------------------
  def update_menu_background
  end
end
