-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.h
More file actions
60 lines (48 loc) · 1.18 KB
/
Menu.h
File metadata and controls
60 lines (48 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// --------------------------------
// Condition menu
// --------------------------------
#ifdef CONDITION_MENU
/*
ITEM(0, "Moo")
SEPARATOR
*/
#endif
// --------------------------------
// Action menu
// --------------------------------
#ifdef ACTION_MENU
// You have access to edPtr and you can throw in normal C++
// code wherever you want in any of these menus. If you want to
// show certain conditions based on a property (a la OINC socket)
// use the property's value stored in edPtr:
// if (edPtr->ShowAdvancedOptions)
// {
// SUB_START("Bake pie")
// ITEM(0, "Apple pie")
// ITEM(1, "Mince pie")
// SUB_END
// }
// else
// {
// ITEM(0, "Bake apple pie")
// }
// You could do some pretty cool stuff with this, like loading a
// menu from an external source (ActiveX object?)
// for (int i=0;i<edPtr->ActionCount;i++)
// ITEM(i,edPtr->Actions[i])
// This will run every time the menu is opened in MMF2, so don't
// make it too slow or it could get annoying
/*
ITEM(0,"Moo")
SEPARATOR
*/
#endif
// --------------------------------
// Expression menu
// --------------------------------
#ifdef EXPRESSION_MENU
/*
ITEM(0,"Moo")
SEPARATOR
*/
#endif