#============================================================================== # □ Window_Status #------------------------------------------------------------------------------ #  ステータス画面で表示する、フル仕様のステータスウィンドウです。 #============================================================================== class Window_Status < Window_Base #-------------------------------------------------------------------------- # ○ リフレッシュ #-------------------------------------------------------------------------- def refresh self.contents.clear draw_actor_face draw_actor_name(@actor, 4, 0) draw_actor_class(@actor, 128, 0) draw_basic_info(128, 32) draw_exp_info(288, 32) draw_parameters(288, 158) draw_equipments(288, 236) end #-------------------------------------------------------------------------- # ○ 能力値の描画 # x : 描画先 X 座標 # y : 描画先 Y 座標 #-------------------------------------------------------------------------- def draw_parameters(x, y) draw_actor_parameter(@actor, x, y + WLH * 0, 0) draw_actor_parameter(@actor, x + 104, y + WLH * 0, 1) draw_actor_parameter(@actor, x, y + WLH * 1, 2) draw_actor_parameter(@actor, x + 104, y + WLH * 1, 3) end #-------------------------------------------------------------------------- # ○ 立ち絵の描画 #-------------------------------------------------------------------------- def draw_actor_face file_name = @actor.face_name + "-#{@actor.character_index + 1}" bitmap = Cache.picture(file_name) self.contents.blt(0, 112, bitmap, bitmap.rect) end #-------------------------------------------------------------------------- # ○ 能力値の描画 # actor : アクター # x : 描画先 X 座標 # y : 描画先 Y 座標 # type : 能力値の種類 (0〜3) #-------------------------------------------------------------------------- def draw_actor_parameter(actor, x, y, type) case type when 0 parameter_name = Vocab::atk parameter_value = actor.atk when 1 parameter_name = Vocab::def parameter_value = actor.def when 2 parameter_name = Vocab::spi parameter_value = actor.spi when 3 parameter_name = Vocab::agi parameter_value = actor.agi end self.contents.font.color = system_color self.contents.draw_text(x, y, 60, WLH, parameter_name) self.contents.font.color = normal_color self.contents.draw_text(x + 60, y, 40, WLH, parameter_value, 2) end end