//There is no need for this to be declared becasue the interpreterCommand from ResistanceIsFeudalGameStart.
//var interpreterCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
interpreterCommand.apply(this);
if (command === 'endScreen') {
Scene_Map.prototype.createEndWindow();
};
};
Scene_Map.prototype.createEndWindow = function() {
this._endWindow = new Window_End(0, 0);
this._endWindow.x = 10;
this._endWindow.y = 10;
//if (true) {
this._endWindow.drawText ("Ending 1 text", 0, 0, 0, 'left' );
//}
Scene_Base.prototype.addWindow(this._endWindow);
};
function Window_End() {
this.initialize.apply(this, arguments);
};
Window_End.prototype = Object.create(Window_Base.prototype);
Window_End.prototype.constructor = Window_End;
Window_End.prototype.initialize = function(x, y) {
var width = this.windowWidth();
var Height = this.windowHeight();
Window_Base.prototype.initialize.call(this, x, y, width, Height);
};
Window_End.prototype.windowWidth = function() {
return Graphics.boxWidth - 20;
};
Window_End.prototype.windowHeight = function() {
return Graphics.boxHeight - 20;
};