Advertisement
jerry2810

MenuNextExp

Oct 31st, 2015
367
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // MenuNextExp.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc Displays actors required exp to next level in the main menu.
  7.  * @author Jeremy Cannady
  8.  *
  9.  * @help Displays actors required exp to next level in the main menu.
  10.  *
  11.  *
  12.  *
  13. */
  14.  
  15. (function(){
  16. var copyOfDrawActorSimpleStatus = Window_Base.prototype.drawActorSimpleStatus;
  17.  
  18. Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
  19.     copyOfDrawActorSimpleStatus.call(this,actor,x,y,width);
  20.     this.drawActorExp(actor, x, y + this.lineHeight() * 2);
  21. };
  22.  
  23. Window_Base.prototype.drawActorExp = function(actor, x, y, width) {
  24.     width = width || 150;
  25.     this.changeTextColor(this.hpColor(actor));
  26.     this.drawText("To next: " + actor.nextRequiredExp(), x, y, width, 'center');
  27. };
  28. })();
Advertisement
RAW Paste Data Copied
Advertisement