Crendgrim / AutoHUD

A Minecraft mod for the Fabric launcher which dynamically hides parts of the user interface
GNU Lesser General Public License v3.0
18 stars 12 forks source link

Adding compat with segmented #54

Closed csutora closed 1 year ago

csutora commented 1 year ago

Hi! I'm working on a mod that makes the hotbar segmented, and I'd like to add support for your mod. The current issue is that the hotbar only gets shown when selecting an actual slot, and not when selecting a segment, which is something that doesn't yet interact with minecraft's actual inventory object. (Here's the issue: https://github.com/csumpasd/segmented/issues/6)

My question is, is there a function I can call to reveal the hotbar on demand or any other way for me to easily add support?

Thanks for the help.

Crendgrim commented 1 year ago

https://github.com/Crendgrim/AutoHUD/blob/1.19.4/src/main/java/mod/crend/autohud/mixin/ClientPlayerInteractionManagerMixin.java

This controls the vanilla "on slot change" trigger. You could copy that call into your mod if AutoHUD is loaded.

csutora commented 1 year ago

thanks, managed to do it!