From fccebe18dda64b22d0949d75a847f336aae106fd Mon Sep 17 00:00:00 2001 From: flowtron Date: Thu, 30 Oct 2008 23:10:35 +0000 Subject: [PATCH] new command "closemenu, ARG_1STR" git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3348 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- docs/reference.xml | 19 ++++++++++++++++++- source/src/menus.cpp | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/reference.xml b/docs/reference.xml index 9cb35f35..c05f6e76 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -2004,7 +2004,7 @@ Output: - + @@ -2019,6 +2019,23 @@ Output: + + + + + + Closes the specified menu if it is open. + + + If it is open multiple times in the stack only the topmost instance will be closed! + + + + + + + + Specifies a model to render while displaying the last added menu. diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 6a0236b4..36220967 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -634,6 +634,7 @@ COMMAND(menumdl, ARG_5STR); COMMAND(menudirlist, ARG_4STR); COMMAND(chmenumdl, ARG_6STR); COMMANDN(showmenu, showmenu_, ARG_1STR); +COMMAND(closemenu, ARG_1STR); COMMAND(menuinit, ARG_1STR); COMMAND(menuitem, ARG_3STR); COMMAND(menuitemimage, ARG_4STR);