51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
var Nore;
|
|
(function (Nore) {
|
|
Scene_Title.prototype.commandWindowRect = function () {
|
|
var offsetX = $dataSystem.titleCommandWindow.offsetX;
|
|
var offsetY = $dataSystem.titleCommandWindow.offsetY;
|
|
var ww = this.mainCommandWidth() + 20;
|
|
var wh = this.calcWindowHeight(5, true) + 20;
|
|
var wx = (Graphics.boxWidth - ww) / 2 + offsetX;
|
|
var wy = Graphics.boxHeight - wh - 96 + offsetY;
|
|
return new Rectangle(wx, wy, ww, wh);
|
|
};
|
|
var Window_TitleCommand_makeCommandList =
|
|
Window_TitleCommand.prototype.makeCommandList;
|
|
Window_TitleCommand.prototype.makeCommandList = function () {
|
|
Window_TitleCommand_makeCommandList.call(this);
|
|
this.clearCommandList();
|
|
this.addCommand(TextManager._newGame, "newGame");
|
|
this.addCommand(
|
|
TextManager._continue_,
|
|
"continue",
|
|
this.isContinueEnabled()
|
|
);
|
|
this.addCommand(TextManager.recollection, "recollection");
|
|
this.addCommand(TextManager._options, "options");
|
|
this.addCommand(TextManager._gameEnd, "gameEnd");
|
|
this.contents.fontFace = "rate";
|
|
};
|
|
Scene_Title.prototype.adjustBackground = function () {
|
|
this.scaleSprite(this._backSprite1);
|
|
//this.scaleSprite(this._backSprite2);
|
|
this.centerSprite(this._backSprite1);
|
|
//this.centerSprite(this._backSprite2);
|
|
if (!Nore.isTaikenban()) {
|
|
this._backSprite2.visible = false;
|
|
}
|
|
};
|
|
var _Window_TitleCommand_prototype_itemRect =
|
|
Window_TitleCommand.prototype.itemRect;
|
|
Window_TitleCommand.prototype.itemRect = function (index) {
|
|
var rect = _Window_TitleCommand_prototype_itemRect.call(this, index);
|
|
var m = 10;
|
|
rect.x += m;
|
|
rect.y += m;
|
|
rect.width -= m * 2;
|
|
return rect;
|
|
};
|
|
})(Nore || (Nore = {}));
|
|
Scene_Gameover.prototype.createBackground = function () {
|
|
this._backSprite = new Sprite();
|
|
this.addChild(this._backSprite);
|
|
};
|