22 lines
749 B
JavaScript
22 lines
749 B
JavaScript
/*:ja
|
|
* @target MZ
|
|
* @author kurogoma knights
|
|
* @plugindesc 上ファイルの修正パッチ イベントアイテムヘルプの幅調整
|
|
*/
|
|
|
|
(() => {
|
|
'use strict';
|
|
|
|
const _Scene_Message_createEventItemWindow = Scene_Message.prototype.createEventItemWindow;
|
|
Scene_Message.prototype.createEventItemWindow = function() {
|
|
_Scene_Message_createEventItemWindow.call(this);
|
|
|
|
const helpWindow = this._messageWindow?._helpWindow;
|
|
if (helpWindow) {
|
|
const standWidth = (window.Kurogoma?.Map?.getStandAreaWidth?.() ?? 0);
|
|
helpWindow.width = Math.max(Graphics.boxWidth - standWidth, 0);
|
|
helpWindow.x = 0;
|
|
helpWindow.y = 0;
|
|
}
|
|
};
|
|
})();
|