# ▽△▽ XRXSv17-AS1. クリアーステータス ▽△▽ # # publish 2010/ 3/25 # update - /27 # #============================================================================== # デザイン変更 #============================================================================== class Window_SkillStatus < Window_Base WLH = 48 def refresh self.contents.clear x1 = 84 x2 = 172 y1 = 0 y2 = 24 meter_width = 128 x5 = x2 + meter_width + 8 face = get_actor_face(@actor, 94, 48) self.contents.blt(-12, 0, face, face.rect) draw_actor_name(@actor, x1, 0) draw_actor_level(@actor, x1, y2) draw_actor_hp(@actor, x2, y1 - 1, meter_width) draw_actor_mp(@actor, x2, y2 - 2, meter_width) draw_actor_state(@actor, x5, y2, 96) self.opacity = 0 self.x = -16 self.y = -8 end end #============================================================================== # 指定領域内での アクターの顔グラフィックの取得 #============================================================================== class Window_Base < Window def get_actor_face(actor, drawable_width = 96, drawable_height = 96) drawable_width = [drawable_width, 96].min drawable_height = [drawable_height, 96].min face = Cache.face(actor.face_name) x = (actor.face_index % 4 * 96) + (96 - drawable_width ) / 2 y = (actor.face_index / 4 * 96) + (96 - drawable_height) / 4 face_rect = Rect.new(x, y, drawable_width, drawable_height) bitmap = Bitmap.new(drawable_width, drawable_height) bitmap.blt(0, 0, face, face_rect) face.dispose return bitmap end end