滚动条分离模组

创作者: CelticSlayer
已更新:2026-09-25 12:01:38
92KB

关于此 MOD

滚动鼠标滚轮可调整拆分物品堆叠的数量。

卷轴分裂模组

在拆分物品堆叠时,滚动鼠标滚轮即可调整数量——再也不用一次次点击拖动滑块了。

功能

  • 在拆分堆叠滑块打开时,向上/向下滚动以增加/减少数量
  • 按住CTRL或SHIFT修改数量
  • 在原版拆分对话出现的任何地方都能生效
  • 轻量级——不影响性能或其他系统

安装

  1. 安装 BepInExPack Valheim 如果你还没有这样做(通过模组管理器安装时会自动处理)
  2. 通过r2modman、Thunderstore Mod Manager安装此模组,或手动将DLL文件放入 BepInEx/plugins/

用途

  1. 打开你的物品栏
  2. 按常规拆分堆叠(Shift+点击)
  3. 在拆分对话框打开时,滚动鼠标滚轮,每格调整1个数量
  4. 按住CTRL以每档调整10,或按住SHIFT以每档调整5
  5. 首次启动后,请在以下位置编辑配置文件 BepInEx\config\com.celticslayer.splitscroll.cfg 用于自定义滚动量。

兼容性

  • 仅客户端生效——不影响服务器状态,也不要求其他玩家安装
  • 应该与其他物品栏/界面模组兼容,因为它只修改本地拆分对话框的滑块值

来源

using BepInEx; using BepInEx.Configuration; using UnityEngine; namespace SplitScrollMod { [BepInPlugin("com.celticslayer.splitscroll", "Split Scroll Mod", "1.1.0")] public class Plugin : BaseUnityPlugin { private ConfigEntry<float> baseStep; private ConfigEntry<float> shiftStep; private ConfigEntry<float> ctrlStep; private void Awake() { baseStep = Config.Bind( "Scrolling", "BaseStep", 1f, "Amount changed per scroll notch with no modifier key held" ); shiftStep = Config.Bind( "Scrolling", "ShiftStep", 5f, "Amount changed per scroll notch while holding Shift" ); ctrlStep = Config.Bind( "Scrolling", "CtrlStep", 10f, "Amount changed per scroll notch while holding Ctrl" ); } private void Update() { if (InventoryGui.instance == null) return; var splitDialog = InventoryGui.instance.m_splitDialog; if (splitDialog == null || !splitDialog.IsActive) return; float scroll = Input.GetAxis("Mouse ScrollWheel"); if (scroll == 0f) return; bool ctrl = Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl); bool shift = Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift); float step; if (ctrl) step = ctrlStep.Value; else if (shift) step = shiftStep.Value; else step = baseStep.Value; if (scroll > 0f) splitDialog.SliderValue += step; else if (scroll < 0f) splitDialog.SliderValue -= step; } } }

更新日志

1.0.0

  • 首次发布

1.0.1

  • 修复自述文件 Markdown

1.0.2

  • 更多格式修复

1.1.0

  • 添加了滚动量修改器(感谢 u/overkillsd)

1.1.1

  • 已添加更新日志

Valheim: 英灵神殿 的热门 MOD

探索适用于 Valheim: 英灵神殿 的最佳MOD,带来新功能、升级画面,以及令人兴奋的方式来改变您的游戏体验。

使用 Xmod 解锁 Valheim: 英灵神殿 的全部潜力 — 今天就探索这些顶级 MOD!