设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

选项框的位置 / 替换选项框的背景色

查看数: 40 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2025-5-11 02:21

正文摘要:

第一次发贴,写了两个简单的插件。 1. 选项框的位置 2. 选项框的非选择项背景色默认是灰色,想做一些修改可以直接在插件管理器里设置色号。 https://github.com/SekiShiyo/RMMZ/blob/main/NonSelectedChoi ...

回复

3eki 发表于 昨天 02:24
  1. /*:
  2. * @target MZ
  3. * @plugindesc Lets you customize the X and Y position of the choice list window (Window_ChoiceList) in RPG Maker MZ.
  4. * @author SekiShiyo
  5. *
  6. * @param ChoiceX
  7. * @text Choice Window X
  8. * @desc X position of the choice window
  9. * @default 240
  10. *
  11. * @param ChoiceY
  12. * @text Choice Window Y
  13. * @desc Y position of the choice window
  14. * @default 360
  15. */

  16. (() => {
  17.     const params = PluginManager.parameters("ChoiceBoxPosition");
  18.     const choiceX = Number(params["ChoiceX"] || 240);
  19.     const choiceY = Number(params["ChoiceY"] || 360);
  20.   
  21.     const _Window_ChoiceList_updatePlacement = Window_ChoiceList.prototype.updatePlacement;
  22.     Window_ChoiceList.prototype.updatePlacement = function () {
  23.       _Window_ChoiceList_updatePlacement.call(this);
  24.       this.x = choiceX;
  25.       this.y = choiceY;
  26.     };
  27.   })();
  28.   
复制代码
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-5-12 18:48

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表