Elin
413 个评价
Compare Equipment 装备比较
4
2
2
2
   
奖励
收藏
已收藏
取消收藏
Gameplay: General, QoL
System: Utility
文件大小
发表于
更新日期
279.163 KB
2024 年 11 月 17 日 下午 10:55
10 月 1 日 上午 9:56
16 项改动说明 ( 查看 )

订阅以下载
Compare Equipment 装备比较

在 DK 的 1 个合集中
Elin Mods by DK
16 件物品
描述
装备比较

查看未装备物品时显示同栏位已装备物品的比较信息。在查看宠物的库存时,还会比较宠物装备。

开关比较

默认键位: (左)Shift + C
可以在`Elin/BepInEx/config/dk.elinplugins.equipmentcomparison.cfg`中修改键位。

比较时按下 (左)Shift 可以限制当前显示的信息条数量至 1

!!注意!!

如果UI比例大于140%,信息可能过长。可在配置文件中修改最大比较条数量,默认`2`。

1.11 圣诞封面 & 按住shift键暂时限制为单条显示.
1.10 更新了宠物比较行为.
1.9 添加繁體中文以及韩语文本 & 修复在用户禁用系统控件时可能的bug.
1.8 修复了Ctrl+F搜索时的显示bug.
1.7 修复了远程武器的一个比较bug & 添加了比较信息条的渐隐效果.
1.6 更新了比较信息条中的`(已装备)`指示器.
1.5 修复了悬浮查看当前握持物品时内部代码的一处小bug.
1.4 修复了第一次渲染信息条时在屏幕右侧会导致比较信息条重叠的bug.
1.3 修复了公共无主箱子的物品无法被比较的bug.
1.2 更新了比较功能开关键.
1.1 更新修复了多个词条互相堆叠的问题, 现在它们会水平显示.


sauce[github.com]
44 条留言
Allergic2Bulletz 9 月 30 日 下午 9:34 
@DK Ok, I spoke too soon.
```cs
NullReferenceException
Sequence of events (most recent on top):
Component.GetComponentInChildren
UnityEngine.Component.GetComponentInChildren[T]
EquipmentComparison::ComparableGrids.GetAllComparableGrids
EquipmentComparison::AuxTooltip.TryDrawAuxTooltip
UIButton.ShowTooltip
+TRANSPILER EquipmentComparison::ShowTooltipPatch.OnShowTooltipIl
UIButton.DoStateTransition
Selectable.EvaluateAndTransitionToSelectionState
Selectable.OnPointerEnter
ExecuteEvents.Execute
UnityEngine.EventSystems.ExecuteEvents.Execute[T]
UnityEngine.EventSystems.EventSystem:Update
```

What's a good way to send you the Player.log. Are you on the official discord?
Allergic2Bulletz 9 月 30 日 下午 9:30 
@DK Here is the actual error message:
```cs
NullReferenceException
Sequence of events (most recent on top):
Component.GetComponentInChildren
UnityEngine.Component.GetComponentInChildren[T]
EquipmentComparison::ComparableGrids.GetAllComparableGrids
EquipmentComparison::AuxTooltip.TryDrawAuxTooltip
UIButton.ShowTooltip
+TRANSPILER EquipmentComparison::ShowTooltipPatch.OnShowTooltipIl
UIButton.DoStateTransition
Selectable.EvaluateAndTransitionToSelectionState
Selectable.OnPointerEnter
+PREFIX ModOptions::OnPointerEnter.Prefix
ExecuteEvents.Execute
UnityEngine.EventSystems.ExecuteEvents.Execute[T]
UnityEngine.EventSystems.EventSystem:Update
```
This time I saw it for a tomato, and I noticed ModOptions in the stack trace. Disabled it and the error message is no longer appearing, so hopefully it's an issue on ModOptions end. Sorry to send you on a goose chase!
DK  [作者] 9 月 30 日 下午 8:42 
@Allergic2Bulletz Hello, I'm having trouble replicating this issue. I tried various sea urchins and other thrown weapons in combination, and hovering over fish recipes ingredients displayed fine - although it should probably not display a comparison for crafting UI, but I have yet to observe an exception. Can you provide Player.log and some more details?
Allergic2Bulletz 9 月 30 日 下午 8:19 
I noticed a NullPointer exception straight away when cooking with Sea Urchins (and only Sea Urchins at time of writing.)

1. Get a Sea Urchin
2. Open a fish recipe
3. Click on the fish ingredient slot to open the ingredient list
4. Mouse over the Sea Urchin

Hopefully this text description is clear; steam limits me to just 1000 characters so I have to be overly concise. My guess is that because Sea Urchins can be used as a thrown weapon it is being picked up by your mod's logic but doesn't know what to compare to.
DK  [作者] 8 月 17 日 下午 2:32 
Try adjusting the inventory position around.
DK  [作者] 8 月 17 日 下午 2:31 
@Yuen that's because your inventory is too close to the edge of screen yet not close enough to show tooltip on the other side.
Yuen 8 月 17 日 下午 2:14 
The item UI overlaps each other so now I can't see the details.
Martha Pepper 2024 年 12 月 4 日 上午 11:56 
@DK Thank for the reply, my eyesight is a bit rubbish so the UI scale has to be a bit bigger than usual :( Anyway, I'll set the max note to 1, thanks for the suggestion <3
DK  [作者] 2024 年 12 月 3 日 下午 2:27 
@Martha That's by design to compare both hands(if you are dual wielding), and bound to happen, which I don't suggest to set UI scale larger than 140%. If you are bothered by that, you could go to the config file to set the max notes to `1` instead of `2`.
Martha Pepper 2024 年 12 月 3 日 下午 12:20 
Unfortunately if you have 2 weapons in your hands the game will bring up 3 tooltips to compare altogether which overlap each other and this breaks on UI scales above 160% Fantastic mod otherwise!!