mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Menus optimized in function of Group menus
This commit is contained in:
@@ -163,8 +163,16 @@ end
|
||||
-- @param Group#GROUP TaskGroup
|
||||
-- @return Menu#MENU_COALITION self
|
||||
function MISSION:GetMissionMenu( TaskGroup )
|
||||
|
||||
local CommandCenter = self:GetCommandCenter()
|
||||
local CommandCenterMenu = CommandCenter.CommandCenterMenu
|
||||
|
||||
local MissionName = self:GetName()
|
||||
|
||||
local TaskGroupName = TaskGroup:GetName()
|
||||
return self.MenuMission[TaskGroupName]
|
||||
local MissionMenu = MENU_GROUP:New( TaskGroup, MissionName, CommandCenterMenu )
|
||||
|
||||
return MissionMenu
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user