| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 4 |
| 经验 | |
| 最后登录 | 2023-5-25 |
| 在线时间 | 377 小时 |
- 梦石
- 0
- 星屑
- 445
- 在线时间
- 377 小时
- 注册时间
- 2012-11-5
- 回帖
- 196
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
无法切换小地图[pre lang="ruby"]# ■ 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
#--------------------------------------------------------------------------
[/pre] |
-
|