Allow closing of menus from MENUDEF

Moderator: GZDoom Developers

Post Reply
User avatar
AFADoomer
Posts: 1341
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Allow closing of menus from MENUDEF

Post by AFADoomer »

Basically I'm just asking that people using custom Menu definitions be able to have a menu entry that closes the menus (for 'Return to Game' or similar).

Something like this:

Code: Select all

	case NAME_Closemenu:
		M_ClearMenus ();
		return;
added to M_SetMenu in menu.cpp works...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow closing of menus from MENUDEF

Post by Graf Zahl »

Added a 'closemenu' CCMD which allows you to do this without further extensions to the menu code itself.
User avatar
AFADoomer
Posts: 1341
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Allow closing of menus from MENUDEF

Post by AFADoomer »

Graf Zahl wrote:Added a 'closemenu' CCMD which allows you to do this without further extensions to the menu code itself.
Will this work from a ListMenu, though?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”