Divergent/mods/Powered Exo-Skeletons/gamedata/scripts/exo_mcm.script

23 lines
848 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
-- If you don't use MCM, change your defaults from here.
local defaults = {
drain = 1.0,
sprint_drain = 3.0,
loot_amt = 1.0,
debug = false
}
function get_config(key)
if ui_mcm then return ui_mcm.get("exo/"..key) else return defaults[key] end
end
function on_mcm_load()
op = { id= "exo",sh=true ,gr={
{ id= "title",type= "slide",link= "ui_options_slider_player",text="ui_mcm_exo_title",size= {512,50},spacing= 20 },
{id = "drain", type = "track", val = 2, min=0.1,max=3,step=0.1, def = 1.0},
{id = "sprint_drain", type = "track", val = 2, min=1,max=5,step=0.5, def = 3},
{id = "battery_chance", type = "track", val = 2, min=0.1,max=1,step=0.1, def = 0.7},
{id = "debug", type = "check", val = 1, def=false},
}
}
return op
end