diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-08-01 01:21:56 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-08-01 01:21:56 +0200 |
| commit | ee77ad7e1eab90fb40c8ef355e24e3ce6ef79d9d (patch) | |
| tree | 6cd6d1f0b39204c2f0373f70f6eb45ef86e4a987 /DTMenuCompatibility.c | |
| parent | 446f7d337e59370056bd2ae66dfe4f9d1e117e9d (diff) | |
| download | System.c4g-ee77ad7e1eab90fb40c8ef355e24e3ce6ef79d9d.tar.gz System.c4g-ee77ad7e1eab90fb40c8ef355e24e3ce6ef79d9d.zip | |
Delete DTMenuCompatiblity as the new Map based menu interface is completely different
Diffstat (limited to 'DTMenuCompatibility.c')
| -rw-r--r-- | DTMenuCompatibility.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/DTMenuCompatibility.c b/DTMenuCompatibility.c deleted file mode 100644 index d4d5466..0000000 --- a/DTMenuCompatibility.c +++ /dev/null @@ -1,66 +0,0 @@ -#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, 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); - } -} - -global func Menu_Entry(caption, callback, symbol, count, infoCaption, args, extra, XPar1, XPar2) -{ - if(GetType(caption) == C4V_String) - { - var settings = []; - if(caption) - { - settings[] = Menu_Entry_Caption(caption); - } - if(callback) - { - settings[] = Menu_Entry_Callbacks([callback]); - settings[] = Menu_Entry_Args(args); - } - if(symbol) - { - settings[] = Menu_Entry_Symbol(symbol); - } - if(count) - { - settings[] = Menu_Entry_Count(count); - } - if(infoCaption && infoCaption != "") - { - settings[] = Menu_Entry_InfoCaption(infoCaption); - } - if(extra) - { - settings[] = Menu_Entry_Extra(extra); - } - if(XPar1) - { - settings[] = XPar1; - } - if(XPar2) - { - settings[] = XPar2; - } - return inherited(settings); - } - else - { - return inherited(caption, callback, symbol, count, infoCaption, args, extra, XPar1, XPar2); - } -} |
