This commit is contained in:
Frank
2020-01-21 16:40:07 +01:00
parent e509eb3d35
commit 33d86bd081
2 changed files with 17 additions and 0 deletions
@@ -756,6 +756,11 @@ function FLIGHTCONTROL:_RemoveFlightFromQueue(queue, flight, queuename)
if qflight.groupname==flight.groupname then
self:I(self.lid..string.format("Removing flight group %s from %s queue.", flight.groupname, queuename))
table.remove(queue, i)
if not flight.ai then
flight:_UpdateMenu()
end
return true, i
end
end
@@ -508,6 +508,17 @@ function FLIGHTGROUP:GetSquadron()
return self.squadron
end
--- Define parking spots to be used by the flight group.
-- This is valid only for the specified airbase.
-- @param #FLIGHTGROUP self
-- @param #string airbasename Name of the airbase.
-- @param #table Table of parking spot numbers.
-- @return #FLIGHTGROUP self
function FLIGHTGROUP:SetParkingSpots(airbase, spots)
self.parkingspots[airbase]=spots
return self
end
--- Set the FLIGHTCONTROL controlling this flight group.
-- @param #FLIGHTGROUP self
-- @param Ops.FlightControl#FLIGHTCONTROL flightcontrol The FLIGHTCONTROL object.
@@ -3643,6 +3654,7 @@ end
--- Get the proper terminal type based on generalized attribute of the group.
--@param #FLIGHTGROUP self
function FLIGHTGROUP:_UpdateMenu()
env.info("FF updating menu")
local position=self.group:GetCoordinate()