zallek / TimberbornToolShortcuts

https://timberborn.thunderstore.io/package/Zallek/ToolShortcuts/
The Unlicense
5 stars 3 forks source link

[Feature Request] Rebinding actions #1

Open Ethreon opened 3 years ago

Ethreon commented 3 years ago

Excellent mod, I'm already greatly enjoying the ability to use keybinds for the more common buildings. One thing I'd love to see though is the ability to more directly bind the demolish function as a 1 key press instead of 2, as well as the ability to rebind some of the other game functions that are currently hotkeyed to useful keys eg. Q/E/R etc. which could have a better use for the menus. Would this be possible or within the scope of your plugin?

zallek commented 3 years ago

Hello and thank you for your feedback.

One thing I'd love to see though is the ability to more directly bind the demolish function as a 1 key press instead of 2

I'll see if I can add this. Might be tricky because from what I remember, by default, you can't enable a tool without opening its menu.

the ability to rebind some of the other game functions that are currently hotkeyed to useful keys eg. Q/E/R etc. which could have a better use for the menus

Allow rebinding the other game functions should be quite easy. I just need to think about the scope of this plugin. Because the large the scope is, the more likely is it to break on future updates and the more likely is it to conflict with another plugin.

I'll keep you posted. Because I'm currently working on a very different mod adding game content.

zallek commented 3 years ago

I'm already greatly enjoying the ability to use keybindings for the more common building

Have you changed the default keybindings configuration? If yes, may I ask what's your configuration? I'm looking for ideas for the "best" default conf.

Ethreon commented 3 years ago

I appreciate you getting back with a reply. I'm looking forward regardless of what the future of this plugin will bring, it's proving quite useful as is. As for my config I'll list only the stuff I've bound so far

demolishingGroupTool = X priorityGroupTool = C pathsGroupTool = F landscapingGroupTool = T

It's not really set in stone as I'm about to switch to a new PC thus having to redo a lot of settings, but for now it works. Later on will test to see if Mouse3/4 are accepted, and if yes I'll assign those to the most used menus in the game which I think would be Demolish and Paths. One config I'd consider optimal as is now:

Demolish = X Priorities = Z Paths = F Terraform = T Housing = G Food = C Lumber = V Power = B

If all keys can be used and not just main alphabet letters then I think this would be better:

Demolish = Mouse3 Priorities = Z Paths = Mouse4 Terraform = Tab Housing = G Food = F Lumber = V Power = B

Lastly, if all keys can be used then something like this would be optimal:

Demolish = Mouse3 Priorities = Z Paths = Mouse4 Terraform = Tab Housing = Q Food = F Lumber = E Power = V

I didn't find the other tabs to be used sufficiently to warrant a keybind. And of course this is all personal preference based on what I use most during planning and building.

Ecconia commented 1 year ago

I was just fixing this mod today. And exactly for the same reason 1-click demolish, I added a feature to the mod. This new feature basically always opens the first tool in a tool group, when the tool group is openend. That way you don't loose anything, since you still can use your second keypress on the number keys to change it. *Edit: You actually have to right click twice to close the group then, instead of once. But that is why there is a config toggle for this feature.

But now reading this issue, I see that it would be better, to assign a default tool per group that gets opened. And the implementation is fairly possible - the configuration not so pretty though (as in one numeric config value for each tool group).

*Edit: Actually scratch that, what if the mod always opens the last tool of a group that was being used? I like that much more... Possibilities....