whoops forgot this re: showing messages on cellchange

This commit is contained in:
Lilian Jónsdóttir 2020-08-15 17:14:54 -07:00
parent b1e2aa834c
commit a4c5f57a21

View file

@ -16,6 +16,18 @@ local page = template:createSideBarPage({
-- todo: categorize the options -- todo: categorize the options
local category = page:createCategory(common.modName) local category = page:createCategory(common.modName)
category:createDropdown({
label = "Debug log level",
description = [[Enable this if you want to flood mwse.log with nonsense. Even small is huge.]],
options = {
{label = "None", value = common.logLevels.none},
{label = "Small", value = common.logLevels.small},
{label = "Medium", value = common.logLevels.medium},
{label = "Large", value = common.logLevels.large}
},
variable = createTableVar("logLevel")
})
category:createYesNoButton({ category:createYesNoButton({
label = "Lock doors and containers at night?", label = "Lock doors and containers at night?",
variable = createTableVar("lockDoors") variable = createTableVar("lockDoors")
@ -124,16 +136,9 @@ category:createSlider({
variable = createTableVar("timerInterval") variable = createTableVar("timerInterval")
}) })
category:createDropdown({ category:createYesNoButton({
label = "Debug log level", label = "Show messages when entering public spaces/NPC homes",
description = [[Enable this if you want to flood mwse.log with nonsense. Even small is huge.]], variable = createTableVar("showMessages")
options = {
{label = "None", value = common.logLevels.none},
{label = "Small", value = common.logLevels.small},
{label = "Medium", value = common.logLevels.medium},
{label = "Large", value = common.logLevels.large}
},
variable = createTableVar("logLevel")
}) })
template:createExclusionsPage({ template:createExclusionsPage({
@ -157,7 +162,7 @@ template:createExclusionsPage({
callback = (function() callback = (function()
local CellNames = {} local CellNames = {}
for cell, _ in pairs(tes3.dataHandler.nonDynamicData.cells) do for cell, _ in pairs(tes3.dataHandler.nonDynamicData.cells) do
table.insert(CellNames, cell) table.insert(CellNames, string.lower(cell))
end end
return CellNames return CellNames
end) end)
@ -167,7 +172,7 @@ template:createExclusionsPage({
callback = function() callback = function()
local factions = {} local factions = {}
for _, faction in pairs(tes3.dataHandler.nonDynamicData.factions) do for _, faction in pairs(tes3.dataHandler.nonDynamicData.factions) do
table.insert(factions, faction.id) table.insert(factions, string.lower(faction.id))
end end
return factions return factions
end end
@ -177,7 +182,7 @@ template:createExclusionsPage({
callback = function() callback = function()
local classes = {} local classes = {}
for _, class in pairs(tes3.dataHandler.nonDynamicData.classes) do for _, class in pairs(tes3.dataHandler.nonDynamicData.classes) do
table.insert(classes, class.id) table.insert(classes, string.lower(class.id))
end end
return classes return classes
end end