Advertisement
cekobico

cekobico's Celestial Menu

Jun 4th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*:
  2.  * @plugindesc Celestial Menu
  3.  * @author cekobico with excerpts from SumRndDde's Tutorial
  4.  * @help
  5.  */
  6.  
  7. (function(){
  8.  
  9.     var _Scene_Menu_Create = Scene_Menu.prototype.create;
  10.     Scene_Menu.prototype.create = function() {
  11.        _Scene_Menu_Create.call(this);
  12.         var cekoPaddingH = Graphics.boxWidth/16;
  13.         var cekoPaddingV = Graphics.boxHeight/16;
  14.         this._commandWindow.x = cekoPaddingH;
  15.         this._commandWindow.y = cekoPaddingV;
  16.         var cekoCommandPositionX = this._commandWindow.x + this._commandWindow.width;
  17.         this._statusWindow.x = cekoCommandPositionX + (cekoPaddingH/2);
  18.         this._statusWindow.y = cekoPaddingV;
  19.         this._statusWindow.width = Graphics.boxWidth - ((cekoPaddingH*5)+(cekoPaddingH/2));
  20.         this._statusWindow.height = this._commandWindow.height;
  21.         var cekoStatusPositionX = cekoCommandPositionX + cekoPaddingH;
  22.         var cekoStatusPositionY = this._statusWindow.y + this._statusWindow.height;
  23.         this._goldWindow.x = this._commandWindow.x;
  24.         this._goldWindow.y = cekoStatusPositionY + cekoPaddingV;
  25.         this._goldWindow.width = Graphics.boxWidth - (cekoPaddingH*2);
  26.         this._goldWindow.height = cekoPaddingV *2;
  27.         this._goldWindow.createContents();
  28.         this._goldWindow.refresh();
  29.     };
  30.  
  31.     Window_Gold.prototype.refresh = function() {
  32.       var y = -4;
  33.       this.contents.fontSize = 18;
  34.       this.changeTextColor(this.systemColor());
  35.         this.drawText("Location: ", 0, y, this.contents.width, 'left');
  36.         this.drawText("Time: ", this.textWidth("Location: ") + this.textWidth($gameMap.displayName())+(this.standardPadding()*2), y, this.contents.width, 'left');
  37.         this.resetTextColor();
  38.         this.drawText($gameMap.displayName(), this.textWidth("Location: "), y, this.contents.width, 'left');
  39.         this.drawText($gameSystem.playtimeText(), this.textWidth("Location: ") + this.textWidth($gameMap.displayName())+(this.standardPadding()*2)+this.textWidth("Time: "), y, this.contents.width - 36, 'left');
  40.         var x = this.textPadding();
  41.         var width = this.contents.width - this.textPadding() * 2;
  42.         this.drawCurrencyValue(this.value(), this.currencyUnit(), x, 0, width);
  43.     };
  44.  
  45.     Window_Gold.prototype.value = function() {
  46.         return $gameParty.gold();
  47.     };
  48.  
  49.     Window_Gold.prototype.currencyUnit = function() {
  50.         return TextManager.currencyUnit;
  51.     };
  52.  
  53.     // Window_Gold.prototype.standardFontSize = function() {
  54.     //   return 18;
  55.     // };
  56.  
  57.     Window_Gold.prototype.open = function() {
  58.       this.refresh();
  59.       Window_Base.prototype.open.call(this);
  60.     };
  61.  
  62.     Window_MenuStatus.prototype.standardFontSize = function() {
  63.         return 20;
  64.     };
  65.  
  66.     Window_MenuStatus.prototype.lineHeight = function() {
  67.         return 32;
  68.     };
  69.  
  70.  
  71.  
  72. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement