ballistica icon indicating copy to clipboard operation
ballistica copied to clipboard

Reset Mapping button in controllers config menu

Open 3alTemp opened this issue 1 year ago • 2 comments

Description

As suggested by @komasio71, this implements a "reset" button in the "Configure X" menus that sets your button mappings to their default values. That's it.

https://github.com/efroemling/ballistica/assets/79161340/d5613adf-5777-4bd2-8af6-89479d074aaa

image image image

I don't think this requires much explanation; it assists you on wiping your button binds in case you set them to something silly and non-functional, if you're not happy with your current binds, or literally any other reason on which you would need to clear them out. Not a big change but it would be appreciated by tons of people and controllers alike :).

EFRO NOTE:

This change has raw text strings, so having new translatable lines would be very much appreciated!

Now, look at this very cool table telling you this is a new feature:

Type
:sparkles: New feature

3alTemp avatar Jan 10 '24 12:01 3alTemp

my idea!! :D (this comment was supposed to be posted a week now but anyway)

komasio71 avatar Jan 15 '24 17:01 komasio71

I'm too tired to change the whole input reset ordeal into another file, efro please just add your magical # pylint: disable=too-many-lines if you agree...

3alTemp avatar Jan 25 '24 22:01 3alTemp

This is a great addition; thanks! My one bit of feedback would be that I think the button should be a bit less prominent. I'd prefer to have 'Cancel' and 'Save' be the primary two actions users see. Could the reset button be a more muted color, smaller, and maybe tucked into the bottom or corner? Perhaps similar to the 'advanced' button in the controller window?..

efroemling avatar Mar 02 '24 03:03 efroemling

This is a great addition; thanks! My one bit of feedback would be that I think the button should be a bit less prominent. I'd prefer to have 'Cancel' and 'Save' be the primary two actions users see. Could the reset button be a more muted color, smaller, and maybe tucked into the bottom or corner? Perhaps similar to the 'advanced' button in the controller window?..

Sure! I'll move the button to a corner real quick! (not as quick as I'll need to make sure it doesn't break on smaller UI sizes 🤠)

3alTemp avatar Mar 02 '24 03:03 3alTemp

Alternately I could see this also working as a menu entry under a '...' button. That would also give us a place to add any other functionality later (and the advanced button could go there too). Just a thought.

efroemling avatar Mar 02 '24 03:03 efroemling

True, I'll follow to that and move them both in there.

3alTemp avatar Mar 02 '24 03:03 3alTemp

Oh well, I'll leave the CI thing there; I've been trying to install it on VSC for a while, but it keeps plaguing the project with nonsensical Mypy(no-any-unimported) errors.

3alTemp avatar Mar 02 '24 06:03 3alTemp

Thanks for this!

efroemling avatar Mar 14 '24 00:03 efroemling