Adding ModOptions

This commit is contained in:
Pao
2023-01-14 01:55:57 +01:00
parent d9fcee526c
commit 53e8d7456d
3 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
--Default options.
local options = {
box1 = true,
box2 = false
}
-- Connecting the options to the menu, so user can change them.
if ModOptions and ModOptions.getInstance then
ModOptions:getInstance(options, "Amputation2", "The Only Cure but better")
end
--Make a link
TOC_Options = {}
TOC_Options = options

View File

@@ -116,7 +116,7 @@ function TheOnlyCure.DeclareTraits()
TraitFactory.setMutualExclusive("amputee2", "amputee3")
end
-- ModOptions implement it you cuck