Elin
409 ratings
Compare Equipment 装备比较
4
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Gameplay: General, QoL
System: Utility
File Size
Posted
Updated
279.163 KB
17 Nov, 2024 @ 10:55pm
1 Oct @ 9:56am
16 Change Notes ( view )

Subscribe to download
Compare Equipment 装备比较

In 1 collection by DK
Elin Mods by DK
16 items
Description
Equipment Comparison

When viewing unequipped items, displays additional comparison tooltips for items already equipped in the same slot.
When viewing a pet's inventory, also compares the pet's equipment.

Toggle

To toggle the comparison functionality, press (Left)Shift + C
Keybindings can be changed in `Elin/BepInEx/config/dk.elinplugins.equipmentcomparison.cfg`

To display only 1 tooltip when comparing, hold (Left)Shift

If your UI scale is too large or screen resolution is too small, you may also change max amount of tooltips in the config. (default `2`)

Updates

1.11 Added xmas thumbnail & Hold shift to limit notes to 1.
1.10 Updated pet inventory compare behaviour.
1.9 Added ZHTW and KR language display & fixed possible bug if user disables system widgets.
1.8 Fixed a display issue during Ctrl+F search.
1.7 Fixed ranged weapon comparisons & added fade out effect same as vanilla tooltips.
1.6 Added a `(Equipped)` indicator in comparison tooltips.
1.5 Fixed a non harmful code error when hovering over current held hotbar item.
1.4 Fixed the overlapping bug when the tooltip was first time drawn to the right.
1.3 Fixed a bug where items in public containers with no owner cannot be compared with player.
1.2 Updated keybinding for toggling comparison functionality.
1.1 Updated the alignment for multiple tooltips at the same time, instead of overlapping vertically, they'll stack horizontally.


sauce[github.com]
44 Comments
Allergic2Bulletz 30 Sep @ 9:34pm 
@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 30 Sep @ 9:30pm 
@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  [author] 30 Sep @ 8:42pm 
@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 30 Sep @ 8:19pm 
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  [author] 17 Aug @ 2:32pm 
Try adjusting the inventory position around.
DK  [author] 17 Aug @ 2:31pm 
@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 17 Aug @ 2:14pm 
The item UI overlaps each other so now I can't see the details.
Martha Pepper 4 Dec, 2024 @ 11:56am 
@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  [author] 3 Dec, 2024 @ 2:27pm 
@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 3 Dec, 2024 @ 12:20pm 
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!!