wiremod / wirebox

Wire for S&Box. Early WIP.
MIT License
37 stars 8 forks source link

Where possible use Input.GetButtonOrigin() for input descriptions #27

Closed SarahGreyWolf closed 1 year ago

SarahGreyWolf commented 1 year ago

This changes the onscreen descriptions currently in use for the wiretools with controls listed to use what is assigned for the actions, so that for example "R: Disconnect Input" would become "T: Disconnect Input" if I was to change my reload key to T.

Plus the added benefit of supporting listing Controller inputs.

There are some issues with this, there is no current way as far as I can tell to indicate for scroll wheel input. Additionally it just throws errors when using a controller if there is no controller binding for an action, for example, the Drop action has no binding so changing "Hold G to Spawn Gates" to "Hold {Input.GetButtonOrigin("drop")} to Spawn Gates" is not as simple.

It would require changing the tool description UI in SandboxPlus but ideally we would also show a buttons glyph.