some sorting

This commit is contained in:
Lilian Jónsdóttir 2020-07-28 21:06:34 -07:00
parent f98c564a0d
commit f709b409fd

View file

@ -1,6 +1,8 @@
local config = require("celediel.MoreAttentiveGuards.config").getConfig()
local common = require("celediel.MoreAttentiveGuards.common")
-- {{{ helper functions
local function createTableVar(id) return mwse.mcm.createTableVariable({id = id, table = config}) end
local function createLanguageOptions()
@ -14,6 +16,10 @@ local function createLanguageOptions()
return options
end
-- }}}
-- {{{ main settings page
local template = mwse.mcm.createTemplate(common.modName)
template:saveOnClose(common.configString, config)
@ -24,6 +30,8 @@ local page = template:createSideBarPage({
local mainCategory = page:createCategory(common.modName)
-- }}}
-- {{{ general settings
local generalCategory = mainCategory:createCategory("Common settings")