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

Overlays: Add a selection of dynamic settings to the home menu #13368

Merged
merged 7 commits into from
Feb 9, 2023

Conversation

Megamouse
Copy link
Contributor

  • Implements home menu pages
  • Implements home menu message box
  • Adds current date and time to top-right corner of the home menu
  • Adds dynamic settings to the new settings pages in the home menu
  • Allows saving the custom config by pressing square and accepting the message box
  • Allows discarding the settings' changes by pressing triangle and accepting the message box

image
image
image
image
image
image

rpcs3/main_application.cpp Outdated Show resolved Hide resolved
temp.file.write(settings.c_str(), settings.size());
if (!temp.commit())
{
sys_log.error("Could not save config to %s (error=%s)", config_name, fs::g_tls_error);
Copy link
Contributor

@kd-11 kd-11 Feb 7, 2023

Choose a reason for hiding this comment

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

Add a system notification message as well. If the user has fullscreen, they won't know that settings didn't save.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Idk. why would it fail to save in the first place?
Seems like an arbitrary point to add a localized notification...

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, if we notify users when the setting saves then they will be more inclined to realize that settings have not saved if they close the emu while something is runing or they exit out of the guide menu without saving. Otherwise i agree

Copy link
Contributor

Choose a reason for hiding this comment

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

Idk. why would it fail to save in the first place? Seems like an arbitrary point to add a localized notification...

You're the one that added the check. If its unexpected behavior, throw.

Copy link
Contributor

Choose a reason for hiding this comment

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

Btw, on the localized notification thing - does it need to be localized? I mean, you can just pass a string to the notifications, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't add anything. I just moved the code.
Also, what would a user faced message achieve if I'm not an english speaker and some random text appears for 3 seconds?

{
home_menu_entry::home_menu_entry(const std::string& text)
{
std::unique_ptr<overlay_element> text_stack = std::make_unique<vertical_layout>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, these can be objects.

// In header file
vertical_layout m_text_stack;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add_element takes a unique_ptr and moves it

@Megamouse Megamouse merged commit cfb7889 into RPCS3:master Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants