【解決済み】EventSelector.jsのMZ版
Posted: 2020年9月05日(土) 23:10
こちらの問題、解決致しましたので当スレッドは終了とさせていただきます!
参考までにエラー回避のために修正した関数部分をコピペしておきます!
参考までにエラー回避のために修正した関数部分をコピペしておきます!
コード: 全て選択
function Window_EventSelector() {
this.initialize(...arguments);
}
コード: 全て選択
var _Scene_Map_createAllWindows = Scene_Map.prototype.createAllWindows;
Scene_Map.prototype.createAllWindows = function() {
_Scene_Map_createAllWindows.call(this);
var winX = 0; var winY = 0; SizeX = 300; sizeY = 624;
this._eventSelectorWindow = new Window_EventSelector(new Rectangle(winX, winY, SizeX, SizeY));
this.addChild(this._eventSelectorWindow);
};
コード: 全て選択
Window_EventSelector.prototype.drawItem = function(index) {
var commonEvent = this._list[index];
var rect = this.itemRectWithPadding(index);
this.drawText(commonEvent.name, rect.x, rect.y, rect.width);
};