TwelveIterationMods / DefaultOptions

Minecraft Mod. A way for modpacks to ship default settings without having to include an options.txt file.
https://mods.twelveiterations.com/mc/default-options/
Other
9 stars 9 forks source link

[Feature Request] hide key bindings #82

Closed BredyAK closed 3 months ago

BredyAK commented 3 months ago

hi there, i'm a mod pack maker, and currently i'm looking for a mod which could hide some key bindings that i don't want players to change, so i find this mod, it is nice, which could make default key bindings but won't override player's key settings. but currently it doesn't provide a function which could let our mod pack makers hiding specific key bindings.

for example, there is a a mod called Shoulder Surfing, it provides a cool function of player's camera, i don't want players change my settings by using the key binds that the mod provided. image

and i also want to request that, if ALL keys from a category are hiden, then the category title should be hiden too. image

there is already a mod that provides the feature i request: https://github.com/Nova-Committee/InvisibleKeyBinding/tree/forge-dev, but it's a private project (for personal usage) that isn't released to CurseForge of Modrinth, it's such a pity.

i like the private mod above because it supports hiding key category& single key, and it provides a config file like this:


#InvisibleKeybinding Settings
[general]
    #Keybindings that should be invisible in the controls screen
    invisibleKeybindings = ["Quest Log", "Scene reset", "Scene1 start/pause", "Scene2 start/pause", "Scene3 start/pause", "key.presencefootsteps.settings", "key.advancements", "Toggle perspective"]
    #Keybinding categories that should be invisible in the controls screen
    invisibleCategories = ["asteorbar.key.category", "keygroup.commandkeys.main", "key.fbp.category", "Firstperson", "modmenu.nameTranslation.jade", "jm.common.hotkeys_keybinding_category", "jm.common.hotkeys_keybinding_fullscreen_category", "Modern UI", "physicsmod.keybinding.category", "key.categories.trashslot", "key.modernfix"]

it's such powerful because it could hide a whole category by its localization key.

you can refer to the implementation method of this mod. i believe this will be a simple but powerful feature!

Thank you for bringing us this nice mod!

BlayTheNinth commented 3 months ago

This isn't really something within the scope of Default Options, and for accessibility reasons it's also not something I would recommend, as people may have different keyboard layouts that do not work well with the provided defaults.