#============================================================================== # ■ XP-RGSS-7 スキルアップデートOption.Menu [Ver.1.1.0] by Claimh #------------------------------------------------------------------------------ # メニュー画面表示用のオプションです。 # このスクリプト内のメソッドを使えば、メニュー上にスキル経験値が表示できます #============================================================================== class Window_Base < Window #-------------------------------------------------------------------------- # ● スキル経験値の表示(使用回数/NEXT) # actor : アクター # skill_id : スキルID # x : 描画先 X 座標 # y : 描画先 Y 座標 #-------------------------------------------------------------------------- def draw_skill_exp(actor, skill_id, x, y) actor_skill = actor.skill[skill_id] next_exp = actor_skill.level_limit? ? "−" : actor_skill.next_exp.to_s skill_exp = actor_skill.use_cnt.to_s + " / " + next_exp self.contents.draw_text(x, y, 100, 32, skill_exp) end #-------------------------------------------------------------------------- # ● 次のレベルまでのスキル経験値の表示 # actor : アクター # skill_id : スキルID # x : 描画先 X 座標 # y : 描画先 Y 座標 #-------------------------------------------------------------------------- def draw_skill_next(actor, skill_id, x, y) actor_skill = actor.skill[skill_id] next_exp = actor_skill.level_limit? ? "−" : actor_skill.diff_next_exp.to_s self.contents.draw_text(x, y, 100, 32, next_exp) end end