Jump to content
Sign in to follow this  
tomturner

Display a showCommandMenu inside a dialog display

Recommended Posts

How would I integrate a showCommandingMenu inside a dialog display? I guess what I am asking is what kind of box (rscCombo, rscListBox, etc) and get it to show in the dialog display instead of the normal player's game screen?

This is the commandingMenu:

 	ThorMenu =
[
	["Thor Command Menu",true],
	["Mission Tasking", [2], "#USER:TaskCmds", -5, [["expression", ""]], "1", "1",""],
	["Mission Time-Of-Day", [3], "#USER:MissionTime", -5, [["expression", ""]], "1", "1",""],
	["Opfor Operations", [4], "#USER:OpforOper", -5, [["expression", ""]], "1", "1",""],
	["Blufor Operations", [5], "#USER:BluforOper", -5, [["expression", ""]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]		
];

TaskCmds =
[
	["Task Commands",true],
	["Start New Task", [2],  "", -5, [["expression", "nultsk2 = [player] execVM 'teg\thor\tasks\a_task_create.sqf';"]], "1", "1",""],
	["Set Alpha Area of Operation", [3],  "", -5, [["expression", "nultsk3 = [player] execVM 'teg\thor\tasks\set_alpha_ao.sqf';"]], "1", "1",""],
	["Set Bravo Area of Operation", [4],  "", -5, [["expression", "nultsk4 = [player] execVM 'teg\thor\tasks\set_bravo_ao.sqf';"]], "1", "1",""],
	["End Mission Succeeded", [5],  "", -5, [["expression", "nultsk5 = [player] execVM 'teg\thor\tasks\end_succeeded.sqf';"]], "1", "1",""],
	["End Mission Failed", [6],  "", -5, [["expression", "nultsk6 = [player] execVM 'teg\thor\tasks\end_failed.sqf';"]], "1", "1",""],
	["End Mission Cancelled", [7],  "", -5, [["expression", "nultsk7 = [player] execVM 'teg\thor\tasks\end_cancelled.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

MissionTime =
[
	["Set Mission Time of Day",true],
	["Early Morning", [2],  "", -5, [["expression", "[[],'teg_fnc_morningMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Mid Morning", [3],  "", -5, [["expression", "[[],'teg_fnc_midmorningMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Noon", [4],  "", -5, [["expression", "[[],'teg_fnc_noonMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Late Afternoon", [5],  "", -5, [["expression", "[[],'teg_fnc_afternoonMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Evening", [6],  "", -5, [["expression", "[[],'teg_fnc_eveningMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Night Full Moon", [7],  "", -5, [["expression", "[[],'teg_fnc_moonMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["Night No Moon", [8],  "", -5, [["expression", "[[],'teg_fnc_nomoonMsg',true,true] call BIS_fnc_MP;"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

OpforOper =
[
	["Opfor Operations",true],
	["Opfor Infantry", [2], "#USER:OpforInfCmds", -5, [["expression", ""]], "1", "1",""],
	["Opfor Vehicles", [3], "#USER:OpforVehCmds", -5, [["expression", ""]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]		
];

BluforOper =
[
	["Blufor Operations",true],
	["Airborne Operations", [2], "#USER:AirborneOps", -5, [["expression", ""]], "1", "1",""],
	["Blufor Infantry", [3], "#USER:BluforInfCmds", -5, [["expression", ""]], "1", "1",""],
	["Blufor Air Vehicles", [4], "#USER:BluforAirVeh", -5, [["expression", ""]], "1", "1",""],
	["Blufor Land Vehicles", [5], "#USER:BluforLandVeh", -5, [["expression", ""]], "1", "1",""],
	["Blufor Sea Vehicles", [6], "#USER:BluforSeaVeh", -5, [["expression", ""]], "1", "1",""],
	["Blufor UAV Vehicles", [7], "#USER:BluforUAV", -5, [["expression", ""]], "1", "1",""],		
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];


OpforInfCmds =
[
	["Opfor Infantry",true],
	["Create Inf Patrol", [2],  "", -5, [["expression", "nulpat2 = [player] execVM 'teg\thor\opfor_inf\opfor_inf_patrol.sqf';"]], "1", "1",""],
	["Create Fire Team", [3],  "", -5, [["expression", "nulpat3 = [player] execVM 'teg\thor\opfor_inf\opfor_fireteam.sqf';"]], "1", "1",""],
	["Create MachineGun Nest", [4],  "", -5, [["expression", "nulpat4 = [player] execVM 'teg\thor\opfor_inf\opfor_mgnest.sqf';"]], "1", "1",""],
	["Create Mortar Team", [5],  "", -5, [["expression", "nulpat5 = [player] execVM 'teg\thor\opfor_inf\opfor_mortar.sqf';"]], "1", "1",""],
	["Create Sniper Team", [6],  "", -5, [["expression", "nulpat6 = [player] execVM 'teg\thor\opfor_inf\opfor_sniperteam.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

OpforVehCmds =
[
	["Opfor Vehicles",true],
	["Create APC Patrol", [2],  "", -5, [["expression", "nuloveh2 = [player] execVM 'teg\thor\opfor_veh\patrol_apc.sqf';"]], "1", "1",""],
	["Create HMG Patrol", [3],  "", -5, [["expression", "nuloveh3 = [player] execVM 'teg\thor\opfor_veh\patrol_hmg.sqf';"]], "1", "1",""],
	["Create OffRoad Patrol", [4],  "", -5, [["expression", "nuloveh4 = [player] execVM 'teg\thor\opfor_veh\patrol_ofr.sqf';"]], "1", "1",""],
	["Create Heli Patrol", [5],  "", -5, [["expression", "nuloveh5 = [player] execVM 'teg\thor\opfor_veh\patrol_hel.sqf';"]], "1", "1",""],
	["Create Tank Patrol", [6],  "", -5, [["expression", "nuloveh6 = [player] execVM 'teg\thor\opfor_veh\patrol_tnk.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BluforInfCmds =
[
	["Blufor Infantry",true],
	["Alpha Squad Recruits", [2], "#USER:AlphaRecruits", -5, [["expression", ""]], "1", "1",""],
	["Bravo Squad Recruits", [3], "#USER:BravoRecruits", -5, [["expression", ""]], "1", "1",""],
	["Charlie Reinforcements", [4],  "", -5, [["expression", "nulcrf4 = [player] execVM 'teg\thor\blufor_inf\charlie_rinf.sqf';"]], "1", "1",""],
	["Delta Reinforcements", [5],  "", -5, [["expression", "nuldrf5 = [player] execVM 'teg\thor\blufor_inf\delta_rinf.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

AlphaRecruits =
[
	["Select Alpha Recruit",true],
	["Recon Team Leader", [2],  "", -5, [["expression", "_unit = 'B_recon_TL_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.9, 'corporal'];"]], "1", "1",""],
	["Recon Marksman", [3],  "", -5, [["expression", "_unit = 'B_recon_M_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["UAV Operator", [4],  "", -5, [["expression", "_unit = 'B_soldier_UAV_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Medic", [5],  "", -5, [["expression", "_unit = 'B_recon_medic_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Scout AT", [6],  "", -5, [["expression", "_unit = 'B_recon_LAT_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Scout GL", [7],  "", -5, [["expression", "_unit = 'B_recon_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Pilot", [8],  "", -5, [["expression", "_unit = 'B_Pilot_F' createUnit [getMarkerPos 'respawn_west_1', BIS_grpAlpha,'', 0.6, 'corporal'];"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BravoRecruits =
[
	["Select Bravo Recruit",true],
	["Recon Team Leader", [2],  "", -5, [["expression", "_unit = 'B_recon_TL_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.9, 'corporal'];"]], "1", "1",""],
	["Recon Marksman", [3],  "", -5, [["expression", "_unit = 'B_recon_M_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["UAV Operator", [4],  "", -5, [["expression", "_unit = 'B_soldier_UAV_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Medic", [5],  "", -5, [["expression", "_unit = 'B_recon_medic_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Scout AT", [6],  "", -5, [["expression", "_unit = 'B_recon_LAT_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Scout GL", [7],  "", -5, [["expression", "_unit = 'B_recon_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["Recon Pilot", [8],  "", -5, [["expression", "_unit = 'B_Pilot_F' createUnit [getMarkerPos 'respawn_west_2', BIS_grpBravo,'', 0.6, 'corporal'];"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BluforAirVeh =
[
	["Blufor Air Vehicles",true],
	["AH9 Pawnee", [2],  "", -5, [["expression", "nulair2 = [player] execVM 'teg\thor\blufor_veh\wst_ah9.sqf';"]], "1", "1",""],
	["MH9 LittleBird", [3],  "", -5, [["expression", "nulair3 = [player] execVM 'teg\thor\blufor_veh\wst_mh9.sqf';"]], "1", "1",""],
	["AH99 BlackFoot", [4],  "", -5, [["expression", "nulair4 = [player] execVM 'teg\thor\blufor_veh\wst_ah99.sqf';"]], "1", "1",""],
	["UH80 Transport", [5],  "", -5, [["expression", "nulair5 = [player] execVM 'teg\thor\blufor_veh\wst_uh80.sqf';"]], "1", "1",""],
	["A143 Buzzard", [6],  "", -5, [["expression", "nulair6 = [player] execVM 'teg\thor\blufor_veh\wst_a143.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BluforLandVeh =
[
	["Blufor Land Vehicles",true],
	["OffRoad", [2],  "", -5, [["expression", "nulveh2 = [player] execVM 'teg\thor\blufor_veh\wst_ofr.sqf';"]], "1", "1",""],
	["MRAP", [3],  "", -5, [["expression", "nulveh3 = [player] execVM 'teg\thor\blufor_veh\wst_mrap.sqf';"]], "1", "1",""],
	["MRAP HMG", [4],  "", -5, [["expression", "nulveh4 = [player] execVM 'teg\thor\blufor_veh\wst_hmg.sqf';"]], "1", "1",""],
	["MRAP GMG", [5],  "", -5, [["expression", "nulveh5 = [player] execVM 'teg\thor\blufor_veh\wst_gmg.sqf';"]], "1", "1",""],
	["APC Marshall", [6],  "", -5, [["expression", "nulveh6 = [player] execVM 'teg\thor\blufor_veh\wst_apc.sqf';"]], "1", "1",""],
	["Hemmitt Covered", [7],  "", -5, [["expression", "nulveh7 = [player] execVM 'teg\thor\blufor_veh\wst_hmc.sqf';"]], "1", "1",""],
	["Hemmitt Open", [8],  "", -5, [["expression", "nulveh8 = [player] execVM 'teg\thor\blufor_veh\wst_hmo.sqf';"]], "1", "1",""],
	["M2A4 Tusk", [9],  "", -5, [["expression", "nulveh8 = [player] execVM 'teg\thor\blufor_veh\wst_m2a4.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BluforSeaVeh =
[
	["Blufor Sea Vehicles",true],
	["SpeedBoat MiniGun", [2],  "", -5, [["expression", "nulsea2 = [player] execVM 'teg\thor\blufor_veh\wst_rib.sqf';"]], "1", "1",""],
	["Assault Boat", [3],  "", -5, [["expression", "nulsea3 = [player] execVM 'teg\thor\blufor_veh\wst_ass.sqf';"]], "1", "1",""],
	["Submarine", [4],  "", -5, [["expression", "nulsea4 = [player] execVM 'teg\thor\blufor_veh\wst_svd.sqf';"]], "1", "1",""],
	["MotorBoat", [5],  "", -5, [["expression", "nulsea5 = [player] execVM 'teg\thor\blufor_veh\wst_mtr.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

BluforUAV =
[
	["Blufor UAV Vehicles",true],
	["Stomper GMG", [2],  "", -5, [["expression", "nulsea2 = [player] execVM 'teg\thor\blufor_veh\wst_ugv1.sqf';"]], "1", "1",""],
	["Stomper Ammo", [3],  "", -5, [["expression", "nulsea3 = [player] execVM 'teg\thor\blufor_veh\wst_ugv.sqf';"]], "1", "1",""],
	["GreyHawk CAS", [4],  "", -5, [["expression", "nulsea4 = [player] execVM 'teg\thor\blufor_veh\wst_mq4a2.sqf';"]], "1", "1",""],
	["GreyHawk", [5],  "", -5, [["expression", "nulsea5 = [player] execVM 'teg\thor\blufor_veh\wst_mq4a.sqf';"]], "1", "1",""],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

AirborneOps =
[
	["AirBorn Ops",true],
	["Get-Put On Parachute", [2], "", -5, [["expression", "nulpara = [player] execVM 'teg\thor\airborne\parachutewest.sqf';"]], "1", "1"],
	["Show Altimeter", [3], "", -5, [["expression", "nulsalt = [player] execVM 'teg\thor\airborne\show_altimeter.sqf';"]], "1", "1"],
	["Alpha Squad UH80 Commands", [4], "#USER:AlphaUH80Cmds", -5, [["expression", ""]], "1", "1"],
	["Bravo Squad UH80 Commands", [5], "#USER:BravoUH80Cmds", -5, [["expression", ""]], "1", "1"],		
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1",""]
];

AlphaUH80Cmds =
[
	["Alpha UH80 GhostHawk Commands",true],
	["Open UH80 Doors", [2],  "", -5, [["expression", "if (alive uh80_alpha) then {uh80_alpha animateDoor ['door_L',1]; uh80_alpha animateDoor ['door_R',1];};"]], "1", "1"],
	["Close UH80 Doors", [3],  "", -5, [["expression", "if (alive uh80_alpha) then {uh80_alpha animateDoor ['door_L',0]; uh80_alpha animateDoor ['door_R',0];};"]], "1", "1"],
	["Alpha PickUp-Insertion", [4],  "", -5, [["expression", "nulainsl = [player] execVM 'teg\thor\airborne\alpha_insert_land.sqf';"]], "1", "1"],
	["Alpha ParaDrop 250M", [5],  "", -5, [["expression", "nulains2 = [player] execVM 'teg\thor\airborne\alpha_insert_250.sqf';"]], "1", "1"],
	["Alpha ParaDrop 600M", [6],  "", -5, [["expression", "nulartb = [player] execVM 'teg\thor\airborne\alpha_insert_600.sqf';"]], "1", "1"],
	["Return To Base", [7],  "", -5, [["expression", "nulains8 = [player] execVM 'teg\thor\airborne\alpha_rtb.sqf';"]], "1", "1"],
	["Auto Hover", [8],  "", -5, [["expression", "uh80_alpha action ['autoHover', uh80_alpha];"]], "1", "1"],
	["Land Chopper", [9],  "", -5, [["expression", "nulaland = [player] execVM 'teg\thor\airborne\alpha_land.sqf';"]], "1", "1"],
	["Alpha Pilot Standby", [10],  "", -5, [["expression", "doStop uh80_alpha;"]], "1", "1"],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

BravoUH80Cmds =
[
	["Bravo UH80 GhostHawk Commands",true],
	["Open UH80 Doors", [2],  "", -5, [["expression", "if (alive uh80_bravo) then {uh80_bravo animateDoor ['door_L',1]; uh80_bravo animateDoor ['door_R',1];};"]], "1", "1"],
	["Close UH80 Doors", [3],  "", -5, [["expression", "if (alive uh80_bravo) then {uh80_bravo animateDoor ['door_L',0]; uh80_bravo animateDoor ['door_R',0];};"]], "1", "1"],
	["Bravo PickUp-Insertion", [4],  "", -5, [["expression", "nulbinsl = [player] execVM 'teg\thor\airborne\bravo_insert_land.sqf';"]], "1", "1"],
	["Bravo ParaDrop 250M", [5],  "", -5, [["expression", "nulbins2 = [player] execVM 'teg\thor\airborne\bravo_insert_250.sqf';"]], "1", "1"],
	["Bravo ParaDrop 600M", [6],  "", -5, [["expression", "nulbins8 = [player] execVM 'teg\thor\airborne\bravo_insert_600.sqf';"]], "1", "1"],
	["Return To Base", [7],  "", -5, [["expression", "nulbrtb = [player] execVM 'teg\thor\airborne\bravo_rtb.sqf';"]], "1", "1"],
	["Auto Hover", [8],  "", -5, [["expression", "uh80_bravo action ['autoHover', uh80_bravo];"]], "1", "1"],
	["Land Chopper", [9],  "", -5, [["expression", "nulbland = [player] execVM 'teg\thor\airborne\bravo_land.sqf';"]], "1", "1"],
	["Bravo Pilot Standby", [10],  "", -5, [["expression", "doStop uh80_bravo;"]], "1", "1"],
	["", [-1], "", -5, [["expression", ""]], "1", "0"],
		["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];	

//showCommandingMenu "#USER:ThorMenu";

I can execute it using a button but I would rather it display inside the dialog display I have created resembling a pc tablet.

Share this post


Link to post
Share on other sites

I think you could get most of the information in a rscNListBox, but it isn't going to work much like a menu 'tree'. It would just be a flat list of items in the listbox. A tree control would be helpful, but the only such thing is usable only by the executable code, not scripts.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×