-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
GUI: Dump .png files of the launcher to check UI for various translations #4844
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
Conversation
4503d43 to
207b389
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.
The file also must be added to gui/module.mk
Added couple of relatively small comments, this need some additional work
gui/dump_all_dialogs.h
Outdated
| * | ||
| */ | ||
|
|
||
| #ifndef DUMPDIALOGS_H |
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.
This must be GUI_DUMP_ALL_DIALOGS_H
| GUI::LauncherChooser chooser; | ||
| chooser.selectLauncher(); | ||
| chooser.runModal(); | ||
| g_system->grabOverlay(surf); |
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.
Starting from here, please put it into a separate method something like saveGUISnapshot().
| Graphics::Surface surf; | ||
| surf.create(g_system->getOverlayWidth(), g_system->getOverlayHeight(), g_system->getOverlayFormat()); | ||
|
|
||
| GUI::LauncherChooser chooser; |
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.
Please, add at least one more dialog to dumping.
gui/dump_all_dialogs.cpp
Outdated
|
|
||
| namespace GUI { | ||
|
|
||
| void GUI::dumpDialog(const Common::String &dialogName, int res, const Common::String &lang) { |
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.
please rename this to dumpDIalogs(), so we add more than one dialog here for dumping.
- Each resolution needs to be cycled manually in the code, default is
800x640.
- Dumps .png files in a snapshots folder for all languages at a given
resolution.
TODO:
- Cycle resolutions automatically through code.
- Add more dialogs to the dumper.
- Add arguement message with default arguement "test" - Create separate .png files for all dialogs
207b389 to
c38148f
Compare
|
Merging this |
TODO: