- Define this class in the description.ext
class RscMenuStrip { idd = -1; movingEnable = true; enableSimulation = true; onLoad = ""; onUnload = ""; class Controls { class MenuStrip: ctrlMenuStrip { idc = 1000; x = safeZoneX; y = (safeZoneY + (safezoneH * 0.132)); w = safezoneW; h = (safezoneH * 0.03); itemSpacingH = 0.05; //Default 0.01 class Items { items[] = { "Menu1" }; class Menu1 { text = "Menu 2"; items[] = //Second Level Entries { "SayHello", "PlayMusic" }; }; class WebLink { text = "Go to Arma 3 Webpage"; //Display name of menu entry picture = "\A3\Ui_f\data\Logos\arma3_white_ca.paa"; //Picture shown in front of text weblink = "https://arma3.com/"; //Opens a web page in default webbrowser opensNewWindow = 1; //Adds ... after text, indicating that this menu entry will open a new display }; class SayHello { text = "Say Hello"; action = "systemChat 'Hello World!'"; //Code executed when entry is clicked }; class PlayMusic { text = "Play Music"; picture = "\a3\Modules_F_Curator\Data\portraitMusic_ca.paa"; action = "playMusic 'Track15_MainTheme'"; }; class Default //Default entries, otherwise error is shown upon creation of the display (Needs further investigation) { text = "Default"; }; }; }; }; };
- Execute in debug console in Eden Editor
findDisplay 313 createDisplay "RscMenuStrip";