function Window_Testing() {
this.initialize.apply(this, arguments);
}
Window_Testing.prototype = Object.create(Window_Selectable.prototype);
Window_Testing.prototype.initialize = function(x, y, width, height) {
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
}
function Scene_Testing() {
this.initialize.apply(this, arguments);
}
Scene_Testing.prototype = Object.create(Scene_MenuBase.prototype);
Scene_Testing.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
};
Scene_Testing.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this._commandWindow = new Window_Testing(144, 96, 528, 432);
this.addWindow(this._commandWindow);
}
Scene_Testing.prototype.update = function() {
if (Input.isTriggered('escape') || Input.isTriggered('cancel') || Input.isTriggered('ok') || TouchInput.isTriggered()) {
this._commandWindow.hide();
SceneManager.goto(Scene_Map);
}
};
Window_Testing.prototype.initialize = function(x, y, width, height) {
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.drawSomeText();
}
Window_Testing.prototype.drawSomeText = function() {
var textW = 488;
var textH = 0;
this.drawText("我必须要完成的事", 0, textH, textW, 'center');
textH += this.lineHeight();
this.drawText(" ", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 1. 第一项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 2. 第二项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 3. 第三项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 4. 第四项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 5. 第五项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 6. 第六项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" 7. 第七项", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText(" ", 0, textH, textW, 'left');
textH += this.lineHeight();
this.drawText("试着赶在七天之内,全部涂红吧", 0, textH, textW, 'right');
}