summaryrefslogtreecommitdiffstats
path: root/DTMenuCompatibility.c
blob: 0401b957ae4f5e891ca6e5f668713a1db1443498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#strict 2
#appendto MN7I

static const Menu_Enum_Symbol = Menu_Layout_Symbol;
static const Menu_Enum_InfoCaption = Menu_Layout_InfoCaption;

static const Menu_Enum_Caption = Menu_Layout_Caption;
static const Menu_Enum_Value = Menu_Layout_Value;

global func Menu_SubMenu(caption, symbol, string infoCaption, array menuEntries_Settings, int count, int extra, XPar1, XPar2)
{
	if(GetType(caption) == C4V_Array) // caption contains all entry settings for the current menu and symbol contains all submenu entries and settings
	{
		return inherited(caption, symbol, infoCaption, menuEntries_Settings, count, extra, XPar1, XPar2, ...);
	}
	else
	{
		return inherited([Menu_Entry_Caption(caption), Menu_Entry_Symbol(symbol), Menu_Entry_Count(count), Menu_Entry_InfoCaption(infoCaption), Menu_Entry_Extra(extra), Menu_Entry_XPar1(XPar1), Menu_Entry_XPar2(XPar2)], menuEntries_Settings);
	}
}