Divergent/mods/Corpse Fauna/gamedata/scripts/corpse_fauna_mcm.script

24 lines
760 B
Plaintext
Raw Normal View History

local defaults = {
["decomp_interval"] = 2,
["max_decals"] = 4,
["debug_mode"] = false,
["clear_cache"] = false,
}
function get_config(key)
if ui_mcm then return ui_mcm.get("corpse_fauna/"..key) else return defaults[key] end
end
function on_mcm_load()
op = {id= "corpse_fauna", sh=true , gr={
{id = "title", type="slide", link="ui_options_slider_player", text="ui_mcm_corpse_fauna_title", size={512,50}, spacing=20},
{id = "decomp_interval", type="track", val=2, min=1, max=10, step=1, def=2},
{id = "max_decals", type="track", val=2, min=2, max=4, step=1, def=4},
{id = "line", type="line"},
{id = "debug_mode", type = "check", val = 1, def = false},
{id = "clear_cache", type = "check", val = 1, def = false},
}
}
return op
end