#PLAYERTASK

* Added precision bombing option

#AUTOLASE
* Added "nomenu" option

#MENU_GROUP
* Added MENU_GROUP:RefreshAndOrderByTag()
This commit is contained in:
Applevangelist
2022-08-24 19:21:28 +02:00
parent a5b394aa93
commit 94741f1b4a
3 changed files with 289 additions and 33 deletions

View File

@@ -193,6 +193,7 @@ function AUTOLASE:New(RecceSet, Coalition, Alias, PilotSet)
self.SRSPath = ""
self.SRSFreq = 251
self.SRSMod = radio.modulation.AM
self.NoMenus = false
-- Set some string id for output to DCS.log file.
self.lid=string.format("AUTOLASE %s (%s) | ", self.alias, self.coalition and UTILS.GetCoalitionName(self.coalition) or "unknown")
@@ -208,14 +209,14 @@ function AUTOLASE:New(RecceSet, Coalition, Alias, PilotSet)
self:AddTransition("*", "Cancel", "*") -- Stop Autolase
-- Menu Entry
if not PilotSet then
self.Menu = MENU_COALITION_COMMAND:New(self.coalition,"Autolase",nil,self.ShowStatus,self)
else
if PilotSet then
self.usepilotset = true
self.pilotset = PilotSet
self:HandleEvent(EVENTS.PlayerEnterAircraft)
self:SetPilotMenu()
--self:SetPilotMenu()
end
self.SetPilotMenu()
self:SetClusterAnalysis(false, false)
@@ -309,6 +310,10 @@ function AUTOLASE:SetPilotMenu()
lasemenu:Refresh()
end
end
else
if not self.NoMenus then
self.Menu = MENU_COALITION_COMMAND:New(self.coalition,"Autolase",nil,self.ShowStatus,self)
end
end
return self
end