Project1
标题:
选项框的位置 / 替换选项框的背景色
[打印本页]
作者:
3eki
时间:
2025-5-11 02:21
标题:
选项框的位置 / 替换选项框的背景色
第一次发贴,写了两个简单的插件。
1. 选项框的位置
2. 选项框的非选择项背景色默认是灰色,想做一些修改可以直接在插件管理器里设置色号。
WechatIMG228.jpg
(1.7 MB, 下载次数: 19)
下载附件
保存到相册
2025-5-11 02:21 上传
https://github.com/SekiShiyo/RMMZ/blob/main/NonSelectedChoiceBG.js
https://github.com/SekiShiyo/RMMZ/blob/main/ChoiceBoxPosition.js
作者:
3eki
时间:
2025-5-11 02:24
/*:
* @target MZ
* @plugindesc Lets you customize the X and Y position of the choice list window (Window_ChoiceList) in RPG Maker MZ.
* @author SekiShiyo
*
* @param ChoiceX
* @text Choice Window X
* @desc X position of the choice window
* @default 240
*
* @param ChoiceY
* @text Choice Window Y
* @desc Y position of the choice window
* @default 360
*/
(() => {
const params = PluginManager.parameters("ChoiceBoxPosition");
const choiceX = Number(params["ChoiceX"] || 240);
const choiceY = Number(params["ChoiceY"] || 360);
const _Window_ChoiceList_updatePlacement = Window_ChoiceList.prototype.updatePlacement;
Window_ChoiceList.prototype.updatePlacement = function () {
_Window_ChoiceList_updatePlacement.call(this);
this.x = choiceX;
this.y = choiceY;
};
})();
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1