# ■ 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 #--------------------------------------------------------------------------
捕获.JPG (109.56 KB, 下载次数: 23)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |