Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Binding Submenu #63

Open
NoelFB opened this issue Feb 5, 2024 · 1 comment
Open

Controller Binding Submenu #63

NoelFB opened this issue Feb 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@NoelFB
Copy link
Contributor

NoelFB commented Feb 5, 2024

Need a submenu to rebind controls, but it's a bit complicated.

  • Need to be able to clear controls
  • Must not be allowed to back out of the menu until you either cancel changes, or confirm changes that are valid
  • Certain combinations aren't valid (ex. Pause/Confirm/Cancel can't overlap, Menu Up/Down can't overlap, Menu Left/Right can't overlap, etc).
  • Need to add input prompts for all possible button configurations (pull in all of Kenny's input prompts, look them up based on first binding).
@NoelFB NoelFB added the enhancement New feature or request label Feb 6, 2024
@JoshuaMadd
Copy link
Contributor

Am working on this. At the moment button prompts show the first assigned button or key (depending on input type). I also added an input item to Menu that shows the buttons assigned to a VirtualButton. (See images).

One weird thing I did notice is that Buttons.North turns into Buttons.Y for some reason and I'm not sure why. (See images)
I made the input prompt show up by naming the image Y.png.

I'm not sure how I will do the rebinding part though. I saw foster has FirstPressed() for keyboard, but I haven't found anything like that for controller. I'm also not sure how I should handle input for switch (NotFor and OnlyFor).

This is the fork: https://github.com/JoshuaMadd/Celeste64/tree/options-submenu-3
(Very much still wip, will clean and move a lot of stuff)

afbeelding
afbeelding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants