/*: * @target MZ * @plugindesc 画面の大きさ>UIエリアのゲームで戦闘グラフィックとマップ移動を左上基準にする * @author やっつけ * @help 戦闘グラフィックとマップ移動を左上基準でUIエリアに収める * 画面の大きさ>UIエリアの大きさで * UIエリアの外はピクチャとかで隠して * 絶対どっかで衝突するけどおこらないでね * @url https://www.yahoo.co.jp/ * @param ウインドウ左上 * @desc ウインドウが全部左上基準になる 全部って言ったら全部 * @default 0 * @type number */ (() => { const PN = 'hidariue'; const param = PluginManager.parameters(PN); const uindouhidariue = Number(param['ウインドウ左上']); if (uindouhidariue) { Scene_Base.prototype.createWindowLayer = function () { this._windowLayer = new WindowLayer(); this._windowLayer.x = 4; this._windowLayer.y = 4; this.addChild(this._windowLayer); }; }; Spriteset_Battle.prototype.createBattleField = function () { const width = Graphics.boxWidth; const height = Graphics.boxHeight; const x = 4; const y = 4; this._battleField = new Sprite(); this._battleField.setFrame(0, 0, width, height); this._battleField.x = x; this._battleField.y = y - this.battleFieldOffsetY(); this._baseSprite.addChild(this._battleField); this._effectsContainer = this._battleField; }; Game_Map.prototype.screenTileX = function () { return Math.round(((Graphics.boxWidth + 8) / this.tileWidth()) * 16) / 16; }; Game_Map.prototype.screenTileY = function () { return Math.round(((Graphics.boxHeight + 8) / this.tileHeight()) * 16) / 16; }; })();