updated stage draw configuration
This commit is contained in:
@@ -7,15 +7,18 @@ function StageConfig:new()
|
||||
if SpearheadConfig == nil then SpearheadConfig = {} end
|
||||
if SpearheadConfig.StageConfig == nil then SpearheadConfig.StageConfig = {} end
|
||||
|
||||
local enabled = SpearheadConfig.StageConfig.enabled or true
|
||||
local enabled = SpearheadConfig.StageConfig.enabled
|
||||
if enabled == nil then enabled = true end
|
||||
---@return boolean
|
||||
o.isEnabled = function(self) return enabled == true end
|
||||
|
||||
local drawStages = SpearheadConfig.StageConfig.drawStages or true
|
||||
local drawStages = SpearheadConfig.StageConfig.drawStages
|
||||
if drawStages == nil then drawStages = true end
|
||||
---@return boolean
|
||||
o.isDrawStagesEnabled = function(self) return drawStages == true end
|
||||
|
||||
local autoStages = SpearheadConfig.StageConfig.autoStages or true
|
||||
if autoStages == nil then autoStages = true end
|
||||
---@return boolean
|
||||
o.isAutoStages = function(self) return autoStages end
|
||||
|
||||
@@ -23,6 +26,16 @@ function StageConfig:new()
|
||||
o.getMaxMissionsPerStage = function(self) return maxMissionsPerStage end
|
||||
|
||||
o.logLevel = Spearhead.LoggerTemplate.LogLevelOptions.DEBUG
|
||||
|
||||
o.toString = function()
|
||||
return Spearhead.Util.toString({
|
||||
maxMissionsPerStage = maxMissionsPerStage,
|
||||
enabled = enabled,
|
||||
drawStages = drawStages,
|
||||
autoStages = autoStages
|
||||
})
|
||||
end
|
||||
|
||||
return o;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user