Fixed error in Escort, Reports were not shown

-- Fixed reports to be shown in ESCORT class. SETTINGS now also are
working in ESCORT reports. MGRS, LL, BR, metric, imperial are now
supported.
This commit is contained in:
FlightControl_Master
2017-07-27 07:52:38 +02:00
parent a6830237f4
commit 600166fd80
3 changed files with 51 additions and 25 deletions

View File

@@ -30,12 +30,8 @@ function REPORT:New( Title )
local self = BASE:Inherit( self, BASE:New() ) -- #REPORT
self.Report = {}
Title = Title or ""
if Title then
self.Title = Title
end
self:SetTitle( Title or "" )
self:SetIndent( 3 )
return self
@@ -88,6 +84,23 @@ function REPORT:Text( Delimiter )
return ReportText
end
--- Sets the title of the report.
-- @param #REPORT self
-- @param #string Title The title of the report.
-- @return #REPORT
function REPORT:SetTitle( Title )
self.Title = Title
return self
end
--- Gets the amount of report items contained in the report.
-- @param #REPORT self
-- @return #number Returns the number of report items contained in the report. 0 is returned if no report items are contained in the report. The title is not counted for.
function REPORT:GetCount()
return #self.Report
end
--- The COMMANDCENTER class
-- @type COMMANDCENTER
-- @field Wrapper.Group#GROUP HQ