function Sprite_QuestExist() {
this.initialize.apply(this, arguments);
}
Sprite_QuestExist.prototype = Object.create(Sprite_Button.prototype);
Sprite_QuestExist.prototype.constructor = Sprite_QuestExist;
Sprite_QuestExist.prototype.initialize = function() {
Sprite_Button.prototype.initialize.call(this);
this.bitmap = ImageManager.loadSystem("QuestExist");
this.setColdFrame(0, 0, 72, 72);
this.setHotFrame(0, 72, 72, 72);
let x = (GameusScripts["Config"]["QuestSystem"]["Reverse Layout"] || "false").toLowerCase() === "true" ? Graphics.boxWidth - 320 : 248;
let y = String(GameusScripts["Config"]["QuestSystem"]["Filter Position"]).toLowerCase() === "top" ? 0 : Graphics.boxHeight - 72;
this.move(x, y);
};
(function() {
Window_QuestFilter.prototype.windowWidth = function() {
return 248;
};
let _Scene_Quest_createQuestWindow = Scene_Quest.prototype.createQuestWindow;
Scene_Quest.prototype.createQuestWindow = function() {
_Scene_Quest_createQuestWindow.call(this);
this.questExist = new Sprite_QuestExist();
this.questExist.setClickHandler(this.popScene.bind(this));
this.addChild(this.questExist);
};
})();