maruohon / minihud

A client-side Minecraft mod with configurable "info lines" ("mini-F3") and various overlays, such as light level and structure bounding boxes
GNU Lesser General Public License v3.0
420 stars 123 forks source link

[SUGGESTION] Hide on key hold setting #182

Open srnyx opened 2 years ago

srnyx commented 2 years ago

A setting that lets you set a key that when held will hide the info toggles. This would let me hide them when I hold down TAB so that they don't clash with anything that is on tab.

Or just a setting that will hide the info toggles when tab is open.

MinecraftSeaTurtle commented 2 years ago

This is already possible, though it requires some setting up. Go to the 'generic' section, search for 'toggle' to get to the 'toggleKey' hotkey. Set the hotkey to 'tab' then left click on the small box to the right and turn off 'cancel further processing'. I also recommend turning on 'allow extra keys' and turning off 'exclusive'.

srnyx commented 2 years ago

This is already possible, though it requires some setting up. Go to the 'generic' section, search for 'toggle' to get to the 'toggleKey' hotkey. Set the hotkey to 'tab' then left click on the small box to the right and turn off 'cancel further processing'. I also recommend turning on 'allow extra keys' and turning off 'exclusive'.

Thank you! There were a few more things I had to change, here's what mine looks like for anyone else that wants this: image

MinecraftSeaTurtle commented 2 years ago

I'm glad I could help, even though I somehow neglected to mention the most important part: changing the 'activate on' to both.

srnyx commented 2 years ago

@MinecraftSeaTurtle Discovered an issue with your method. If I'm holding down TAB and then open chat (T), it closes TAB but doesn't unhide the info toggles. Then when I hold down TAB again (when not in chat of course), it reverses (info toggles show when TAB is shown and hide when TAB is hidden).

maruohon commented 2 years ago

Yeah this is not an ideal solution for this use case, as you can sometimes miss the release event. So I'll probably add something more suitable for this. But what if you set Context to Any? Maybe it would fix at least some of those cases of missing the key release event for now?

srnyx commented 2 years ago

But what if you set Context to Any? Maybe it would fix at least some of those cases of missing the key release event for now?

Yeah, it fixes it. But will most likely bring up some other issue, but probably wouldn't happen as much.