yurisuika / Raised

Raises the hotbar so the selector is not cut off!
GNU Lesser General Public License v3.0
17 stars 5 forks source link

Incompatibility with IguanaTweaksReborn Regenerating Absorption (Forge 1.20.1) #87

Closed Insane96 closed 1 month ago

Insane96 commented 5 months ago

image The shield icon is not rised

yurisuika commented 4 months ago

It looks like this mod is using RegisterGuiOverlaysEvent to register its own regenerating absorption overlay in association with its own stamina overlay. Presently, Raised only translates registered overlays on Forge if they are associated with the vanilla HUD/chat elements that it translates, or if a different method is used to register an overlay without an association (toggleable by the support option).

To support this, it wouldn't be as simple as just also translating overlays associated with anything, as the goal is to only translate certain elements. This would probably require having a list of mod overlays and their associated overlays to translate, which the user would have to configure, and at least a command to output what overlays are presently registered so the user knows what exists in the first place as well as what overlays they are associated with.

Insane96 commented 4 months ago

Wouldn't be as simple as "increased leftHeight and rightHeight before rendering" (at least on Forge)?

yurisuika commented 4 months ago

Well the early versions of Raised did alter those constants, but even then there were a lot of mods that don't use them and just calculate the offset on their own. Naturally, this doesn't jive too well if their stacks are also being translated.

Sorry for the latent reply, I've been focused on trying to get another mod updated/improved for the past couple weeks.

Insane96 commented 4 months ago

There's something I could do to fix it? The CF description says that in Fabric you can use Object Share, what about on Forge?

yurisuika commented 3 months ago

Well I want to look into how to make a proper API for such cases. I'm wrapping up some updates and then that is next on the list to focus on.

yurisuika commented 1 month ago

API is out with Raised 4.0.0.