Divergent/mods/Selfkill/gamedata/scripts/selfkill_mcm.script

12 lines
476 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
local mcm_key = DIK_keys.DIK_T -- your default key
function on_mcm_load()
op = { id= "selfkill",sh=true ,gr={
{id = "title",type= "slide",link= "ui_options_slider_player",text="ui_mcm_selfkill_title",size= {512,50},spacing= 20 },
{ id = "keybind_mcm" , type = "key_bind" , val = 2, def = mcm_key }
}
}
return op
end
function get_config(key)
if ui_mcm then return ui_mcm.get("selfkill/"..key) else return mcm_key end
end