Commit graph

81 commits

Author SHA1 Message Date
Braden Obrzut
eb5d57be06 - Fixed: crash when closing ZDoom in the save menu and a memory leak. 2013-07-29 18:35:19 -04:00
Christoph Oelckers
10dd75f902 - externalized "New save game" line for save screen. 2013-07-14 09:31:49 +02:00
Christoph Oelckers
890dc71e0d . added AFADoomer's patch to set a text highlight color for the list menu.
SVN r4301 (trunk)
2013-05-31 22:10:12 +00:00
Randy Heit
787b84ef91 - Added CVARINFO lump support. This is a lump for defining mod-specific cvars and takes entries
of the form:
    <scope> [noarchive] <type> <name> [= <defaultvalue>];
  Where <scope> is one of:
  * server: This cvar is shared by all players, and in network games, only select players can
    change it.
  * user: Each player has their own copy of this cvar, which they can change independently.
  To prevent the cvar from being written to the config file, add noarchive to its definition.
  <Type> is one of:
  * int: An integral value. Defaults to 0.
  * float: A value that can include a fraction. Defaults to 0.0.
  * color: A color value. Default to black ("00 00 00").
  * bool: A boolean value that can hold either true or false. Defaults to false.
  * string: A string value. It's not too useful for mods but is included for completeness. Defaults to "".
  <Name> is the cvar's name and must begin with a letter and may only include alphanumeric
  characters and the underscore character.
  If you wish a non-standard default add an = character after the cvar's name followed by the
  default value you want to use. Example:
    server int mymod_coolness = 10;
- Fixed: FStringCVar::SetGenericRepDefault() did not make a copy of the input string.

SVN r4280 (trunk)
2013-05-25 16:34:23 +00:00
Randy Heit
2668988870 - Switched to a genericly extensible representation for userinfo.
- Fixed: The playerinfo CCMD did not range check the player number.

SVN r4253 (trunk)
2013-05-12 18:27:03 +00:00
Randy Heit
be0845acf1 - Moved all BorderNeedRefresh and SB_state updating code into separate functions that won't crash if screen is NULL.
SVN r4167 (trunk)
2013-02-27 03:10:25 +00:00
Randy Heit
602209d4a4 - Add NoRandomPlayerclass flag for MAPINFO.
SVN r4147 (trunk)
2013-02-19 02:50:47 +00:00
Randy Heit
c4a4b9821d - Fixed: The menu treated netdemos as actual netgames.
SVN r4052 (trunk)
2013-01-26 03:41:06 +00:00
Randy Heit
5b97bf47de - Fixed: The string displayed when attempting to start a new game during a netgame is "NEWGAME", not "NETGAME".
SVN r4051 (trunk)
2013-01-26 03:39:43 +00:00
Randy Heit
22e52776e3 - In UpdateJoystickConfigMenu(), do not access joy before checking if it's NULL.
SVN r4019 (trunk)
2013-01-03 03:12:07 +00:00
Randy Heit
424fcb4cba - Initialize sprframe to NULL in FListMenuItemPlayerDisplay::Drawer().
SVN r4018 (trunk)
2013-01-03 03:08:45 +00:00
Randy Heit
12e1901150 - Fixed: FListMenuItemPlayerDisplay::Drawer() used the sprite's scale but not the texture's scale.
SVN r3880 (trunk)
2012-10-05 03:48:51 +00:00
Randy Heit
718d3f8d43 - Changed vid_tft's default to true. How many people still run 1280x1024 on a CRT these days?
- Fixed: M_InitVideoModesMenu() needs to call vid_tft's callback.

SVN r3816 (trunk)
2012-08-10 02:56:09 +00:00
Randy Heit
56aeb85eee - Fixed: menu_endgame showed no text during a netgame, nor did it block you from ending a netgame.
SVN r3791 (trunk)
2012-07-27 02:35:00 +00:00
Randy Heit
10f1281977 - Remove LabelOffset from menus entirely and just compute things so that the console font and
small font, when mixed on the same line, align at their baselines.

