- made the menu descriptors garbage collectable and started exporting some fields as preparation for script work on the menu.

This commit is contained in:
Christoph Oelckers 2017-02-09 20:18:53 +01:00
commit 7efa9cd70d
15 changed files with 333 additions and 240 deletions

View file

@ -509,7 +509,7 @@ class DPlayerMenu : public DListMenu
public:
DPlayerMenu() {}
void Init(DMenu *parent, FListMenuDescriptor *desc);
void Init(DMenu *parent, DListMenuDescriptor *desc);
bool Responder (event_t *ev);
bool MenuEvent (int mkey, bool fromcontroller);
bool MouseEvent(int type, int x, int y);
@ -525,7 +525,7 @@ IMPLEMENT_CLASS(DPlayerMenu, false, false)
//
//=============================================================================
void DPlayerMenu::Init(DMenu *parent, FListMenuDescriptor *desc)
void DPlayerMenu::Init(DMenu *parent, DListMenuDescriptor *desc)
{
DMenuItemBase *li;