sidezbros / double_hotbar

Minecraft fabric mod that expands the HUD
GNU General Public License v3.0
9 stars 6 forks source link

Add config option to change vertical position of the second hotbar #3

Closed pastellexists closed 2 years ago

pastellexists commented 2 years ago

This change is designed for use principally with mods like Raised, which adjust the hotbar position up a few pixels so the selector can be fully visible on-screen. Without this change, using this mod in conjunction with Raised results in a displeasing overlap between the two hotbars.

This change was accomplished by removing the shift constant in InGameHudMixin, and replacing all references to it with a config variable. This config variable is an integer slider bounded from 0 to 100 (the upper limit is arbitrary and could be changed, named 'Vertical Position' in the lang file.

sidezbros commented 2 years ago

Merged commits. Thanks!