SVN r3786 (trunk)
2012-07-26 05:27:37 +00:00
Randy Heit
2b0cc30f7c - Fixed: The label offset has no business being involved in the positioning of the options menu cursor. Also put the cursor towards the bottom of tall small fonts.
SVN r3785 (trunk)
2012-07-26 04:47:29 +00:00
Randy Heit
fcd4854714 - Fixed: FListMenuItemPlayerDisplay could crash at various points if a class does not have a See state.
SVN r3764 (trunk)
2012-07-15 03:33:28 +00:00
Christoph Oelckers
18839acddb - added a check to the MENUDEF parser to prevent special menus from being replaced by something non-functional to counter attempts to cripple the engine's functionality.
SVN r3682 (trunk)
2012-06-09 11:05:25 +00:00
Randy Heit
36d348dba6 - Don't record pointers to OptionValues outside of the OptionValues table, so that they can be redefined.
SVN r3675 (trunk)
2012-06-02 03:12:14 +00:00
Christoph Oelckers
171066388f - last commit was broken. :(
SVN r3672 (trunk)
2012-05-31 08:51:40 +00:00
Christoph Oelckers
e28ecdda50 - fixed: Option value sets for the menu may not be redefined. An attempt to do so must produce a fatal error.
SVN r3671 (trunk)
2012-05-31 08:47:55 +00:00
Randy Heit
71e02e2d9e - Fixed: When the player setup menu cycles the random players, it needs to rebuild the translation for each one.
SVN r3657 (trunk)
2012-05-15 22:52:24 +00:00
Randy Heit
6ea93d28e2 - Fixed: M_CreateMenus() is too soon to call UpdateJoystickMenu(). It needs to happen after
I_InitInput(), which happens during V_Init2().

SVN r3501 (trunk)
2012-04-01 03:03:53 +00:00
Randy Heit
23e88c88c9 - Add 17:10 aspect ratio, for 1024x600 screens.
SVN r3482 (trunk)
2012-03-25 02:57:28 +00:00
Randy Heit
4d64085c8a - Fixed: The PlayerDisplay menu item ignored the FlipX property of the sprite frames.
SVN r3431 (trunk)
2012-03-12 01:41:19 +00:00
Randy Heit
ddd5fe7535 - Fixed: If an episode skips the skill menu, it should also skip the confirm skill menu
if the default skill requests confirmation.

SVN r3347 (trunk)
2012-01-24 03:25:06 +00:00
Randy Heit
9d67dc36e8 - Fixed: Episodes with NoSkillMenu defined had their own idea of default skill that differed
from episodes with skill menus (and completely ignored whichever skill is explicitly defined
  as the default skill).

SVN r3346 (trunk)
2012-01-24 03:16:24 +00:00
Randy Heit
4816b3182b - Add compat_badangles to the menu.
SVN r3309 (trunk)
2011-11-02 02:44:01 +00:00
Braden Obrzut
eafb9da2c1 - Backported GZDoom r1246:
* Fixed possible crash when texture for menu item patch cannot be loaded. (From Alexey's Mac OS X port.)
* Fixed iwadinfo.txt definitions of Hexen and Freedoom demos (also from Alexey's port.)
* Added missing LOF_NOJUMP definition.


SVN r3284 (trunk)
2011-08-23 02:39:20 +00:00
Braden Obrzut
edfc16906a - Disable the save game menu when not in a level.
SVN r3283 (trunk)
2011-08-19 07:56:43 +00:00
Christoph Oelckers
463c276014 - removed more r_ header dependencies from the rest of the code.
SVN r3260 (trunk)
2011-07-06 15:31:05 +00:00
Christoph Oelckers
fbff5ca932 - moved r_interpolate.cpp and r_translate.cpp to r_data.
- merged r_jpeg.h into jpegtexture.cpp because that's the only place where it's ever used.


SVN r3255 (trunk)
2011-07-06 08:50:15 +00:00
Randy Heit
dc1f5f0220 - Add more information when trying to load old savegames.
- When loading a game from the menu, do not hide the fullscreen console until we know we can
  load the save. Otherwise, the gamestate goes invalid if the save is no good.

SVN r3187 (trunk)
2011-04-17 17:27:31 +00:00
Christoph Oelckers
16878f6bb4 - fixed compile warnings in savegame menu code.
- fixed: plane specific lighting values were no longer used when generating the visplanes.


SVN r3133 (trunk)
2011-02-05 09:17:33 +00:00
Christoph Oelckers
82bac3ad22 - fixed: Actions in the saee menu need to do full range checks for the number of currently selected item.
SVN r3126 (trunk)
2011-01-30 11:20:08 +00:00
Braden Obrzut
7ed7e9f755 - Enable menu mouse navigation on SDL systems.
SVN r3112 (trunk)
2011-01-22 03:02:58 +00:00
Christoph Oelckers
5e5ddd8cc8 - fixed: The help screens were stretched on 16:9 displays
- fixed: The bunny scroller did not advance its animation to the end when aborted.


SVN r3102 (trunk)
2011-01-14 09:22:09 +00:00
Christoph Oelckers
f35b3b84af - fixed: The player setup menu set the playerlass CVAR to the actual class name, not the display name as expected.
SVN r3078 (trunk)
2010-12-26 09:01:36 +00:00
Christoph Oelckers
b42952b85c - added a 'restart' CCMD that allows restarting the engine with different WADs being loaded without quitting first
SVN r3042 (trunk)
2010-12-15 11:45:39 +00:00
Christoph Oelckers
770a879f6a - fixed: The TouchedActors array in the Dehacked parser was not freed after parsing was done.
- Initialize the alt HUD explicitly in D_DoomMain.
- don't let S_UnloadReverbDef leave a broken list of sound environments behind.
- Added more code to explicitly delete data before initializing it.

SVN r3039 (trunk)
2010-12-15 00:09:31 +00:00
Christoph Oelckers
f0f17e531c - move static AM color initialization into the AM_StaticInit function.
- move D_LoadWadSettings to keysections.cpp.
- made some more data reloadable.
- data structures filled by P_SetupLevel should be cleared before loading the level. They can remain non-empty in case of an error. There's probably more to fix here...
- fixed: MidiDevices and MusicAliases were not cleared before reloading local SNDINFOs.
- fixed signed/unsigned warnings in AddSwitchPair for real (GCC really allows -1u? MSVC prints a warning for that.)


SVN r3036 (trunk)
2010-12-14 00:50:02 +00:00
Christoph Oelckers
5bc4bc90bb - fixed: A new episode definition for a map that already had one defined did not replace the old definition.
- fixed: Skipping the skill menu did not work because it checked the number of episodes, not skills.


SVN r3017 (trunk)
2010-12-02 13:57:05 +00:00
Christoph Oelckers
c02339501c - fixed: The message for trying to quickload in netgames used the wrong display mode for the message menu.
SVN r2977 (trunk)
2010-11-03 23:33:57 +00:00
Randy Heit
0604d308d5 - Fixed: Pressing left or right on a video mode option line should play "menu/cursor", not "menu/change".
SVN r2974 (trunk)
2010-11-03 02:33:22 +00:00
Randy Heit
1287c9419a - Fixed: Controller buttons were still translated to menu buttons when the controls menu was
waiting for a button press, making it impossible to bind buttons that have special meaning to
  the menu from the menu.

SVN r2967 (trunk)
2010-10-24 17:46:48 +00:00
Christoph Oelckers
fe0c7bc7f9 - Let FPlayerNameBox::DrawBorder decide what graphics to use based on actual presence in the WADs, not the gamemode.
SVN r2953 (trunk)
2010-10-17 08:29:21 +00:00
Christoph Oelckers
eded2ef345 - Each IWAD can now define its own config section. Hacx, Harmony and Action Doom2 now do that.
- moved IWAD identification data into a lump in zdoom.pk3.
- rewrote IWAD checking code 

SVN r2943 (trunk)
2010-10-15 15:13:53 +00:00
Christoph Oelckers
7e362819e4 - made the different cursor characters for Raven's and the other small fonts a property of the font instead deciding based on the game.
SVN r2935 (trunk)
2010-10-12 08:43:15 +00:00
Christoph Oelckers
352a926ddf - made all references to the GameNames array an inline function call to allow easier modification later
- changed all parsers that check for the current game to use the same function for the game check.
- fixed: The TEAMINFO parser handled 'game Any' incorrectly.


SVN r2934 (trunk)
2010-10-12 07:14:31 +00:00
Christoph Oelckers
dd17c35d89 - removed gamemode check for shareware message. It also uses LANGUAGE conditionals now.
SVN r2931 (trunk)
2010-10-11 22:10:15 +00:00