-
Notifications
You must be signed in to change notification settings - Fork 1
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
Trophy img #19
Trophy img #19
Conversation
WalkthroughThe recent updates enhance the application by introducing a configurable screenshot format (supporting JPEG and PNG) and enabling the option to disable motion input for controllers. The GUI has been improved to display motion support status alongside a checkbox for toggling motion functionality. These enhancements collectively aim to provide a more customizable and user-friendly experience for managing screenshots and controller input. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GUI
participant Config
participant Screenshot
User->>GUI: Open Settings Dialog
GUI-->>Config: Fetch `screenshot-format`
Config-->>GUI: Return default (JPEG)
User->>GUI: Select `PNG`
GUI-->>Config: Update `screenshot-format`
User->>Screenshot: Take Screenshot
Screenshot->>Config: Fetch `screenshot-format`
Config-->>Screenshot: Return `PNG`
Screenshot-->>User: Save screenshot as PNG
This diagram illustrates the interaction flow as the user selects a screenshot format and takes a screenshot, demonstrating how the configuration influences the output. Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (5)
Files skipped from review as they are similar to previous changes (2)
Additional comments not posted (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Outside diff range and nitpick comments (2)
vita3k/ctrl/include/ctrl/state.h (1)
61-61
: Add a comment to explain the purpose of the new array.The new array
controllers_has_motion_support
tracks motion support status for each controller. Adding a comment would improve code readability.// Tracks motion support status for each controller bool controllers_has_motion_support[SCE_CTRL_MAX_WIRELESS_NUM] = { false, false, false, false };vita3k/gui/src/settings_dialog.cpp (1)
931-931
: Add a comment to explain the new section.Adding a comment to explain the new section for selecting the screenshot image type would improve readability and maintainability.
// Section for selecting the screenshot image type
const char *LIST_IMG_FORMAT[] = { "NULL", "JPEG", "PNG" }; | ||
ImGui::Combo("Screenshot format", &emuenv.cfg.screenshot_format, LIST_IMG_FORMAT, IM_ARRAYSIZE(LIST_IMG_FORMAT)); |
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.
Consider refining the format selection options.
The first option "NULL" might be confusing. Consider renaming it to "None" to be consistent with the enum values.
- const char *LIST_IMG_FORMAT[] = { "NULL", "JPEG", "PNG" };
+ const char *LIST_IMG_FORMAT[] = { "None", "JPEG", "PNG" };
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
const char *LIST_IMG_FORMAT[] = { "NULL", "JPEG", "PNG" }; | |
ImGui::Combo("Screenshot format", &emuenv.cfg.screenshot_format, LIST_IMG_FORMAT, IM_ARRAYSIZE(LIST_IMG_FORMAT)); | |
const char *LIST_IMG_FORMAT[] = { "None", "JPEG", "PNG" }; | |
ImGui::Combo("Screenshot format", &emuenv.cfg.screenshot_format, LIST_IMG_FORMAT, IM_ARRAYSIZE(LIST_IMG_FORMAT)); |
11347bb
to
7e4c12d
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
vita3k/gui/src/settings_dialog.cpp (1)
931-931
: Add spacing for better readability.Adding spacing before the separator improves readability and maintains consistency with other sections.
+ ImGui::Spacing();
6e4eb9f
to
0bdbf7c
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
vita3k/gui/src/manual.cpp (1)
171-172
: Document the change in mouse button interaction.The mouse button used to toggle the visibility of the button has been changed from left-click to right-click. Ensure this change is documented in the user manual or release notes to inform users.
9532e11
to
108bab1
Compare
e59bace
to
e0b9f5f
Compare
- Add option to disable motion - Add jpeg format support for screenshots
No description provided.