加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
无法切换小地图# ■ Window_Map #============================================================================== #显示小地图 #============================================================================== class Window_Map < Window_Base #-------------------------------------------------------------------------- # ● 初始化窗口 #-------------------------------------------------------------------------- def initialize super(0, 0, 160, 160) self.contents = Bitmap.new(width - 32, height - 32) @bmp = Bitmap.new("Graphics/Map/map" + $game_map.map_id.to_s) refresh end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear rect = Rect.new(0, 0, 128, 128) self.contents.blt(0, 0, @bmp, rect, 160) end end def update if $game_map.map_id != $game_temp.player_new_map_id $game_temp.player_new_map_id = $game_map.map_id refresh end end #--------------------------------------------------------------------------
# ■ Window_Map
#==============================================================================
#显示小地图
#==============================================================================
class Window_Map < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 160)
self.contents = Bitmap.new(width - 32, height - 32)
@bmp = Bitmap.new("Graphics/Map/map" + $game_map.map_id.to_s)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
rect = Rect.new(0, 0, 128, 128)
self.contents.blt(0, 0, @bmp, rect, 160)
end
end
def update
if $game_map.map_id != $game_temp.player_new_map_id
$game_temp.player_new_map_id = $game_map.map_id
refresh
end
end
#--------------------------------------------------------------------------
|