mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'FF/Ops' into FF/OpsDev
This commit is contained in:
commit
8f0c6948ac
@ -35,6 +35,7 @@
|
|||||||
-- @field #string lid Lid for log entries
|
-- @field #string lid Lid for log entries
|
||||||
-- @field #string version Version string
|
-- @field #string version Version string
|
||||||
-- @field #string name Name
|
-- @field #string name Name
|
||||||
|
-- @field #string groupname Group name
|
||||||
-- @field #table path
|
-- @field #table path
|
||||||
-- @field #table parentpath
|
-- @field #table parentpath
|
||||||
-- @field #CLIENTMENU Parent
|
-- @field #CLIENTMENU Parent
|
||||||
@ -57,7 +58,7 @@
|
|||||||
CLIENTMENU = {
|
CLIENTMENU = {
|
||||||
ClassName = "CLIENTMENUE",
|
ClassName = "CLIENTMENUE",
|
||||||
lid = "",
|
lid = "",
|
||||||
version = "0.1.0",
|
version = "0.1.1",
|
||||||
name = nil,
|
name = nil,
|
||||||
path = nil,
|
path = nil,
|
||||||
group = nil,
|
group = nil,
|
||||||
@ -68,6 +69,7 @@ CLIENTMENU = {
|
|||||||
Generic = false,
|
Generic = false,
|
||||||
debug = false,
|
debug = false,
|
||||||
Controller = nil,
|
Controller = nil,
|
||||||
|
groupname = nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -91,6 +93,7 @@ function CLIENTMENU:NewEntry(Client,Text,Parent,Function,...)
|
|||||||
self.group = Client:GetGroup()
|
self.group = Client:GetGroup()
|
||||||
self.client = Client
|
self.client = Client
|
||||||
self.GroupID = self.group:GetID()
|
self.GroupID = self.group:GetID()
|
||||||
|
self.groupname = self.group:GetName() or "Unknown Groupname"
|
||||||
else
|
else
|
||||||
self.Generic = true
|
self.Generic = true
|
||||||
end
|
end
|
||||||
@ -190,7 +193,10 @@ function CLIENTMENU:RemoveF10()
|
|||||||
self:T(self.lid.."RemoveF10")
|
self:T(self.lid.."RemoveF10")
|
||||||
if self.GroupID then
|
if self.GroupID then
|
||||||
--self:I(self.lid.."Removing "..table.concat(self.path,";"))
|
--self:I(self.lid.."Removing "..table.concat(self.path,";"))
|
||||||
missionCommands.removeItemForGroup(self.GroupID , self.path )
|
local status, err = pcall(missionCommands.removeItemForGroup(self.GroupID , self.path ))
|
||||||
|
if not status then
|
||||||
|
self:I(string.format("**** Error Removing Menu Entry %s for %s!",tostring(self.name),self.groupname))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
@ -14792,66 +14792,68 @@ function AIRBOSS:RadioTransmission( radio, call, loud, delay, interval, click, p
|
|||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
-- SRS transmission
|
-- SRS transmission
|
||||||
if call.subtitle ~= nil and string.len(call.subtitle) > 1 then
|
if call.subtitle ~= nil and string.len(call.subtitle) > 1 then
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
-- SRS transmission
|
-- SRS transmission
|
||||||
|
|
||||||
local frequency = self.MarshalRadio.frequency
|
local frequency = self.MarshalRadio.frequency
|
||||||
local modulation = self.MarshalRadio.modulation
|
local modulation = self.MarshalRadio.modulation
|
||||||
local voice = nil
|
local voice = nil
|
||||||
local gender = nil
|
local gender = nil
|
||||||
local culture = nil
|
local culture = nil
|
||||||
|
|
||||||
if radio.alias == "AIRBOSS" then
|
if radio.alias == "AIRBOSS" then
|
||||||
frequency = self.AirbossRadio.frequency
|
frequency = self.AirbossRadio.frequency
|
||||||
modulation = self.AirbossRadio.modulation
|
modulation = self.AirbossRadio.modulation
|
||||||
voice = self.AirbossRadio.voice
|
voice = self.AirbossRadio.voice
|
||||||
gender = self.AirbossRadio.gender
|
gender = self.AirbossRadio.gender
|
||||||
culture = self.AirbossRadio.culture
|
culture = self.AirbossRadio.culture
|
||||||
|
end
|
||||||
|
|
||||||
|
if radio.alias == "MARSHAL" then
|
||||||
|
voice = self.MarshalRadio.voice
|
||||||
|
gender = self.MarshalRadio.gender
|
||||||
|
culture = self.MarshalRadio.culture
|
||||||
|
end
|
||||||
|
|
||||||
|
if radio.alias == "LSO" then
|
||||||
|
frequency = self.LSORadio.frequency
|
||||||
|
modulation = self.LSORadio.modulation
|
||||||
|
voice = self.LSORadio.voice
|
||||||
|
gender = self.LSORadio.gender
|
||||||
|
culture = self.LSORadio.culture
|
||||||
|
end
|
||||||
|
|
||||||
|
if pilotcall then
|
||||||
|
voice = self.PilotRadio.voice
|
||||||
|
gender = self.PilotRadio.gender
|
||||||
|
culture = self.PilotRadio.culture
|
||||||
|
radio.alias = "PILOT"
|
||||||
|
end
|
||||||
|
|
||||||
|
if not radio.alias then
|
||||||
|
-- TODO - what freq to use here?
|
||||||
|
frequency = self.AirbossRadio.frequency
|
||||||
|
modulation = self.AirbossRadio.modulation
|
||||||
|
radio.alias = "AIRBOSS"
|
||||||
|
end
|
||||||
|
|
||||||
|
local volume = nil
|
||||||
|
|
||||||
|
if loud then
|
||||||
|
volume = 1.0
|
||||||
|
end
|
||||||
|
|
||||||
|
--local text = tostring(call.modexreceiver).."; "..radio.alias.."; "..call.subtitle
|
||||||
|
local text = call.subtitle
|
||||||
|
self:I(self.lid..text)
|
||||||
|
local srstext = self:_GetNiceSRSText(text)
|
||||||
|
self.SRSQ:NewTransmission(srstext, call.duration, self.SRS, tstart, 0.1, subgroups, call.subtitle, call.subduration, frequency, modulation, gender, culture, voice, volume, radio.alias)
|
||||||
end
|
end
|
||||||
|
|
||||||
if radio.alias == "MARSHAL" then
|
|
||||||
voice = self.MarshalRadio.voice
|
|
||||||
gender = self.MarshalRadio.gender
|
|
||||||
culture = self.MarshalRadio.culture
|
|
||||||
end
|
|
||||||
|
|
||||||
if radio.alias == "LSO" then
|
|
||||||
frequency = self.LSORadio.frequency
|
|
||||||
modulation = self.LSORadio.modulation
|
|
||||||
voice = self.LSORadio.voice
|
|
||||||
gender = self.LSORadio.gender
|
|
||||||
culture = self.LSORadio.culture
|
|
||||||
end
|
|
||||||
|
|
||||||
if pilotcall then
|
|
||||||
voice = self.PilotRadio.voice
|
|
||||||
gender = self.PilotRadio.gender
|
|
||||||
culture = self.PilotRadio.culture
|
|
||||||
radio.alias = "PILOT"
|
|
||||||
end
|
|
||||||
|
|
||||||
if not radio.alias then
|
|
||||||
-- TODO - what freq to use here?
|
|
||||||
frequency = self.AirbossRadio.frequency
|
|
||||||
modulation = self.AirbossRadio.modulation
|
|
||||||
radio.alias = "AIRBOSS"
|
|
||||||
end
|
|
||||||
|
|
||||||
local volume = nil
|
|
||||||
|
|
||||||
if loud then
|
|
||||||
volume = 1.0
|
|
||||||
end
|
|
||||||
|
|
||||||
--local text = tostring(call.modexreceiver).."; "..radio.alias.."; "..call.subtitle
|
|
||||||
local text = call.subtitle
|
|
||||||
self:I(self.lid..text)
|
|
||||||
local srstext = self:_GetNiceSRSText(text)
|
|
||||||
self.SRSQ:NewTransmission(srstext, call.duration, self.SRS, tstart, 0.1, subgroups, call.subtitle, call.subduration, frequency, modulation, gender, culture, voice, volume, radio.alias)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user