Skip to content

Commit 31ac690

Browse files
committed
Added Dynamic Menu class to support.hpp to allow it to be added directly to the comm menu
1 parent 79f460e commit 31ac690

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

source/support/support.hpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
class CfgCommunicationMenu
22
{
3+
class DynamicSupportMenu
4+
{
5+
text = "DUWS-R Support"; // Text displayed in the menu and in a notification
6+
submenu = ""; // Submenu opened upon activation
7+
expression = "_null = [] execVM 'dynamic_menu.sqf'"; // Code executed upon activation (ignored when the submenu is not empty)
8+
icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\call_ca.paa"; // Icon displayed permanently next to the command menu
9+
cursor = "\a3\Ui_f\data\IGUI\Cfg\Cursors\iconCursorSupport_ca.paa"; // Custom cursor displayed when the item is selected
10+
enable = "1"; // Simple expression condition for enabling the item
11+
removeAfterExpressionCall = 0; // 1 to remove the item after calling
12+
};
313
class artillery
414
{
515
text = "Artillery Strike (4 CP)"; // Text displayed in the menu and in a notification
@@ -120,7 +130,4 @@ class CfgCommunicationMenu
120130
enable = "1"; // Simple expression condition for enabling the item
121131
removeAfterExpressionCall = 1; // 1 to remove the item after calling
122132
};
123-
};
124-
125-
126-
133+
};

0 commit comments

Comments
 (0)