mirror of https://github.com/stella-emu/stella.git
Updated UI help dialog, fixing some out of date info and adding
a TV filtering section. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2754 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
f3d412fce7
commit
98886f8850
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#define STELLA_VERSION "3.9_beta2"
|
#define STELLA_VERSION "3.9_beta3"
|
||||||
#define STELLA_BUILD atoi("$Rev$" + 6)
|
#define STELLA_BUILD atoi("$Rev$" + 6)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,7 +33,7 @@ HelpDialog::HelpDialog(OSystem* osystem, DialogContainer* parent,
|
||||||
const GUI::Font& font)
|
const GUI::Font& font)
|
||||||
: Dialog(osystem, parent, 0, 0, 0, 0),
|
: Dialog(osystem, parent, 0, 0, 0, 0),
|
||||||
myPage(1),
|
myPage(1),
|
||||||
myNumPages(4)
|
myNumPages(5)
|
||||||
{
|
{
|
||||||
const int lineHeight = font.getLineHeight(),
|
const int lineHeight = font.getLineHeight(),
|
||||||
fontWidth = font.getMaxCharWidth(),
|
fontWidth = font.getMaxCharWidth(),
|
||||||
|
@ -99,6 +99,11 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
|
||||||
#define ADD_BIND(k,d) do { myKeyStr[i] = k; myDescStr[i] = d; i++; } while(0)
|
#define ADD_BIND(k,d) do { myKeyStr[i] = k; myDescStr[i] = d; i++; } while(0)
|
||||||
#define ADD_TEXT(d) ADD_BIND("",d)
|
#define ADD_TEXT(d) ADD_BIND("",d)
|
||||||
#define ADD_LINE ADD_BIND("","")
|
#define ADD_LINE ADD_BIND("","")
|
||||||
|
#ifdef MAC_OSX
|
||||||
|
#define ALT_ "Cmd"
|
||||||
|
#else
|
||||||
|
#define ALT_ "Alt"
|
||||||
|
#endif
|
||||||
|
|
||||||
uInt8 i = 0;
|
uInt8 i = 0;
|
||||||
switch(page)
|
switch(page)
|
||||||
|
@ -110,24 +115,15 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
|
||||||
#else
|
#else
|
||||||
ADD_BIND("Cmd Q", "Quit emulation");
|
ADD_BIND("Cmd Q", "Quit emulation");
|
||||||
#endif
|
#endif
|
||||||
ADD_BIND("Escape", "Exit current game");
|
ADD_BIND("Escape", "Exit current game");
|
||||||
ADD_BIND("Tab", "Enter options menu");
|
ADD_BIND("Tab", "Enter options menu");
|
||||||
ADD_BIND("\\", "Toggle command menu");
|
ADD_BIND("\\", "Toggle command menu");
|
||||||
#ifndef MAC_OSX
|
ADD_BIND(ALT_" =", "Increase window size");
|
||||||
ADD_BIND("Alt =", "Increase window size");
|
ADD_BIND(ALT_" -", "Decrease window size");
|
||||||
ADD_BIND("Alt -", "Decrease window size");
|
ADD_BIND(ALT_" Enter", "Toggle fullscreen /");
|
||||||
ADD_BIND("Alt Enter", "Toggle fullscreen /");
|
ADD_BIND("", " windowed mode");
|
||||||
ADD_BIND("", " windowed mode");
|
ADD_BIND(ALT_" ]", "Increase volume by 2%");
|
||||||
ADD_BIND("Alt ]", "Increase volume by 2%");
|
ADD_BIND(ALT_" [", "Decrease volume by 2%");
|
||||||
ADD_BIND("Alt [", "Decrease volume by 2%");
|
|
||||||
#else
|
|
||||||
ADD_BIND("Cmd =", "Increase window size");
|
|
||||||
ADD_BIND("Cmd -", "Decrease window size");
|
|
||||||
ADD_BIND("Cmd Enter", "Toggle fullscreen /");
|
|
||||||
ADD_BIND("", " windowed mode");
|
|
||||||
ADD_BIND("Cmd ]", "Increase volume by 2%");
|
|
||||||
ADD_BIND("Cmd [", "Decrease volume by 2%");
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -137,26 +133,35 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
|
||||||
ADD_BIND("Ctrl s", "Save game properties");
|
ADD_BIND("Ctrl s", "Save game properties");
|
||||||
ADD_BIND("", " to a new file");
|
ADD_BIND("", " to a new file");
|
||||||
ADD_LINE;
|
ADD_LINE;
|
||||||
ADD_BIND("Ctrl 0", "Mouse emulates paddle 0");
|
ADD_BIND("Ctrl 0", "Toggle controller for Mouse");
|
||||||
ADD_BIND("Ctrl 1", "Mouse emulates paddle 1");
|
ADD_BIND("Ctrl 1", "Toggle Stelladaptor left/right");
|
||||||
ADD_BIND("Ctrl 2", "Mouse emulates paddle 2");
|
|
||||||
ADD_BIND("Ctrl 3", "Mouse emulates paddle 3");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
|
title = "TV Filters:";
|
||||||
|
ADD_BIND(ALT_" 1", "Disable filtering");
|
||||||
|
ADD_BIND(ALT_" 2", "Enable 'Composite' mode");
|
||||||
|
ADD_BIND(ALT_" 3", "Enable 'S-video' mode");
|
||||||
|
ADD_BIND(ALT_" 4", "Enable 'RGB' mode");
|
||||||
|
ADD_BIND(ALT_" 5", "Enable 'Bad Adjust' mode");
|
||||||
|
ADD_BIND(ALT_" 6", "Enable 'Custom' mode");
|
||||||
|
ADD_BIND(ALT_" 7", "Adjust scanline intensity");
|
||||||
|
ADD_BIND(ALT_" 8", "Toggle scanline interpol.");
|
||||||
|
ADD_BIND(ALT_" 9", "Select 'Custom' adjustable");
|
||||||
|
ADD_BIND(ALT_" 0", "Modify 'Custom' adjustable");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
title = "Developer commands:";
|
title = "Developer commands:";
|
||||||
#ifndef MAC_OSX
|
ADD_BIND("~", "Enter/exit debugger");
|
||||||
ADD_BIND("Alt PgUp", "Increase Display.YStart");
|
ADD_LINE;
|
||||||
ADD_BIND("Alt PgDn", "Decrease Display.YStart");
|
ADD_BIND(ALT_" PgUp", "Increase Display.YStart");
|
||||||
#else
|
ADD_BIND(ALT_" PgDn", "Decrease Display.YStart");
|
||||||
ADD_BIND("Cmd PgUp", "Increase Display.YStart");
|
|
||||||
ADD_BIND("Cmd PgDn", "Decrease Display.YStart");
|
|
||||||
#endif
|
|
||||||
ADD_BIND("Ctrl PgUp", "Increase Display.Height");
|
ADD_BIND("Ctrl PgUp", "Increase Display.Height");
|
||||||
ADD_BIND("Ctrl PgDn", "Decrease Display.Height");
|
ADD_BIND("Ctrl PgDn", "Decrease Display.Height");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 5:
|
||||||
title = "All other commands:";
|
title = "All other commands:";
|
||||||
ADD_LINE;
|
ADD_LINE;
|
||||||
ADD_BIND("Remapped Events", "");
|
ADD_BIND("Remapped Events", "");
|
||||||
|
|
Loading…
Reference in New Issue