mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
MP bugfix
This commit is contained in:
@@ -179,10 +179,11 @@ end
|
|||||||
--- Sets the menu structure of the Missions governed by the HQ command center.
|
--- Sets the menu structure of the Missions governed by the HQ command center.
|
||||||
-- @param #COMMANDCENTER self
|
-- @param #COMMANDCENTER self
|
||||||
function COMMANDCENTER:SetMenu()
|
function COMMANDCENTER:SetMenu()
|
||||||
|
self:F()
|
||||||
|
|
||||||
self.CommandCenterMenu = self.CommandCenterMenu or MENU_COALITION:New( self.CommandCenterCoalition, "HQ" )
|
self.CommandCenterMenu = self.CommandCenterMenu or MENU_COALITION:New( self.CommandCenterCoalition, "HQ" )
|
||||||
|
|
||||||
for MissionID, Mission in pairs( self.Missions ) do
|
for MissionID, Mission in pairs( self:GetMissions() ) do
|
||||||
local Mission = Mission -- Tasking.Mission#MISSION
|
local Mission = Mission -- Tasking.Mission#MISSION
|
||||||
Mission:SetMenu()
|
Mission:SetMenu()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -201,8 +201,9 @@ end
|
|||||||
-- @param #MISSION self
|
-- @param #MISSION self
|
||||||
-- @param Core.Menu#MENU_COALITION CommandCenterMenu
|
-- @param Core.Menu#MENU_COALITION CommandCenterMenu
|
||||||
function MISSION:SetMenu()
|
function MISSION:SetMenu()
|
||||||
|
self:F()
|
||||||
|
|
||||||
for _, Task in pairs( self.Tasks ) do
|
for _, Task in pairs( self:GetTasks() ) do
|
||||||
local Task = Task -- Tasking.Task#TASK_BASE
|
local Task = Task -- Tasking.Task#TASK_BASE
|
||||||
Task:SetMenu()
|
Task:SetMenu()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -521,7 +521,9 @@ end
|
|||||||
--- Set the menu options of the @{Task} to all the groups in the SetGroup.
|
--- Set the menu options of the @{Task} to all the groups in the SetGroup.
|
||||||
-- @param #TASK_BASE self
|
-- @param #TASK_BASE self
|
||||||
function TASK_BASE:SetMenu()
|
function TASK_BASE:SetMenu()
|
||||||
|
self:F()
|
||||||
|
|
||||||
|
self.SetGroup:Flush()
|
||||||
for TaskGroupID, TaskGroup in pairs( self.SetGroup:GetSet() ) do
|
for TaskGroupID, TaskGroup in pairs( self.SetGroup:GetSet() ) do
|
||||||
if self:IsStatePlanned() or self:IsStateReplanned() then
|
if self:IsStatePlanned() or self:IsStateReplanned() then
|
||||||
self:SetMenuForGroup( TaskGroup )
|
self:SetMenuForGroup( TaskGroup )
|
||||||
|
|||||||
Reference in New Issue
Block a user