- scriptified the LoadMenu class and exported the entire interface to handle the LoadSaveMenu.

This commit is contained in:
Christoph Oelckers 2017-02-18 14:08:16 +01:00
commit 872969eb14
5 changed files with 207 additions and 116 deletions

View file

@ -630,7 +630,7 @@ void M_SetMenu(FName menu, int param)
if (cls == nullptr) cls = PClass::FindClass("ListMenu");
DListMenu *newmenu = (DListMenu *)cls->CreateNew();
IFVIRTUALPTRNAME(newmenu, "OptionMenu", Init)
IFVIRTUALPTRNAME(newmenu, "ListMenu", Init)
{
VMValue params[3] = { newmenu, DMenu::CurrentMenu, ld };
GlobalVMStack.Call(func, params, 3, nullptr, 0);