specifies duplicate accelerator keystrokes Reported and diagnosed nine and half years ago but never fixed. In the WinGUI-specific help menu (under the titlebar, not nethack's '?' command), both "&Long description of the game" and "&Longer list of game options" use &L as accelerator. Typing 'L' or 'l' highlights one of the entries, then <enter> is needed to execute it or typing another 'L' or 'l' unhighlights it and highlights the other. Other accelerators in that menu execute their entries immediately, without the need for <enter>. Change the first one to "Long description of the &game" so that 'G' or 'g' becomes its accelerator. That menu is missing several things that have been added to the menu for '?'. I put in placeholder comments for them but won't pursue them further. Untested.
409 lines
12 KiB
Plaintext
409 lines
12 KiB
Plaintext
// Microsoft Visual C++ generated resource script.
|
|
//
|
|
#include "resource.h"
|
|
|
|
#define APSTUDIO_READONLY_SYMBOLS
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 2 resource.
|
|
//
|
|
#if defined(__BORLANDC__)
|
|
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
|
|
#endif
|
|
#define APSTUDIO_HIDDEN_SYMBOLS
|
|
#include "windows.h"
|
|
#undef APSTUDIO_HIDDEN_SYMBOLS
|
|
#include "resource.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#undef APSTUDIO_READONLY_SYMBOLS
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// English (United States) resources
|
|
|
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
#pragma code_page(1252)
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Icon
|
|
//
|
|
|
|
// Icon with lowest ID value placed first to ensure application icon
|
|
// remains consistent on all systems.
|
|
IDI_NETHACKW ICON "NETHACK.ICO"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Menu
|
|
//
|
|
|
|
IDC_NETHACKW MENU
|
|
BEGIN
|
|
POPUP "&File"
|
|
BEGIN
|
|
MENUITEM "&Save and Exit", IDM_SAVE
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "&Quit", IDM_EXIT
|
|
END
|
|
POPUP "&Map"
|
|
BEGIN
|
|
MENUITEM "&0 - Use Tiles", IDM_MAP_TILES
|
|
MENUITEM "&1 - ASCII (4x6)", IDM_MAP_ASCII4X6
|
|
MENUITEM "&2 - ASCII (6x8)", IDM_MAP_ASCII6X8
|
|
MENUITEM "&3 - ASCII (8x8)", IDM_MAP_ASCII8X8
|
|
MENUITEM "&4 - ASCII (16x8)", IDM_MAP_ASCII16X8
|
|
MENUITEM "&5 - ASCII (7x12)", IDM_MAP_ASCII7X12
|
|
MENUITEM "&6 - ASCII (8x12)", IDM_MAP_ASCII8X12
|
|
MENUITEM "&7 - ASCII (16x12)", IDM_MAP_ASCII16X12
|
|
MENUITEM "&8 - ASCII (12x16)", IDM_MAP_ASCII12X16
|
|
MENUITEM "&9 - ASCII (10x18)", IDM_MAP_ASCII10X18
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "&Fit To Screen ", IDM_MAP_FIT_TO_SCREEN
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "&Copy To Clipboard (ASCII)", IDM_SETTING_SCREEN_TO_CLIPBOARD
|
|
MENUITEM "&Save to File (ASCII)", IDM_SETTING_SCREEN_TO_FILE
|
|
END
|
|
POPUP "Windows &Settings"
|
|
BEGIN
|
|
MENUITEM "NetHack Mode", IDM_NHMODE
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "&Clear All Settings", IDM_CLEARSETTINGS
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "Auto &Arrange Windows", IDM_SETTING_AUTOLAYOUT
|
|
MENUITEM "&Lock Windows", IDM_SETTING_LOCKWINDOWS
|
|
END
|
|
POPUP "&Help"
|
|
// 3.7: HELP_LONG and HELP_OPTIONS_LONG both used to specify &L as their
|
|
// accelator. Typing 'L' or 'l' highlighted one of the two, then <enter>
|
|
// would execute it or typing another 'l' or 'L' would unhighlight the
|
|
// currently highlit one and highlight the other. All other accelerators
|
|
// just run the relevant entry without needing <enter>. HELP_LONG has
|
|
// finally been changed to &g for "game".
|
|
//
|
|
// "// {...}" lines are placeholders for missing entries that are more
|
|
// recent than this resource file. The wizard mode one may need to
|
|
// stay suppressed since it is conditional.
|
|
BEGIN
|
|
MENUITEM "&About ...", IDM_ABOUT
|
|
MENUITEM "Long description of the &game", IDM_HELP_LONG
|
|
MENUITEM "List of &commands", IDM_HELP_COMMANDS
|
|
MENUITEM "&History of NetHack", IDM_HELP_HISTORY
|
|
MENUITEM "&Info on a display character", IDM_HELP_INFO_CHAR
|
|
MENUITEM "Info on what a given &key does", IDM_HELP_INFO_KEY
|
|
MENUITEM "List of game &options", IDM_HELP_OPTIONS
|
|
MENUITEM "&Longer list of game options", IDM_HELP_OPTIONS_LONG
|
|
// { dispfile_optmenu, "Using the %s command to set options." } //"'O'"
|
|
// { dokeylist, "Full list of keyboard commands." }
|
|
MENUITEM "List of e&xtended commands", IDM_HELP_EXTCMD
|
|
// { domenucontrols, "List menu control keys." }
|
|
MENUITEM "The &NetHack license", IDM_HELP_LICENSE
|
|
// { docontact, "Support information." }
|
|
MENUITEM "NetHack for &Windows help", IDM_HELP_PORTHELP
|
|
// { dispfile_debughelp, "List of wizard-mode commands." }
|
|
END
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Accelerator
|
|
//
|
|
|
|
IDC_NETHACKW ACCELERATORS
|
|
BEGIN
|
|
"?", IDM_ABOUT, ASCII, ALT
|
|
"/", IDM_ABOUT, ASCII, ALT
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialog
|
|
//
|
|
|
|
IDD_ABOUTBOX DIALOG 22, 17, 230, 75
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "About"
|
|
FONT 8, "System"
|
|
BEGIN
|
|
LTEXT "NetHack",IDC_ABOUT_VERSION,10,10,170,15,SS_NOPREFIX
|
|
LTEXT "Copyright",IDC_ABOUT_COPYRIGHT,10,30,210,40
|
|
DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP
|
|
END
|
|
|
|
IDD_NHTEXT DIALOGEX 0, 0, 172, 178
|
|
STYLE DS_SETFONT | WS_CHILD | WS_CLIPSIBLINGS | WS_THICKFRAME
|
|
EXSTYLE WS_EX_CLIENTEDGE | WS_EX_CONTROLPARENT
|
|
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
|
BEGIN
|
|
EDITTEXT IDC_TEXT_CONTROL,0,0,172,160,ES_MULTILINE | ES_OEMCONVERT | ES_READONLY | WS_VSCROLL | WS_HSCROLL | NOT WS_TABSTOP
|
|
DEFPUSHBUTTON "OK",IDOK,54,163,50,14,BS_FLAT | NOT WS_TABSTOP
|
|
END
|
|
|
|
IDD_MENU DIALOGEX 0, 0, 187, 153
|
|
STYLE DS_SETFONT | WS_CHILD | WS_CLIPSIBLINGS | WS_THICKFRAME
|
|
EXSTYLE WS_EX_CLIENTEDGE | WS_EX_CONTROLPARENT
|
|
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
|
BEGIN
|
|
LISTBOX IDC_MENU_LIST,10,10,170,55,LBS_SORT | NOT WS_BORDER
|
|
EDITTEXT IDC_MENU_TEXT,10,70,170,60,ES_MULTILINE | ES_OEMCONVERT | ES_READONLY | NOT WS_BORDER | WS_VSCROLL | WS_HSCROLL | NOT WS_TABSTOP
|
|
DEFPUSHBUTTON "OK",IDOK,7,132,50,14,BS_FLAT | NOT WS_TABSTOP
|
|
PUSHBUTTON "Cancel",IDCANCEL,130,132,50,14,BS_FLAT | NOT WS_TABSTOP
|
|
END
|
|
|
|
IDD_GETLIN DIALOG 0, 0, 131, 29
|
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Question?"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK",IDOK,0,15,65,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,65,15,65,14
|
|
EDITTEXT IDC_GETLIN_EDIT,0,0,130,13,ES_AUTOHSCROLL
|
|
END
|
|
|
|
IDD_EXTCMD DIALOG 0, 0, 137, 117
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Extended Commands"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK",IDOK,80,7,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,80,24,50,14
|
|
LISTBOX IDC_EXTCMD_LIST,7,7,65,103,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
|
END
|
|
|
|
IDD_PLAYER_SELECTOR DIALOGEX 0, 0, 225, 212
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "What are you?"
|
|
FONT 8, "MS Sans Serif", 0, 0, 0x0
|
|
BEGIN
|
|
DEFPUSHBUTTON "Play",IDOK,12,192,54,14,WS_GROUP
|
|
PUSHBUTTON "Quit",IDCANCEL,162,192,54,14,WS_GROUP
|
|
EDITTEXT IDC_PLSEL_NAME,12,12,105,12,ES_AUTOHSCROLL | ES_READONLY | WS_GROUP | NOT WS_TABSTOP
|
|
CONTROL "Neutral",IDC_PLSEL_ALIGN_NEUTRAL,"Button",BS_AUTORADIOBUTTON,168,60,37,10
|
|
CONTROL "Lawful",IDC_PLSEL_ALIGN_LAWFUL,"Button",BS_AUTORADIOBUTTON | WS_GROUP,168,48,35,10
|
|
CONTROL "Chaotic",IDC_PLSEL_ALIGN_CHAOTIC,"Button",BS_AUTORADIOBUTTON,168,72,38,10
|
|
CONTROL "Male",IDC_PLSEL_GENDER_MALE,"Button",BS_AUTORADIOBUTTON | WS_GROUP,168,108,30,10
|
|
CONTROL "Female",IDC_PLSEL_GENDER_FEMALE,"Button",BS_AUTORADIOBUTTON,168,120,38,10
|
|
GROUPBOX "Alignment",IDC_PLSEL_ALIGNMENT_GROUP,162,36,48,54
|
|
GROUPBOX "Gender",IDC_PLSEL_GENDER_GROUP,162,96,48,42
|
|
GROUPBOX "Role",IDC_PLSEL_ROLE_GROUP,6,36,72,150
|
|
GROUPBOX "Race",IDC_PLSEL_RACE_GROUP,84,36,72,72
|
|
PUSHBUTTON "Random",IDC_PLSEL_RANDOM,90,192,54,14,WS_GROUP
|
|
GROUPBOX "Name",IDC_PLSEL_NAME_GROUP,6,0,120,30
|
|
CONTROL "",IDC_PLSEL_ROLE_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_OWNERDRAWFIXED | LVS_ALIGNLEFT | LVS_NOSCROLL | LVS_NOCOLUMNHEADER | WS_BORDER | WS_GROUP | WS_TABSTOP,12,48,60,130
|
|
CONTROL "",IDC_PLSEL_RACE_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_OWNERDRAWFIXED | LVS_ALIGNLEFT | LVS_NOSCROLL | LVS_NOCOLUMNHEADER | WS_BORDER | WS_GROUP | WS_TABSTOP,90,48,60,51
|
|
END
|
|
|
|
IDD_NHRIP DIALOGEX 0, 0, 281, 209
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Here lies..."
|
|
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK",IDOK,82,188,50,14
|
|
END
|
|
|
|
IDD_SPLASH DIALOG 0, 0, 281, 257
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Welcome to NetHack"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK",IDOK,224,236,50,14
|
|
EDITTEXT IDC_EXTRAINFO,7,176,267,52,ES_MULTILINE | ES_READONLY | WS_VSCROLL
|
|
END
|
|
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// TEXTINCLUDE
|
|
//
|
|
|
|
2 TEXTINCLUDE
|
|
BEGIN
|
|
"#if defined(__BORLANDC__)\r\n"
|
|
"LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US\r\n"
|
|
"#endif\r\n"
|
|
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
|
"#include ""windows.h""\r\n"
|
|
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
|
"#include ""resource.h""\r\n"
|
|
"\0"
|
|
END
|
|
|
|
3 TEXTINCLUDE
|
|
BEGIN
|
|
"\r\n"
|
|
"\0"
|
|
END
|
|
|
|
1 TEXTINCLUDE
|
|
BEGIN
|
|
"resource.h\0"
|
|
END
|
|
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Bitmap
|
|
//
|
|
|
|
IDB_TILES BITMAP "tiles.bmp"
|
|
|
|
IDB_MENU_SEL BITMAP "mnsel.bmp"
|
|
|
|
IDB_MENU_UNSEL BITMAP "mnunsel.bmp"
|
|
|
|
IDB_PETMARK BITMAP "petmark.bmp"
|
|
|
|
IDB_PILEMARK BITMAP "pilemark.bmp"
|
|
|
|
IDB_MENU_SEL_COUNT BITMAP "mnselcnt.bmp"
|
|
|
|
IDB_RIP BITMAP "rip.bmp"
|
|
|
|
IDB_SPLASH BITMAP "splash.bmp"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// DESIGNINFO
|
|
//
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
GUIDELINES DESIGNINFO
|
|
BEGIN
|
|
IDD_NHTEXT, DIALOG
|
|
BEGIN
|
|
BOTTOMMARGIN, 177
|
|
END
|
|
|
|
IDD_MENU, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 180
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 146
|
|
END
|
|
|
|
IDD_GETLIN, DIALOG
|
|
BEGIN
|
|
BOTTOMMARGIN, 22
|
|
END
|
|
|
|
IDD_EXTCMD, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 130
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 110
|
|
END
|
|
|
|
IDD_PLAYER_SELECTOR, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 218
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 205
|
|
END
|
|
|
|
IDD_NHRIP, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 274
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 202
|
|
END
|
|
|
|
IDD_SPLASH, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 274
|
|
BOTTOMMARGIN, 250
|
|
END
|
|
END
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Version
|
|
//
|
|
|
|
VS_VERSION_INFO VERSIONINFO
|
|
FILEVERSION 3,7,0,0
|
|
PRODUCTVERSION 3,7,0,0
|
|
FILEFLAGSMASK 0x1fL
|
|
#ifdef _DEBUG
|
|
FILEFLAGS 0x9L
|
|
#else
|
|
FILEFLAGS 0x8L
|
|
#endif
|
|
FILEOS 0x4L
|
|
FILETYPE 0x0L
|
|
FILESUBTYPE 0x0L
|
|
BEGIN
|
|
BLOCK "StringFileInfo"
|
|
BEGIN
|
|
BLOCK "040904b0"
|
|
BEGIN
|
|
VALUE "FileDescription", "NetHack for Windows - Graphical Interface"
|
|
VALUE "FileVersion", "3.7.0"
|
|
VALUE "InternalName", "NetHackW"
|
|
VALUE "LegalCopyright", "Copyright (C) 1985 - 2021. By Stichting Mathematisch Centrum and M. Stephenson. See license for details."
|
|
VALUE "OriginalFilename", "NetHackW.exe"
|
|
VALUE "PrivateBuild", "140606"
|
|
VALUE "ProductName", "NetHack"
|
|
VALUE "ProductVersion", "3.7.0"
|
|
END
|
|
END
|
|
BLOCK "VarFileInfo"
|
|
BEGIN
|
|
VALUE "Translation", 0x409, 1200
|
|
END
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// AFX_DIALOG_LAYOUT
|
|
//
|
|
|
|
IDD_PLAYER_SELECTOR AFX_DIALOG_LAYOUT
|
|
BEGIN
|
|
0
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// String Table
|
|
//
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_APP_TITLE "NetHack for Windows - Graphical Interface"
|
|
IDC_NETHACKW "NETHACKW"
|
|
IDS_APP_TITLE_SHORT "NetHack for Windows"
|
|
END
|
|
|
|
#endif // English (United States) resources
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 3 resource.
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif // not APSTUDIO_INVOKED
|
|
|