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

Allow GameScale to be adjusted in-game using controller/keyboard #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

malmazuke
Copy link

@malmazuke malmazuke commented Dec 20, 2023

Description

This PR adds the ability to modify the game scale in-game via the keyboard/controller.

Keys default to L/R buttons on controller, +/- buttons on keyboard.

Inspired from a Vinesauce stream, where Vinny mentioned it should be added in an update.

Items of note

It looks like at some point L/R were intended to be used for something, but were commented out of the code.

Additionally, I've had to adjust the margins of the Control Settings screen in order to fit the new key rows. This is less noticeable in the in-game Settings menu - however, in the Settings menu found at the Main Menu the "Reset" and "Back" buttons were being pushed off screen by the two new button rows.

Future Improvements

Having some kind of toast or UI indication appear on screen when a player adjusts the scale would be nice.

Screenshots

Control Settings (Main Menu)

Menu - Pre-game

Control Settings (In-Game)

Menu - In-game

In-Game Footage

Link.s.Awakening.-.In-Game.Scale.mp4

@@ -457,6 +470,16 @@ private void SetState(MenuState newState)
_currentMenuState = newState;
}

private static void HandleGameScaleChanged(GameScaleDirection scaleDirection)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no other methods with naming convention "Handle...". Suggest renaming to match legacy author's conventions and leave "Handle..." for future event handlers, if needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. Updated here: 7194ce9

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

Successfully merging this pull request may close these issues.

2 participants