-
Notifications
You must be signed in to change notification settings - Fork 5
/
Menu.h
54 lines (40 loc) · 1.19 KB
/
Menu.h
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
// --------------------------------
// Condition menu
// --------------------------------
#ifdef CONDITION_MENU
ITEM(0, "Iterate fixed values")
#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,"Iterate the fixed values")
SEPARATOR
#endif
// --------------------------------
// Expression menu
// --------------------------------
#ifdef EXPRESSION_MENU
ITEM(0,"Get the current fixed value")
#endif