|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| (() => {
|
| "use strict";
|
| const pluginName = "LL_MessageWindowAdjust";
|
|
|
| const parameters = PluginManager.parameters(pluginName);
|
| const adjustWindowChoiceList = eval(parameters["adjustWindowChoiceList"] || "true");
|
| const adjustOnBattle = eval(parameters["adjustOnBattle"] || "false");
|
| const adjustWindowType = String(parameters["adjustWindowType"] || "all");
|
| const adjustOnFace = Number(parameters["adjustOnFace"] || 0);
|
| const adjustNoFace = Number(parameters["adjustNoFace"] || 80);
|
|
|
| const _Window_Message_updatePlacement = Window_Message.prototype.updatePlacement;
|
| Window_Message.prototype.updatePlacement = function() {
|
| _Window_Message_updatePlacement.apply(this, arguments);
|
|
|
| let adjustValue = 0;
|
| if (!$gameParty.inBattle() || adjustOnBattle) {
|
| if (adjustWindowType === "all"
|
| || ($gameMessage.background() === 0 && adjustWindowType === "windowOnly")
|
| || ($gameMessage.background() === 1 && adjustWindowType === "darkenOnly")
|
| || ($gameMessage.background() === 2 && adjustWindowType === "clearOnly")) {
|
| adjustValue = $gameMessage.faceName() === "" ? adjustNoFace : adjustOnFace;
|
| }
|
| }
|
| this.x = adjustValue;
|
| this.width = Graphics.boxWidth - (adjustValue * 2);
|
| };
|
|
|
| const _Window_ChoiceList_updatePlacement = Window_ChoiceList.prototype.updatePlacement;
|
| Window_ChoiceList.prototype.updatePlacement = function() {
|
| _Window_ChoiceList_updatePlacement.apply(this, arguments);
|
|
|
| let adjustValue = 0;
|
| if ((!$gameParty.inBattle() || adjustOnBattle)&& adjustWindowChoiceList) {
|
| if (adjustWindowType === "all"
|
| || ($gameMessage.background() === 0 && adjustWindowType === "windowOnly")
|
| || ($gameMessage.background() === 1 && adjustWindowType === "darkenOnly")
|
| || ($gameMessage.background() === 2 && adjustWindowType === "clearOnly")) {
|
| adjustValue = $gameMessage.faceName() === "" ? adjustNoFace : adjustOnFace;
|
| }
|
| }
|
| const positionType = $gameMessage.choicePositionType();
|
| if (positionType === 2) {
|
| this.x -= adjustValue;
|
| } else if (positionType === 0) {
|
| this.x += adjustValue;
|
| }
|
| };
|
| })();
|
|
|