加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
def make_all_map all_map = RPG::Cache.icon("地图" + $game_map.map_id.to_s) cw = $game_map.width * 32 ch = $game_map.height * 32 src_rect = Rect.new(0, 0, cw, ch) self.contents.blt(0 , 0, all_map, src_rect) w = ($game_map.width / PLAN_Map_Window::ZOOM) * 32 h = ($game_map.height / PLAN_Map_Window::ZOOM) * 32 ret_bitmap = Bitmap.new(w, h) src_rect = Rect.new(0, 0, all_map.width, all_map.height) dest_rect = Rect.new(0, 0, ret_bitmap.width, ret_bitmap.height) ret_bitmap.stretch_blt(dest_rect, all_map, src_rect) all_map.dispose return ret_bitmap end
def make_all_map
all_map = RPG::Cache.icon("地图" + $game_map.map_id.to_s)
cw = $game_map.width * 32
ch = $game_map.height * 32
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(0 , 0, all_map, src_rect)
w = ($game_map.width / PLAN_Map_Window::ZOOM) * 32
h = ($game_map.height / PLAN_Map_Window::ZOOM) * 32
ret_bitmap = Bitmap.new(w, h)
src_rect = Rect.new(0, 0, all_map.width, all_map.height)
dest_rect = Rect.new(0, 0, ret_bitmap.width, ret_bitmap.height)
ret_bitmap.stretch_blt(dest_rect, all_map, src_rect)
all_map.dispose
return ret_bitmap
end
判断个别地图ID,让其缩略图不同与全局缩放比例 全局缩放比例为ZOOM
例如:if map_id =1
w= $game_map.width * 3.2
h= $game_map.width * 3.2
。。。。。。。反正就是个别地图缩放比例不按照ZOOM算。。坐等解答{:2_256:}
|