summaryrefslogtreecommitdiff
path: root/src/strife/m_menu.c
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-04-19joystick: Add joystick button to toggle menu.Simon Howard
When using a joystick or gamepad it's nice to be able to bring up the menu without having to reach for the keyboard. This makes modern gamepads more useful/usable.
2014-03-29strife: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2014-03-23Set default for key_menu_screenshot to 0.Simon Howard
In #364 I recommended -1 as the default to avoid taking screenshots in some situations where a key event is posted for key 0. It turns out that wasn't such a great idea, as -1 is not parsed properly by the config parser, and is shown as ??-1 in the setup tool. Default to zero instead, and add guards to prevent screenshots being taken by mistake. Thanks to Alexandre-Xavier for pointing this out.
2014-03-18Add a dedicated key for taking screenshots.Fabian Greffrath
2013-10-28Fix Vanilla behavior of shift key when entering savegame names in theSimon Howard
menu (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2723
2013-09-22Small fix to a big problem regarding save slots.James Haley
Subversion-branch: /branches/v2-branch Subversion-revision: 2679
2013-09-04Extend "emulation" of menu pause key behavior to caps/num/scroll lockSimon Howard
keys, which cause the same behavior. Subversion-branch: /branches/v2-branch Subversion-revision: 2632
2013-08-17Fix Chocolate Doom/Strife to emulate weird Vanilla behavior when theSimon Howard
pause key is pressed in a menu with a scroll-bar (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2620
2013-03-02Complete support for v1.31 behaviors in addition to v1.2, including theJames Haley
ability to save on multiple save slots. Subversion-branch: /branches/v2-branch Subversion-revision: 2561
2012-12-24Fix compiler warnings by removing variables that are set but not used.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2555
2011-10-29Enable gcc warning to detect redundant declarations, and clean upSimon Howard
instances of this within the code (thanks Edward-san). Subversion-branch: /branches/v2-branch Subversion-revision: 2468
2011-10-20Confirm quit game when the window close button is clicked a second time.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2449
2011-09-24Don't allow menu actions when running with -testcontrols. QuitSimon Howard
immediately when pressing the window close button. Subversion-branch: /branches/v2-branch Subversion-revision: 2400
2011-06-04Resolved some TODOs and fixed a couple of problem spots that wereJames Haley
forgotten. Subversion-branch: /branches/strife-branch Subversion-revision: 2344
2011-02-20Removed ability to disable messages, and replaced with configurationJames Haley
variable to control dialogue text messages, as in vanilla. Also, absence of voices.wad, or use of the -novoices parameter, will now properly both disable voices AND enable dialogue text. Subversion-branch: /branches/strife-branch Subversion-revision: 2268
2011-02-12Merge from raven-branch. FEATURE_MULTIPLAYER has been disabledSimon Howard
temporarily until the netgame changes on raven-branch are finished. Subversion-branch: /branches/strife-branch Subversion-revision: 2259
2011-02-12Bug fix for save/load/name your character menus, and some tweaks to theJames Haley
project files. Subversion-branch: /branches/strife-branch Subversion-revision: 2256
2011-02-12Savegame code complete, hubs functional. Chocolate Strife is playable!James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2255
2010-10-05Fix for menu messages - unpause when dismissed.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2159
2010-09-28Enable useyfont parameter of M_DialogDimMsg for proper dimensioning ofJames Haley
mission objective text. Fix for implicit declaration warning on HUlib_drawYellowText in m_menu.c. Subversion-branch: /branches/strife-branch Subversion-revision: 2147
2010-09-22Added linetype 180 to P_ShootSpecialLine and vetted other line types.James Haley
Removed episode parameter from G_DeferedInitNew, started work on the "Name Your Character" menu, and adjusted the temporary code in M_ChooseSkill so that the game starts in Tarnhill rather than in the Sanctuary. Subversion-branch: /branches/strife-branch Subversion-revision: 2131
2010-09-22Rewrote P_GiveItemToPlayer to exactly match binary, particularly withJames Haley
treatment of SPR_TOKN objects, and playing proper sounds for different item types. Fixed most S_StartSound calls in the menu engine. Removed call to S_StopSound in S_StartSound, as Strife doesn't do it. Added call to P_DialogDoChoice(-1) in M_Responder when menuindialog is asserted and the menu exit key is pressed. Subversion-branch: /branches/strife-branch Subversion-revision: 2130
2010-09-18Upped warning level and started fixing warnings - can't believe someJames Haley
genius had them completely disabled... Also, a bug fix to EV_ClearForceFields so that it continues running on all tagged sectors even if sec->linecount is 0, and so that it returns a value. Made dialogtext and M_WriteText's 3rd parameter const for safety. Subversion-branch: /branches/strife-branch Subversion-revision: 2108
2010-09-13Use DEH_snprintf where appropriate.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 2083
2010-09-12I munged up A_CrusaderAttack pretty good, but it's fixed now.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2074
2010-09-12Functional demosequence for storyboard intro and exit outro.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2071
2010-09-09Merge from raven-branch.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 2051
2010-09-08Small comment change, tabs out of M_Responder for editability.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2043
2010-09-08Functional menupause/menupausetime, fix to wait when there's not aJames Haley
background pic, and elimination of more dead code in the menu system Subversion-branch: /branches/strife-branch Subversion-revision: 2042
2010-09-05Corrections to some of Kaiser's previous commits. Also, significant workJames Haley
on dialog engine, p_enemy code, and support for all new mapthing_t flag values in P_SpawnMapThing. Subversion-branch: /branches/strife-branch Subversion-revision: 2015
2010-09-03+ More button flags added to buttoncode_eSamuel Villareal
+ Looking/jumping implemented + Jump/look/center keys supported + Strife mouse firing bug implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2003
2010-08-31Replace M_NEWG with M_NGAME in menus, disable DOOM status bar, and getJames Haley
the proper music playing on all levels. This really feels like Strife now :) Subversion-branch: /branches/strife-branch Subversion-revision: 1990
2010-08-31+ Strife music/sound implementedSamuel Villareal
+ All doom sound references replaced with sfx_swish as placeholder + Removed all but MT_PLAYER mobjinfo in mobjinfo struct Subversion-branch: /branches/strife-branch Subversion-revision: 1980
2010-08-30Added declaration and definition of menupause variable. Also uncommentedJames Haley
sound play in P_MoveWall since it's a sound that's shared with DOOM :) Subversion-branch: /branches/strife-branch Subversion-revision: 1975
2010-08-29Added voice volume and back flat configuration variables. Made statusJames Haley
bar redraw when menus are active as in Strife. Finished up the Strife "settings" menu which was only for sound volumes in vanilla Doom. Subversion-branch: /branches/strife-branch Subversion-revision: 1973
2010-08-28Changes to add all 3 help screens, and to draw menu thermometersJames Haley
correctly. Do *NOT* access the help screens, as they currently draw a patch partway off the bottom of the screen - needs/relies on a fix to V_DrawPatchDirect. Subversion-branch: /branches/strife-branch Subversion-revision: 1971
2010-08-28Added crossfade wipe and code to load XLATAB lump. Changes to the menuJames Haley
system including working Sigil cursor, alignment changes, shortcut character changes, and removal of items from the options menu that Strife put elsewhere. Initial sweep for global lump name changes completed: AMMNUM%d -> PLMNUM%d, M_DOOM -> M_STRIFE, M_OPTTTL -> M_OPTION, STTMINUS -> STCFN045, et al. A dummy modified Strife IWAD must be loaded over DOOM.WAD at this point in order to run. Subversion-branch: /branches/strife-branch Subversion-revision: 1968
2010-02-01Create strife directory as a copy of doom directory, change Makefile.amSimon Howard
to build libstrife.a rather than libdoom.a, add chocolate-strife to src/Makefile.am. Subversion-branch: /branches/strife-branch Subversion-revision: 1840
2010-02-01Remove improperly-created strife directory.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 1839
2010-02-01Populated src/strife with copy of source files from src/doom - TODOs:James Haley
needs own Makefile.am, and eventual removal of modules not used by Strife / addition of modules not sharable with Doom. Subversion-branch: /branches/strife-branch Subversion-revision: 1838