Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▽△▽ XRXSv12. Ds-In3. Lv Meter ▽△▽
- #
- # publish 2010/ 3/15
- # update - 11/ 1/ 6
- # Original by Chisaii Honya (http://xrxs.at-ninja.jp/Nov12.htm)
- # Translation: Zak (www.rpgmaker-reloaded.de)
- #
- #==============================================================================
- # カスタマイズポイント
- #==============================================================================
- module XRXSVDsIn3
- Width = 80 # Width (till' 52~)
- Color1 = 20 # Transition Colour #1
- Color2 = 21 # Transition Colour #2
- end
- #==============================================================================
- # デザイン・プラグイン
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # ● レベルの描画 [再定義]
- #--------------------------------------------------------------------------
- def draw_actor_level(actor, x, y)
- self.contents.font.color = system_color
- self.contents.draw_text(x, y, 32, WLH, Vocab::level_a)
- self.contents.font.color = normal_color
- self.contents.draw_text(x + 32, y, w - 32, WLH, actor.level, 2)
- end
- #--------------------------------------------------------------------------
- # EXP ゲージの描画
- #--------------------------------------------------------------------------
- def draw_actor_exp_gauge(actor, x, y, width = 120)
- gc1 = text_color(XRXSVDsIn3::Color1)
- gc2 = text_color(XRXSVDsIn3::Color2)
- draw_gauge(x, y, width, actor.exp_percent, gc1, gc2)
- end
- #--------------------------------------------------------------------------
- # * Draw Level
- #--------------------------------------------------------------------------
- def draw_actor_level(actor, x, y)
- draw_actor_exp_gauge(actor, x, y, XRXSVDsIn3::Width)
- change_color(system_color)
- draw_text(x, y, 32, line_height, Vocab::level_a)
- change_color(normal_color)
- draw_text(x + 32, y, 24, line_height, actor.level, 2)
- end
- end
- #==============================================================================
- # 現在EXPパーセントの取得
- #==============================================================================
- class Game_Actor < Game_Battler
- def exp_percent
- return self.exp * 100 / self.next_level_exp
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement