maruohon / malilib

Library mod for masa's client-side Minecraft mods
GNU Lesser General Public License v3.0
294 stars 124 forks source link

hotkey vizualizer. #65

Open KraXen72 opened 2 years ago

KraXen72 commented 2 years ago

Please add an option to visualize all active hotkeys and where they are on the keyboard image you would see a keyboard, something like this and on hover over keys it would show all the hotkeys that use that key.

for example: when hovering over H if H is enable/disable minihud, it would highlight h in one color and show on the bottom of the screen: minihud, enable if Ctrl + H is something else, it would highlight H (half transparently) again and also ctrl and show on the bottom of the screen what it does etc.

keymap

this would be useful to see confilicting hotkeys ( i know you can already see them in the tooltip but this would be easier to remember) also easier to see which keys are free when you have too many hotkeys :despair:

maruohon commented 2 years ago

Some kind of additional visualization is planned. But I'm not sure if it will include a visual keyboard, as I'm not going to make a million different layouts or textures for all kinds of different keyboard layouts. And before looking into it I'm not sure if you can even see the layout easily somehow from Java. Maybe it's in some kind of environment variable or something(?)

Personally I don't usually bind hotkeys primarily based on what is free (that would be impossible to memorize), but rather using my usual mnemonic system, ie. one main key per mod, and then mnemonic second and/or third keys, sometimes using Ctrl or Alt or Ctrl + Alt or Alt + Ctrl in the beginning for less used hotkeys once the mnemonic second key is already used by something else.

For example in Tweakeroo:

or:

Also in the rewritten malilib you will have an Action Prompt that can be used to toggle stuff without needing a dedicated hotkey for everything. Or probably even more convenient than that will be the user-defined action screens where you can collect your favorite buttons to toggle stuff or run common actions. So basically one hotkey to open the action screen/command deck whatever you want to call it.

Action Prompt: 2021-12-26_01 02 31

Command Deck/Action Widget Screen (still WIP, and this is just my testing screen/layout): 2021-05-07_01 13 59

KraXen72 commented 2 years ago

both would be really useful! looks like an even better idea than what i had. can't wait!