Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*:
- * @plugindesc Celestial Menu
- * @author cekobico with excerpts from SumRndDde's Tutorial
- * @help
- */
- (function(){
- var _Scene_Menu_Create = Scene_Menu.prototype.create;
- Scene_Menu.prototype.create = function() {
- _Scene_Menu_Create.call(this);
- var cekoPaddingH = Graphics.boxWidth/16;
- var cekoPaddingV = Graphics.boxHeight/16;
- this._commandWindow.x = cekoPaddingH;
- this._commandWindow.y = cekoPaddingV;
- var cekoCommandPositionX = this._commandWindow.x + this._commandWindow.width;
- this._statusWindow.x = cekoCommandPositionX + (cekoPaddingH/2);
- this._statusWindow.y = cekoPaddingV;
- this._statusWindow.width = Graphics.boxWidth - ((cekoPaddingH*5)+(cekoPaddingH/2));
- this._statusWindow.height = this._commandWindow.height;
- var cekoStatusPositionX = cekoCommandPositionX + cekoPaddingH;
- var cekoStatusPositionY = this._statusWindow.y + this._statusWindow.height;
- this._goldWindow.x = this._commandWindow.x;
- this._goldWindow.y = cekoStatusPositionY + cekoPaddingV;
- this._goldWindow.width = Graphics.boxWidth - (cekoPaddingH*2);
- this._goldWindow.height = cekoPaddingV *2;
- this._goldWindow.createContents();
- this._goldWindow.refresh();
- };
- Window_Gold.prototype.refresh = function() {
- var y = -4;
- this.contents.fontSize = 18;
- this.changeTextColor(this.systemColor());
- this.drawText("Location: ", 0, y, this.contents.width, 'left');
- this.drawText("Time: ", this.textWidth("Location: ") + this.textWidth($gameMap.displayName())+(this.standardPadding()*2), y, this.contents.width, 'left');
- this.resetTextColor();
- this.drawText($gameMap.displayName(), this.textWidth("Location: "), y, this.contents.width, 'left');
- this.drawText($gameSystem.playtimeText(), this.textWidth("Location: ") + this.textWidth($gameMap.displayName())+(this.standardPadding()*2)+this.textWidth("Time: "), y, this.contents.width - 36, 'left');
- var x = this.textPadding();
- var width = this.contents.width - this.textPadding() * 2;
- this.drawCurrencyValue(this.value(), this.currencyUnit(), x, 0, width);
- };
- Window_Gold.prototype.value = function() {
- return $gameParty.gold();
- };
- Window_Gold.prototype.currencyUnit = function() {
- return TextManager.currencyUnit;
- };
- // Window_Gold.prototype.standardFontSize = function() {
- // return 18;
- // };
- Window_Gold.prototype.open = function() {
- this.refresh();
- Window_Base.prototype.open.call(this);
- };
- Window_MenuStatus.prototype.standardFontSize = function() {
- return 20;
- };
- Window_MenuStatus.prototype.lineHeight = function() {
- return 32;
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement