KEMBAR78
GUI: Dump .png files of the launcher to check UI for various translations by PhoenixFlame101 · Pull Request #4844 · scummvm/scummvm · GitHub
Skip to content

Conversation

@PhoenixFlame101
Copy link
Contributor

  • Each resolution needs to be cycled manually in the code, default is 800x640.
  • Dumps .png files in the root folder for all languages at a given resolution.

TODO:

  • Cycle resolutions automatically through code.

@PhoenixFlame101 PhoenixFlame101 force-pushed the dump-dialogs branch 2 times, most recently from 4503d43 to 207b389 Compare March 25, 2023 15:02
@PhoenixFlame101 PhoenixFlame101 changed the title Dump .png files of the launcher to check UI for various translations GUI: Dump .png files of the launcher to check UI for various translations Mar 26, 2023
Copy link
Member

@sev- sev- left a 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

*
*/

#ifndef DUMPDIALOGS_H
Copy link
Member

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);
Copy link
Member

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;
Copy link
Member

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.


namespace GUI {

void GUI::dumpDialog(const Common::String &dialogName, int res, const Common::String &lang) {
Copy link
Member

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
@sev-
Copy link
Member

sev- commented May 14, 2023

Merging this

@sev- sev- merged commit 7bbd62e into scummvm:master May 14, 2023
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