JavidPack / RecipeBrowser

RecipeBrowser mod for tModLoader
https://forums.terraria.org/index.php?threads/recipe-browser.62462/
80 stars 51 forks source link

Add a new hotkey to close the interface #126

Open Nyxeka opened 10 months ago

Nyxeka commented 10 months ago

occasionally, if the UI toggle hotkey is more accessible, it can be accidentally pressed. This adds the option to set a close hotkey for if you happen to open the recipe browser during a boss fight or something

Nyxeka commented 10 months ago

Using this locally, figured I'd put it up in case you'd like to add.

I personally use escape key because it's just muscle memory to try to close it by spamming escape key, even if it toggles inventory.

should be noted that toggling still works the same, this just adds the ability to quickly get out of the interface in panic-moments and such.

tested:

JavidPack commented 10 months ago

I can see this potentially being useful, but why wouldn't you just press the toggle recipe browser hotkey again instead of needing a new hotkey? Opening the inventory as a side result of trying to close the window seems wonky.

Nyxeka commented 10 months ago

Most of the time I have the hotkey sey to something like 'n' key, I don't use it enough for muscle memory and go into blind panic and try to close it with the escape key when it accidentally opens while trying to fight some harder bosses. usually it's not an issue but I figured it was easy enough to add and it's already come in use for me.

I also find myself using it just in general. the muscle memory may be linked to closing the chest/crafting interface?

This may very well be too niche for the general populous, I won't be offended if it's closed heh.

Nyxeka commented 10 months ago

also brings up the question if instead there could be a setting toggle that links the recipe browser to opening the inventory; or at least open the inventory like a chest, where hitting escape would close out everything.