feat(ui): 增强 MenuExtensions Shift+点击支持并修复槽位交互问题#650
Merged
Bkm016 merged 3 commits intoTabooLib:dev/6.2.3from Feb 6, 2026
Merged
feat(ui): 增强 MenuExtensions Shift+点击支持并修复槽位交互问题#650Bkm016 merged 3 commits intoTabooLib:dev/6.2.3from
Bkm016 merged 3 commits intoTabooLib:dev/6.2.3from
Conversation
fix(ui): 修复`COLLECT_TO_CURSOR`操作中收集物品数量的计算逻辑 fix(ui): 修复`HOTBAR_SWAP`和`HOTBAR_MOVE_AND_READD`操作中副手物品的获取方式 fix(ui): 修复`lockSlots`函数中`MOVE_TO_OTHER_INVENTORY`操作的锁定检查逻辑 fix(ui): 修复`lockSlots`函数中`COLLECT_TO_CURSOR`操作的收集检查逻辑 fix(ui): 修复`lockSlots`函数中`HOTBAR_SWAP`和`HOTBAR_MOVE_AND_READD`操作的锁定检查 fix(ui): 修复`lockSlots`函数中`rawSlots`集合的交集检查逻辑 refactor(ui): 添加副手槽位索引常量`OFFHAND_SLOT`并导入`PlayerInventory`
refactor(ui): 重构 `conditionSlot` 和 `amountCondition` 以支持延迟处理 fix(ui): 修复 `returnItems` 中可能返还空气物品的问题 refactor(ui): 提取 `pickupHalfOut` 等辅助函数以复用逻辑 fix(ui): 修正副手交互的快捷键常量从 `OFFHAND_SLOT` 改为 `OFFHAND_HOTBAR_BUTTON` refactor(ui): 将 `lockSlot` 中的 Shift+点击检查改为使用 `computeShiftMovePlan` fix(ui): 修复 `lockSlot` 中双击收集可能从不允许槽位收集的问题
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(ui): 添加对 Shift+点击的限量与条件规则支持
refactor(ui): 重构
conditionSlot和amountCondition以支持延迟处理fix(ui): 修复
returnItems中可能返还空气物品的问题refactor(ui): 提取
pickupHalfOut等辅助函数以复用逻辑fix(ui): 修正副手交互的快捷键常量从
OFFHAND_SLOT改为OFFHAND_HOTBAR_BUTTONrefactor(ui): 将
lockSlot中的 Shift+点击检查改为使用computeShiftMovePlanfix(ui): 修复
lockSlot中双击收集可能从不允许槽位收集的问题