]> granicus.if.org Git - nethack/commit
(from <Someone>)
authornethack.allison <nethack.allison>
Fri, 8 Mar 2002 22:23:04 +0000 (22:23 +0000)
committernethack.allison <nethack.allison>
Fri, 8 Mar 2002 22:23:04 +0000 (22:23 +0000)
commitc58e5d7afd9ab9acdf1ed7e4baca713c0bec6662
tree61d3736617767f8760eaac30bdc301881537cc4b
parent416331f4d1d1492541cb103cd68240f7f2c1c21f
(from <Someone>)
This patch implements Michael's idea to have a "NetHack mode" for
keypresses. It only does the Alt-keys now, but it should be easy
to extend to pressing space in dialogs; I left that out as we still
have to agree on a new dialog look.

The setting that you choose from the menu is stored in the registry.
Reading and writing the registry is done on init_nhwindows and
exit_nhwindows; there also is a menu item to delete the registry
settings (which makes sure they are not stored again this session.)
This provides a framework for future registry settings.

Also,
Alt-tab should show the app title when a menu or text window is up.

I left the app title as it was, although I still favour "Graphical
Version" or "With Graphics"; Anyway, that's only one resource string.
win/win32/mhmain.c
win/win32/mhmain.h
win/win32/mhmenu.c
win/win32/mhtext.c
win/win32/mswproc.c
win/win32/resource.h
win/win32/winMS.h
win/win32/winhack.rc