This commit is contained in:
FlightControl
2018-10-01 19:47:11 +02:00
parent 86fab3985b
commit d037614861
7 changed files with 141 additions and 62 deletions

View File

@@ -1204,7 +1204,7 @@ function TASK:MenuMarkToGroup( TaskGroup )
if TargetCoordinates then
for TargetCoordinateID, TargetCoordinate in pairs( TargetCoordinates ) do
local Report = REPORT:New():SetIndent( 0 )
self.TaskInfo:Report( Report, "M", TaskGroup, TargetCoordinateID )
self.TaskInfo:Report( Report, "M", TaskGroup, self )
local MarkText = Report:Text( ", " )
self:F( { Coordinate = TargetCoordinate, MarkText = MarkText } )
TargetCoordinate:MarkToGroup( MarkText, TaskGroup )
@@ -1214,7 +1214,7 @@ function TASK:MenuMarkToGroup( TaskGroup )
local TargetCoordinate = self.TaskInfo:GetData( "Coordinate" ) -- Core.Point#COORDINATE
if TargetCoordinate then
local Report = REPORT:New():SetIndent( 0 )
self.TaskInfo:Report( Report, "M", TaskGroup )
self.TaskInfo:Report( Report, "M", TaskGroup, self )
local MarkText = Report:Text( ", " )
self:F( { Coordinate = TargetCoordinate, MarkText = MarkText } )
TargetCoordinate:MarkToGroup( MarkText, TaskGroup )
@@ -1751,7 +1751,7 @@ function TASK:ReportSummary( ReportGroup )
-- Determine the status of the Task.
Report:Add( "State: <" .. self:GetState() .. ">" )
self.TaskInfo:Report( Report, "S", ReportGroup )
self.TaskInfo:Report( Report, "S", ReportGroup, self )
return Report:Text( ', ' )
end
@@ -1768,7 +1768,7 @@ function TASK:ReportOverview( ReportGroup )
local TaskName = self:GetName()
local Report = REPORT:New()
self.TaskInfo:Report( Report, "O", ReportGroup )
self.TaskInfo:Report( Report, "O", ReportGroup, self )
return Report:Text()
end
@@ -1852,7 +1852,7 @@ function TASK:ReportDetails( ReportGroup )
Report:AddIndent( Players )
end
self.TaskInfo:Report( Report, "D", ReportGroup )
self.TaskInfo:Report( Report, "D", ReportGroup, self )
return Report:Text()
end