refined texts for WhatsNewDialog

This commit is contained in:
thrust26 2020-07-30 22:19:12 +02:00
parent 03f3c25c78
commit c1c29fb4f0
2 changed files with 20 additions and 10 deletions

View File

@ -14,9 +14,9 @@
6.2.1 to 6.3 (XXXX XX, 2020) 6.2.1 to 6.3 (XXXX XX, 2020)
* Added autofire. * Added adjustable autofire.
* Added new UI theme 'Dark'. (TODO: DOC) * Added 'Dark' UI theme. (TODO: DOC)
* Extended global hotkeys for debug options. * Extended global hotkeys for debug options.

View File

@ -24,7 +24,11 @@ constexpr int MAX_CHARS = 64; // maximum number of chars per line
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
WhatsNewDialog::WhatsNewDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font, WhatsNewDialog::WhatsNewDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font,
int max_w, int max_h) int max_w, int max_h)
#if defined(RETRON77)
: Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + " for RetroN 77?")
#else
: Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + "?") : Dialog(osystem, parent, font, "What's New in Stella " + string(STELLA_VERSION) + "?")
#endif
{ {
const int fontHeight = _font.getFontHeight(), const int fontHeight = _font.getFontHeight(),
fontWidth = _font.getMaxCharWidth(), fontWidth = _font.getMaxCharWidth(),
@ -39,20 +43,26 @@ WhatsNewDialog::WhatsNewDialog(OSystem& osystem, DialogContainer& parent, const
setSize(MAX_CHARS * fontWidth + HBORDER * 2, max_h, setSize(MAX_CHARS * fontWidth + HBORDER * 2, max_h,
max_w, max_h); max_w, max_h);
add(ypos, "added autofire"); #if defined(RETRON77)
add(ypos, "added new UI theme 'Dark'"); add(ypos, "added adjustable autofire (see 'Advanced Settings')");
add(ypos, "extended global hotkeys for debug options"); add(ypos, "added new UI theme 'Dark' (see 'Advanced Settings')");
#else
add(ypos, "added adjustable autofire");
add(ypos, "added 'Dark' UI theme");
//add(ypos, "extended global hotkeys for debug options");
add(ypos, "added option to playback a game using the Time Machine"); add(ypos, "added option to playback a game using the Time Machine");
add(ypos, "allow taking snapshots from within the Time Machine dialog"); //add(ypos, "allow taking snapshots from within the Time Machine dialog");
add(ypos, "added the ability to access most files that Stella uses from within a ZIP file"); add(ypos, "added the ability to access most files that Stella uses from within a ZIP file");
add(ypos, "added option to select the audio device"); add(ypos, "added option to select the audio device");
add(ypos, "added option to display detected settings info when a ROM is loaded"); //add(ypos, "added option to display detected settings info when a ROM is loaded");
add(ypos, "replaced 'Re-disassemble' with 'Disassemble @ current line' in debugger"); //add(ypos, "replaced 'Re-disassemble' with 'Disassemble @ current line' in debugger");
add(ypos, "fixed bug when taking fullscreen snapshots; the dimensions were sometimes cut"); //add(ypos, "fixed bug when taking fullscreen snapshots; the dimensions were sometimes cut");
add(ypos, ELLIPSIS + " (for a complete list see 'docs/Changes.txt')");
#endif
// Set needed dimensions // Set needed dimensions
setSize(MAX_CHARS * fontWidth + HBORDER * 2, setSize(MAX_CHARS * fontWidth + HBORDER * 2,
ypos + VGAP + buttonHeight + VBORDER, ypos + VGAP * 2 + buttonHeight + VBORDER,
max_w, max_h); max_w, max_h);
WidgetArray wid; WidgetArray wid;