mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Synth
This commit is contained in:
@@ -409,33 +409,6 @@ function AI_ESCORT:MenuFormation( Formation, ... )
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Defines --- Defines a menu slot to let the escort to join formation.
|
|
||||||
-- This menu will appear under **Formation**.
|
|
||||||
-- @param #AI_ESCORT self
|
|
||||||
-- @return #AI_ESCORT
|
|
||||||
function AI_ESCORT:MenuJoinUp()
|
|
||||||
|
|
||||||
local FlightMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", self.FlightMenu )
|
|
||||||
local FlightMenuJoinUp = MENU_GROUP_COMMAND:New( self.PlayerGroup, "Join Up", FlightMenuReportNavigation, AI_ESCORT._FlightJoinUp, self )
|
|
||||||
|
|
||||||
self.EscortGroupSet:ForSomeGroupAlive(
|
|
||||||
--- @param Core.Group#GROUP EscortGroup
|
|
||||||
function( EscortGroup )
|
|
||||||
if EscortGroup:IsAir() then
|
|
||||||
|
|
||||||
local EscortGroupName = EscortGroup:GetName()
|
|
||||||
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
|
||||||
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
|
||||||
local EscortMenuJoinUp = MENU_GROUP:New( self.PlayerGroup, "Join Up", EscortMenuReportNavigation )
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
)
|
|
||||||
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
--- Defines a menu slot to let the escort to join in a trail formation.
|
--- Defines a menu slot to let the escort to join in a trail formation.
|
||||||
-- This menu will appear under **Formation**.
|
-- This menu will appear under **Formation**.
|
||||||
-- @param #AI_ESCORT self
|
-- @param #AI_ESCORT self
|
||||||
@@ -587,6 +560,33 @@ function AI_ESCORT:MenuFormationBox( XStart, XSpace, YStart, YSpace, ZStart, ZSp
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
--- Defines --- Defines a menu slot to let the escort to join formation.
|
||||||
|
-- This menu will appear under **Formation**.
|
||||||
|
-- @param #AI_ESCORT self
|
||||||
|
-- @return #AI_ESCORT
|
||||||
|
function AI_ESCORT:MenuJoinUp()
|
||||||
|
|
||||||
|
local FlightMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", self.FlightMenu )
|
||||||
|
local FlightMenuJoinUp = MENU_GROUP_COMMAND:New( self.PlayerGroup, "Join Up", FlightMenuReportNavigation, AI_ESCORT._FlightJoinUp, self )
|
||||||
|
|
||||||
|
self.EscortGroupSet:ForSomeGroupAlive(
|
||||||
|
--- @param Core.Group#GROUP EscortGroup
|
||||||
|
function( EscortGroup )
|
||||||
|
if EscortGroup:IsAir() then
|
||||||
|
|
||||||
|
local EscortGroupName = EscortGroup:GetName()
|
||||||
|
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
||||||
|
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
||||||
|
local EscortMenuJoinUp = MENU_GROUP_COMMAND:New( self.PlayerGroup, "Join Up", EscortMenuReportNavigation, AI_ESCORT._JoinUp, self )
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Defines a menu slot to let the escort hold at their current position and stay low with a specified height during a specified time in seconds.
|
--- Defines a menu slot to let the escort hold at their current position and stay low with a specified height during a specified time in seconds.
|
||||||
-- This menu will appear under **Hold position**.
|
-- This menu will appear under **Hold position**.
|
||||||
-- @param #AI_ESCORT self
|
-- @param #AI_ESCORT self
|
||||||
@@ -620,11 +620,13 @@ function AI_ESCORT:MenuHoldAtEscortPosition( Height, Speed, MenuTextFormat )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local FlightMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", self.FlightMenu )
|
||||||
|
|
||||||
local FlightMenuHoldPosition = MENU_GROUP_COMMAND
|
local FlightMenuHoldPosition = MENU_GROUP_COMMAND
|
||||||
:New(
|
:New(
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
MenuText,
|
MenuText,
|
||||||
self.FlightMenu,
|
FlightMenuReportNavigation,
|
||||||
AI_ESCORT._FlightHoldPosition,
|
AI_ESCORT._FlightHoldPosition,
|
||||||
self,
|
self,
|
||||||
nil,
|
nil,
|
||||||
@@ -640,13 +642,12 @@ function AI_ESCORT:MenuHoldAtEscortPosition( Height, Speed, MenuTextFormat )
|
|||||||
local EscortGroupName = EscortGroup:GetName()
|
local EscortGroupName = EscortGroup:GetName()
|
||||||
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
||||||
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
||||||
local EscortMenuHold = MENU_GROUP:New( self.PlayerGroup, MenuText, EscortMenuReportNavigation )
|
|
||||||
|
|
||||||
local EscortMenuHoldPosition = MENU_GROUP_COMMAND
|
local EscortMenuHoldPosition = MENU_GROUP_COMMAND
|
||||||
:New(
|
:New(
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
EscortGroupName,
|
MenuText,
|
||||||
EscortMenuHold,
|
EscortMenuReportNavigation,
|
||||||
AI_ESCORT._HoldPosition,
|
AI_ESCORT._HoldPosition,
|
||||||
self,
|
self,
|
||||||
EscortGroup,
|
EscortGroup,
|
||||||
@@ -695,11 +696,13 @@ function AI_ESCORT:MenuHoldAtLeaderPosition( Height, Speed, MenuTextFormat )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local FlightMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", self.FlightMenu )
|
||||||
|
|
||||||
local FlightMenuHoldAtLeaderPosition = MENU_GROUP_COMMAND
|
local FlightMenuHoldAtLeaderPosition = MENU_GROUP_COMMAND
|
||||||
:New(
|
:New(
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
MenuText,
|
MenuText,
|
||||||
self.FlightMenu,
|
FlightMenuReportNavigation,
|
||||||
AI_ESCORT._FlightHoldPosition,
|
AI_ESCORT._FlightHoldPosition,
|
||||||
self,
|
self,
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
@@ -715,13 +718,12 @@ function AI_ESCORT:MenuHoldAtLeaderPosition( Height, Speed, MenuTextFormat )
|
|||||||
local EscortGroupName = EscortGroup:GetName()
|
local EscortGroupName = EscortGroup:GetName()
|
||||||
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
local EscortMenu = MENU_GROUP:New( self.PlayerGroup, EscortGroupName, self.MainMenu )
|
||||||
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
local EscortMenuReportNavigation = MENU_GROUP:New( self.PlayerGroup, "Navigation", EscortMenu )
|
||||||
local EscortMenuHold = MENU_GROUP:New( self.PlayerGroup, MenuText, EscortMenuReportNavigation )
|
|
||||||
|
|
||||||
local EscortMenuHoldAtLeaderPosition = MENU_GROUP_COMMAND
|
local EscortMenuHoldAtLeaderPosition = MENU_GROUP_COMMAND
|
||||||
:New(
|
:New(
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
EscortGroupName,
|
MenuText,
|
||||||
EscortMenuHold,
|
EscortMenuReportNavigation,
|
||||||
AI_ESCORT._HoldPosition,
|
AI_ESCORT._HoldPosition,
|
||||||
self,
|
self,
|
||||||
self.PlayerGroup,
|
self.PlayerGroup,
|
||||||
|
|||||||
Reference in New Issue
Block a user