some sorting
This commit is contained in:
parent
f98c564a0d
commit
f709b409fd
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
local config = require("celediel.MoreAttentiveGuards.config").getConfig()
|
local config = require("celediel.MoreAttentiveGuards.config").getConfig()
|
||||||
local common = require("celediel.MoreAttentiveGuards.common")
|
local common = require("celediel.MoreAttentiveGuards.common")
|
||||||
|
|
||||||
|
-- {{{ helper functions
|
||||||
|
|
||||||
local function createTableVar(id) return mwse.mcm.createTableVariable({id = id, table = config}) end
|
local function createTableVar(id) return mwse.mcm.createTableVariable({id = id, table = config}) end
|
||||||
|
|
||||||
local function createLanguageOptions()
|
local function createLanguageOptions()
|
||||||
|
@ -14,6 +16,10 @@ local function createLanguageOptions()
|
||||||
return options
|
return options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ main settings page
|
||||||
|
|
||||||
local template = mwse.mcm.createTemplate(common.modName)
|
local template = mwse.mcm.createTemplate(common.modName)
|
||||||
template:saveOnClose(common.configString, config)
|
template:saveOnClose(common.configString, config)
|
||||||
|
|
||||||
|
@ -24,6 +30,8 @@ local page = template:createSideBarPage({
|
||||||
|
|
||||||
local mainCategory = page:createCategory(common.modName)
|
local mainCategory = page:createCategory(common.modName)
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- {{{ general settings
|
-- {{{ general settings
|
||||||
|
|
||||||
local generalCategory = mainCategory:createCategory("Common settings")
|
local generalCategory = mainCategory:createCategory("Common settings")
|
||||||
|
|
Loading…
Add table
Reference in a new issue