Divergent/mods/Lootboxes/gamedata/scripts/arti_lootboxes_mcm.script

26 lines
979 B
Plaintext
Raw Permalink Normal View History

2024-03-17 20:18:03 -04:00
-- If you don't use MCM, change your defaults from here.
local defaults = {
["stashchance"] = 40,
["deathchance"] = 20,
["lootquality"] = 1,
["override"] = false,
["animation"] = true,
["debug"] = false
}
function get_config(key)
if ui_mcm then return ui_mcm.get("lootboxes/"..key) else return defaults[key] end
end
function on_mcm_load()
op = { id= "lootboxes",sh=true ,gr={
{ id= "title",type= "slide",link= "ui_options_slider_player",text="ui_mcm_lootboxes_title",size= {512,50},spacing= 20 },
{id = "stashchance", type = "track", val = 2, min=5,max=80,step=5, def = 40},
{id = "lootquality", type = "track", val = 2, min=0.4,max=2,step=0.1, def = 1},
{id = "deathchance", type = "track", val = 2, min=0,max=50,step=1, def = 20},
{id = "animation", type = "check", val = 1, def=true},
{id = "debug", type = "check", val = 1, def=false},
}
}
return op
end