diff --git a/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua b/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua deleted file mode 100644 index 088ec2bd1b..0000000000 --- a/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua +++ /dev/null @@ -1,43 +0,0 @@ - -do - -- This demo creates a menu structure for the planes within the red coalition. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - - local Plane1 = GROUP:FindByName( "Red Plane 1" ) - local Plane2 = GROUP:FindByName( "Red Plane 2" ) - local Plane3 = GROUP:FindByName( "Red Plane 3" ) - local Plane4 = GROUP:FindByName( "Red Plane 4" ) - - -- This would create a menu for the red coalition under the main DCS "Others" menu. - local MenuCoalitionRed = MENU_COALITION:New( coalition.side.RED, "Manage Menus" ) - - - local function ShowStatus( StatusText, Coalition ) - - Plane1:MessageToRed( StatusText, 15 ) - Plane2:MessageToRed( StatusText, 15 ) - end - - local MenuStatus -- Menu#MENU_COALITION - local MenuStatusShow -- Menu#MENU_COALITION_COMMAND - - local function RemoveStatusMenu() - MenuStatus:Remove() - end - - local function AddStatusMenu() - - -- This would create a menu for the red coalition under the MenuCoalitionRed menu object. - MenuStatus = MENU_COALITION:New( coalition.side.RED, "Status for Planes" ) - MenuStatusShow = MENU_COALITION_COMMAND:New( coalition.side.RED, "Show Status", MenuStatus, ShowStatus, "Status of planes is ok!", "Message to Red Coalition" ) - end - - local MenuAdd = MENU_COALITION_COMMAND:New( coalition.side.RED, "Add Status Menu", MenuCoalitionRed, AddStatusMenu ) - local MenuRemove = MENU_COALITION_COMMAND:New( coalition.side.RED, "Remove Status Menu", MenuCoalitionRed, RemoveStatusMenu ) - -end - - - - diff --git a/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz b/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz deleted file mode 100644 index a65ebeedd8..0000000000 Binary files a/Core/Menu/Nevada/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz and /dev/null differ diff --git a/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.lua b/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.lua deleted file mode 100644 index 170029283e..0000000000 --- a/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.lua +++ /dev/null @@ -1,56 +0,0 @@ - -do - -- This demo creates a menu structure for the two clients of planes. - -- Each client will receive a different menu structure. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - -- And play with the Add and Remove menu options. - - -- Note that in multi player, this will only work after the DCS clients bug is solved. - - local function ShowStatus( PlaneClient, StatusText, Coalition ) - - MESSAGE:New( Coalition, 15 ):ToRed() - PlaneClient:Message( StatusText, 15 ) - end - - local MenuStatus = {} - - local function RemoveStatusMenu( MenuClient ) - local MenuClientName = MenuClient:GetName() - MenuStatus[MenuClientName]:Remove() - end - - --- @param Wrapper.Client#CLIENT MenuClient - local function AddStatusMenu( MenuClient ) - local MenuClientName = MenuClient:GetName() - -- This would create a menu for the red coalition under the MenuCoalitionRed menu object. - MenuStatus[MenuClientName] = MENU_CLIENT:New( MenuClient, "Status for Planes" ) - MENU_CLIENT_COMMAND:New( MenuClient, "Show Status", MenuStatus[MenuClientName], ShowStatus, MenuClient, "Status of planes is ok!", "Message to Red Coalition" ) - end - - SCHEDULER:New( nil, - function() - local PlaneClient = CLIENT:FindByName( "Plane 1" ) - if PlaneClient and PlaneClient:IsAlive() then - local MenuManage = MENU_CLIENT:New( PlaneClient, "Manage Menus" ) - MENU_CLIENT_COMMAND:New( PlaneClient, "Add Status Menu Plane 1", MenuManage, AddStatusMenu, PlaneClient ) - MENU_CLIENT_COMMAND:New( PlaneClient, "Remove Status Menu Plane 1", MenuManage, RemoveStatusMenu, PlaneClient ) - end - end, {}, 10, 10 ) - - SCHEDULER:New( nil, - function() - local PlaneClient = CLIENT:FindByName( "Plane 2" ) - if PlaneClient and PlaneClient:IsAlive() then - local MenuManage = MENU_CLIENT:New( PlaneClient, "Manage Menus" ) - MENU_CLIENT_COMMAND:New( PlaneClient, "Add Status Menu Plane 2", MenuManage, AddStatusMenu, PlaneClient ) - MENU_CLIENT_COMMAND:New( PlaneClient, "Remove Status Menu Plane 2", MenuManage, RemoveStatusMenu, PlaneClient ) - end - end, {}, 10, 10 ) - -end - - - - diff --git a/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.miz b/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.miz deleted file mode 100644 index 9ac23cbe9b..0000000000 Binary files a/Core/Menu/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.miz and /dev/null differ diff --git a/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.lua b/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.lua deleted file mode 100644 index 86ae033e59..0000000000 --- a/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.lua +++ /dev/null @@ -1,43 +0,0 @@ - -do - -- This demo creates a menu structure for the planes within the red coalition. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - - local Plane1 = CLIENT:FindByName( "Plane 1" ) - local Plane2 = CLIENT:FindByName( "Plane 2" ) - - - -- This would create a menu for the red coalition under the main DCS "Others" menu. - local MenuCoalitionRed = MENU_COALITION:New( coalition.side.RED, "Manage Menus" ) - - - local function ShowStatus( StatusText, Coalition ) - - MESSAGE:New( Coalition, 15 ):ToRed() - Plane1:Message( StatusText, 15 ) - Plane2:Message( StatusText, 15 ) - end - - local MenuStatus -- Menu#MENU_COALITION - local MenuStatusShow -- Menu#MENU_COALITION_COMMAND - - local function RemoveStatusMenu() - MenuStatus:Remove() - end - - local function AddStatusMenu() - - -- This would create a menu for the red coalition under the MenuCoalitionRed menu object. - MenuStatus = MENU_COALITION:New( coalition.side.RED, "Status for Planes" ) - MenuStatusShow = MENU_COALITION_COMMAND:New( coalition.side.RED, "Show Status", MenuStatus, ShowStatus, "Status of planes is ok!", "Message to Red Coalition" ) - end - - local MenuAdd = MENU_COALITION_COMMAND:New( coalition.side.RED, "Add Status Menu", MenuCoalitionRed, AddStatusMenu ) - local MenuRemove = MENU_COALITION_COMMAND:New( coalition.side.RED, "Remove Status Menu", MenuCoalitionRed, RemoveStatusMenu ) - -end - - - - diff --git a/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.miz b/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.miz deleted file mode 100644 index ee098c1a50..0000000000 Binary files a/Core/Menu/Normandy/MEN-002 - Menu Coalition/MEN-002 - Menu Coalition.miz and /dev/null differ diff --git a/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.lua b/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.lua deleted file mode 100644 index ee0b1722bc..0000000000 --- a/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.lua +++ /dev/null @@ -1,56 +0,0 @@ - -do - -- This demo creates a menu structure for the two groups of planes. - -- Each group will receive a different menu structure. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - -- And play with the Add and Remove menu options. - - -- Note that in multi player, this will only work after the DCS groups bug is solved. - - local function ShowStatus( PlaneGroup, StatusText, Coalition ) - - MESSAGE:New( Coalition, 15 ):ToRed() - PlaneGroup:Message( StatusText, 15 ) - end - - local MenuStatus = {} - - local function RemoveStatusMenu( MenuGroup ) - local MenuGroupName = MenuGroup:GetName() - MenuStatus[MenuGroupName]:Remove() - end - - --- @param Wrapper.Group#GROUP MenuGroup - local function AddStatusMenu( MenuGroup ) - local MenuGroupName = MenuGroup:GetName() - -- This would create a menu for the red coalition under the MenuCoalitionRed menu object. - MenuStatus[MenuGroupName] = MENU_GROUP:New( MenuGroup, "Status for Planes" ) - MENU_GROUP_COMMAND:New( MenuGroup, "Show Status", MenuStatus[MenuGroupName], ShowStatus, MenuGroup, "Status of planes is ok!", "Message to Red Coalition" ) - end - - SCHEDULER:New( nil, - function() - local PlaneGroup = GROUP:FindByName( "Plane 1" ) - if PlaneGroup and PlaneGroup:IsAlive() then - local MenuManage = MENU_GROUP:New( PlaneGroup, "Manage Menus" ) - MENU_GROUP_COMMAND:New( PlaneGroup, "Add Status Menu Plane 1", MenuManage, AddStatusMenu, PlaneGroup ) - MENU_GROUP_COMMAND:New( PlaneGroup, "Remove Status Menu Plane 1", MenuManage, RemoveStatusMenu, PlaneGroup ) - end - end, {}, 10, 10 ) - - SCHEDULER:New( nil, - function() - local PlaneGroup = GROUP:FindByName( "Plane 2" ) - if PlaneGroup and PlaneGroup:IsAlive() then - local MenuManage = MENU_GROUP:New( PlaneGroup, "Manage Menus" ) - MENU_GROUP_COMMAND:New( PlaneGroup, "Add Status Menu Plane 2", MenuManage, AddStatusMenu, PlaneGroup ) - MENU_GROUP_COMMAND:New( PlaneGroup, "Remove Status Menu Plane 2", MenuManage, RemoveStatusMenu, PlaneGroup ) - end - end, {}, 10, 10 ) - -end - - - - diff --git a/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.miz b/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.miz deleted file mode 100644 index cdc6083118..0000000000 Binary files a/Core/Menu/Normandy/MEN-003 - Menu Group/MEN-003 - Menu Group.miz and /dev/null differ diff --git a/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua b/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua deleted file mode 100644 index 088ec2bd1b..0000000000 --- a/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.lua +++ /dev/null @@ -1,43 +0,0 @@ - -do - -- This demo creates a menu structure for the planes within the red coalition. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - - local Plane1 = GROUP:FindByName( "Red Plane 1" ) - local Plane2 = GROUP:FindByName( "Red Plane 2" ) - local Plane3 = GROUP:FindByName( "Red Plane 3" ) - local Plane4 = GROUP:FindByName( "Red Plane 4" ) - - -- This would create a menu for the red coalition under the main DCS "Others" menu. - local MenuCoalitionRed = MENU_COALITION:New( coalition.side.RED, "Manage Menus" ) - - - local function ShowStatus( StatusText, Coalition ) - - Plane1:MessageToRed( StatusText, 15 ) - Plane2:MessageToRed( StatusText, 15 ) - end - - local MenuStatus -- Menu#MENU_COALITION - local MenuStatusShow -- Menu#MENU_COALITION_COMMAND - - local function RemoveStatusMenu() - MenuStatus:Remove() - end - - local function AddStatusMenu() - - -- This would create a menu for the red coalition under the MenuCoalitionRed menu object. - MenuStatus = MENU_COALITION:New( coalition.side.RED, "Status for Planes" ) - MenuStatusShow = MENU_COALITION_COMMAND:New( coalition.side.RED, "Show Status", MenuStatus, ShowStatus, "Status of planes is ok!", "Message to Red Coalition" ) - end - - local MenuAdd = MENU_COALITION_COMMAND:New( coalition.side.RED, "Add Status Menu", MenuCoalitionRed, AddStatusMenu ) - local MenuRemove = MENU_COALITION_COMMAND:New( coalition.side.RED, "Remove Status Menu", MenuCoalitionRed, RemoveStatusMenu ) - -end - - - - diff --git a/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz b/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz deleted file mode 100644 index a65ebeedd8..0000000000 Binary files a/Core/Menu/Normandy/MEN-102 - Menu Coalition Multi Player/MEN-102 - Menu Coalition Multi Player.miz and /dev/null differ diff --git a/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.lua b/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.lua deleted file mode 100644 index ee2b5bca07..0000000000 --- a/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.lua +++ /dev/null @@ -1,56 +0,0 @@ - -TestMenus = {} - -Menu = MENU_MISSION:New( "Generate Menus" ) - -do - -- This demo creates a menu structure for the planes within the red coalition. - -- To test, join the planes, then look at the other radio menus (Option F10). - -- Then switch planes and check if the menu is still there. - - local Plane1 = GROUP:FindByName( "Red Plane 1" ) - local Plane2 = GROUP:FindByName( "Red Plane 2" ) - local Plane3 = GROUP:FindByName( "Red Plane 3" ) - local Plane4 = GROUP:FindByName( "Red Plane 4" ) - - local CoalitionText = { - [coalition.side.BLUE] = "BLUE", - [coalition.side.RED] = "RED", - } - - local function MenuMessage( Text, Parameter ) - MESSAGE:NewType( Text .. Parameter, MESSAGE.Type.Information ):ToAll() - end - - local function MenuRemove(m) - TestMenus[m]:Remove() - end - - local function GenerateMissionMenu() - local m = #TestMenus+1 - TestMenus[m] = MENU_MISSION:New( "Menu Mission "..m ) - for n = 1, 8 do - local MenuMissionCommand = MENU_MISSION_COMMAND:New( "Show Mission "..m.."."..n, TestMenus[m], MenuMessage, "Mission ", m.."."..n) - end - local MenuMissionRemoveCommand = MENU_MISSION_COMMAND:New( "Remove Mission "..m, TestMenus[m], MenuRemove, m) - end - - local function GenerateCoalitionMenu( Coalition ) - local m = #TestMenus+1 - TestMenus[m] = MENU_COALITION:New( Coalition, "Menu Coalition "..CoalitionText[Coalition].." ".. m ) - for n = 1, 8 do - local MenuMissionCommand = MENU_COALITION_COMMAND:New( Coalition, "Show Coalition "..CoalitionText[Coalition].." "..m.."."..n, TestMenus[m], MenuMessage, "Coalition ", CoalitionText[Coalition].." "..m.."."..n) - end - local MenuMissionRemoveCommand = MENU_COALITION_COMMAND:New( Coalition, "Remove Coalition "..CoalitionText[Coalition].." "..m, TestMenus[m], MenuRemove, m) - end - - -- Create a mission menu to generate the menus. - local MenuMission = MENU_MISSION_COMMAND:New( "Generate Mission Menus", Menu, GenerateMissionMenu ) - local MenuCoalitionBlue = MENU_MISSION_COMMAND:New( "Generate Blue Coalition Menus", Menu, GenerateCoalitionMenu, coalition.side.BLUE ) - local MenucoalitionRed = MENU_MISSION_COMMAND:New( "Generate Red Coalition Menus", Menu, GenerateCoalitionMenu, coalition.side.RED ) - -end - - - - diff --git a/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.miz b/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.miz deleted file mode 100644 index 6dae1ec7c4..0000000000 Binary files a/Core/Menu/Normandy/MEN-200 - Menu Stress Test 1/MEN-200 - Menu Stress Test 1.miz and /dev/null differ