mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#DETECTION
* Make designate refer A2G coordinate system as set by user
This commit is contained in:
parent
9fedd32e78
commit
242d735d8c
@ -912,8 +912,8 @@ do -- DESIGNATE
|
|||||||
for DesignateIndex, Designating in pairs( self.Designating ) do
|
for DesignateIndex, Designating in pairs( self.Designating ) do
|
||||||
local DetectedItem = DetectedItems[DesignateIndex]
|
local DetectedItem = DetectedItems[DesignateIndex]
|
||||||
if DetectedItem then
|
if DetectedItem then
|
||||||
local Report = self.Detection:DetectedItemReportSummary( DetectedItem, AttackGroup ):Text( ", " )
|
local Report = self.Detection:DetectedItemReportSummary( DetectedItem, AttackGroup, nil, true ):Text( ", " )
|
||||||
DetectedReport:Add( string.rep( "-", 140 ) )
|
DetectedReport:Add( string.rep( "-", 40 ) )
|
||||||
DetectedReport:Add( " - " .. Report )
|
DetectedReport:Add( " - " .. Report )
|
||||||
if string.find( Designating, "L" ) then
|
if string.find( Designating, "L" ) then
|
||||||
DetectedReport:Add( " - " .. "Lasing Targets" )
|
DetectedReport:Add( " - " .. "Lasing Targets" )
|
||||||
|
|||||||
@ -2152,8 +2152,9 @@ do -- DETECTION_UNITS
|
|||||||
-- @param #DETECTION_BASE.DetectedItem DetectedItem The DetectedItem.
|
-- @param #DETECTION_BASE.DetectedItem DetectedItem The DetectedItem.
|
||||||
-- @param Wrapper.Group#GROUP AttackGroup The group to generate the report for.
|
-- @param Wrapper.Group#GROUP AttackGroup The group to generate the report for.
|
||||||
-- @param Core.Settings#SETTINGS Settings Message formatting settings to use.
|
-- @param Core.Settings#SETTINGS Settings Message formatting settings to use.
|
||||||
|
-- @param #boolean ForceA2GCoordinate Set creation of A2G coordinate
|
||||||
-- @return Core.Report#REPORT The report of the detection items.
|
-- @return Core.Report#REPORT The report of the detection items.
|
||||||
function DETECTION_UNITS:DetectedItemReportSummary( DetectedItem, AttackGroup, Settings )
|
function DETECTION_UNITS:DetectedItemReportSummary( DetectedItem, AttackGroup, Settings, ForceA2GCoordinate )
|
||||||
self:F( { DetectedItem = DetectedItem } )
|
self:F( { DetectedItem = DetectedItem } )
|
||||||
|
|
||||||
local DetectedItemID = self:GetDetectedItemID( DetectedItem )
|
local DetectedItemID = self:GetDetectedItemID( DetectedItem )
|
||||||
@ -2188,7 +2189,11 @@ do -- DETECTION_UNITS
|
|||||||
-- TODO: solve Index reference
|
-- TODO: solve Index reference
|
||||||
local DetectedItemCoordinate = self:GetDetectedItemCoordinate( DetectedItem )
|
local DetectedItemCoordinate = self:GetDetectedItemCoordinate( DetectedItem )
|
||||||
local DetectedItemCoordText = DetectedItemCoordinate:ToString( AttackGroup, Settings )
|
local DetectedItemCoordText = DetectedItemCoordinate:ToString( AttackGroup, Settings )
|
||||||
|
|
||||||
|
if ForceA2GCoordinate then
|
||||||
|
DetectedItemCoordText = DetectedItemCoordinate:ToStringA2G(AttackGroup,Settings)
|
||||||
|
end
|
||||||
|
|
||||||
local ThreatLevelA2G = self:GetDetectedItemThreatLevel( DetectedItem )
|
local ThreatLevelA2G = self:GetDetectedItemThreatLevel( DetectedItem )
|
||||||
|
|
||||||
local Report = REPORT:New()
|
local Report = REPORT:New()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user