12 lines
476 B
Plaintext
12 lines
476 B
Plaintext
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 |