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
Client Settings Revamp with Categories. #950
Client Settings Revamp with Categories. #950
Conversation
0920f1e
to
e15bac4
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just noticed that Cancel does not return to the escape menu in-game. |
I misunderstood last night's chat then, i though that the original behaviour was expected for the cancel button. Edit: Might follow the same logic with the Apply button, let me know if you like the final output ~ |
Ah. I meant that there shouldn't be a difference in labels for the button, it should always be called cancel.. Not randomly cancel, back or exit. :P However, it should still contextually behave properly. |
|
11bc081
to
24ffbf5
Compare
* Renamed "Options" to "Settings" in order to keep consistency. * Added Tabs in order to categorize the client settings. * Game Settings has it's own tab for upcoming settings. * Video Settings has it's own tab. * Audio Settings has it's own tab. * Keybinding Settings (AKA: "Controls") has it's own tab. * Apply button behaves as it usually does, but now saves the Keybinding Settings as well. * Renamed the Client strings within the modified structs to comply with the 'Pascal Case' format. (Cheshire92's Review Changes) * Added the Json property 'NullValueHandling.Ignore' to the the Client strings within the modified structs. (Cheshire92's 2nd Review Changes) * Cleaned up a the code a bit and fixed some typos. * Turned IsVisible() into a lambda expression. * Properly assigned a reference to Escape Menu. * Both, Apply and Cancel button should behave properly now. * When accessing the Settings Window from the Main or Escape Menus, Apply will save and take you back there. * When accessing the Settings Window from the Main or Escape Menus, Cancel will take you back there without saving. * When accessing the Settings Window by pressing a configured key, Apply will save and take you back to game. * When accessing the Settings Window by pressing a configured key, Cancel will take you back to game without saving.
24ffbf5
to
7b7fe44
Compare
It's honestly really annoying that you keep force pushing stuff as you're forcing me to re-review the entire thing and not just the changes since I can't tell what has or hasn't been changed like this. Could you please stop doing that? We squash it down to a single commit when it gets merged so there's no reason to do this. |
You've also broken my local version of this now and making me jump through all sorts of hoops to fix it. Well done. In case someone else runs into this, the git command to fix it is: git pull --rebase |
I've just removed repeated code that really didn't need to be duplicated. |
Oh.. my bad, didn't knew that you were working with a local repo, i just wanted the PR to be more in shape and less messy with small commits, as i was fixing small undesired things around. I didn't really pictured how annoying that could of been to be honest :( sorry, won't happen again. Anyway.. thanks a lot for pushing and helping along with this PR, i hope that the idea and changes end up being useful for everyone when it comes to add new client settings :D ! Regards ~ |
* Client Settings Revamp with Categories. * Renamed "Options" to "Settings" in order to keep consistency. * Added Tabs in order to categorize the client settings. * Game Settings has it's own tab for upcoming settings. * Video Settings has it's own tab. * Audio Settings has it's own tab. * Keybinding Settings (AKA: "Controls") has it's own tab. * Apply button behaves as it usually does, but now saves the Keybinding Settings as well. * Renamed the Client strings within the modified structs to comply with the 'Pascal Case' format. (Cheshire92's Review Changes) * Added the Json property 'NullValueHandling.Ignore' to the the Client strings within the modified structs. (Cheshire92's 2nd Review Changes) * Cleaned up a the code a bit and fixed some typos. * Turned IsVisible() into a lambda expression. * Properly assigned a reference to Escape Menu. * Both, Apply and Cancel button should behave properly now. * When accessing the Settings Window from the Main or Escape Menus, Apply will save and take you back there. * When accessing the Settings Window from the Main or Escape Menus, Cancel will take you back there without saving. * When accessing the Settings Window by pressing a configured key, Apply will save and take you back to game. * When accessing the Settings Window by pressing a configured key, Cancel will take you back to game without saving. * Clean up repeated code Co-authored-by: Cheshire <azurebeats@hotmail.nl>
About this Pull Request.
Renamed "Options" to "Settings" in order to keep consistency.
Added Tabs in order to categorize the client settings.
"Tabs" are technically Buttons, but we will refer to them as "Tabs" for now, considering what they actually do, visually speaking.
Game Settings has it's own tab.
(it is empty for now)
the settings capabilities, see feature: names and combat messages visibility settings #936
Video Settings has it's own tab.
Audio Settings has it's own tab.
Keybinding Settings (AKA: "Controls") has it's own tab.
Apply button behaves as it usually does, but now saves the Keybinding Settings as well.
When accessing the Settings Window from the Main or Escape Menus, Apply will save and take you back there.
When accessing the Settings Window from the Main or Escape Menus, Cancel will take you back there without saving.
When accessing the Settings Window by pressing a configured key, Apply will save and take you back to game.
When accessing the Settings Window by pressing a configured key, Cancel will take you back to game without saving.
Preview.
About the required resources for this PR
(Updated 16-10-2021) Download 'resources.zip' with the required files for this PR
Added the sprites for tabs just in case now, they should be present in the latest asset pack since the addition of the chatbox tabs.
NOTE: This PR originally included the 3 new settings for entities info visibility, decided to exclude those for now, because they may still require some discussion and attention in a different PR afterwards, so expect more resource updates on this one !