36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
--[[
|
||
|
=====================================================================
|
||
|
Addon : Enjoy Cigarettes
|
||
|
Link : https://www.moddb.com/mods/stalker-anomaly/addons/dltx-enjoy-cigarettes
|
||
|
Author : Tosox
|
||
|
Date : 22.04.2023
|
||
|
Last Edit : 18.01.2024
|
||
|
=====================================================================
|
||
|
--]]
|
||
|
|
||
|
local defaults = {
|
||
|
["quickslot_bind"] = true,
|
||
|
["modifier"] = 1
|
||
|
}
|
||
|
|
||
|
function get_config(key)
|
||
|
if ui_mcm then return ui_mcm.get("enjoy_cigs/" .. key) else return defaults[key] end
|
||
|
end
|
||
|
|
||
|
function on_mcm_load()
|
||
|
return {
|
||
|
id = "enjoy_cigs", sh = true, gr = {
|
||
|
{ id = "title", type = "slide", link = "ui_options_slider_alife", text = "ui_mcm_enjoy_cigs_title", size = { 512, 50 }, spacing = 20 },
|
||
|
{ id = "quickslot_bind", type = "check", val = 1, def = defaults["quickslot_bind"] },
|
||
|
{ id = "modifier", type = ui_mcm.kb_mod_radio, val = 2, def = defaults["modifier"],
|
||
|
content = {
|
||
|
{ 0, "kb_mod_none" },
|
||
|
{ 1, "kb_mod_shift" },
|
||
|
{ 2, "kb_mod_ctrl" },
|
||
|
{ 3, "kb_mod_alt" }
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
end
|