# ▽△▽ XRXSv40. MeLT_Map.MF. マップフレーム機能 ▽△▽ # # publish 2010/ 4/27 # update - # #============================================================================== # マップフレームスプライトセット #============================================================================== class Spriteset_MapFrame def initialize @sprite = Sprite.new @sprite.z = 48 @sprite.x = Graphics.width / 2 @sprite.y = Graphics.height / 2 refresh end def refresh bitmap = $game_map.mapframe @sprite.bitmap = bitmap if bitmap @sprite.bitmap = bitmap @sprite.ox = bitmap.width / 2 @sprite.oy = bitmap.height / 2 end end def dispose @sprite.dispose end end #============================================================================== # マップフレームの取得 (ビットマップで取得する) #============================================================================== class Game_Map def mapframe $data_mapinfos = load_data("Data/MapInfos.rvdata") if $data_mapinfos.nil? id = self.map_id bitmap = nil while id >= 1 name = sprintf("MapFrame%s", id) begin bitmap = Cache.picture(name) break rescue bitmap = nil end id = $data_mapinfos[id].parent_id end return bitmap end end