Divergent/mods/NPC Wound Tweak/gamedata/scripts/liz_wounded_redone_mcm.script

50 lines
1.1 KiB
Plaintext

local defaults = {
["autoheal"] = true,
["enable_weapon_drop"] = true,
["enable_bleeding"] = true
}
function on_mcm_load()
local options = {
id = "liz_npc_wound_tweak",
sh = true,
gr = {
{
id = "liz_npc_wound_tweak",
type = "slide",
link = "ui_options_slider_player",
text = "ui_mcm_menu_liz_npc_wound_tweak",
size = { 512, 50 },
spacing = 20
},
{
id = "autoheal",
type = "check",
val = 1,
def = true
},
{
id = "enable_weapon_drop",
type = "check",
val = 1,
def = true
},
{
id = "enable_bleeding",
type = "check",
val = 1,
def = true
}
}
}
return options
end
function get_config(key)
if ui_mcm and ui_mcm.key_hold then
return ui_mcm.get("liz_npc_wound_tweak/" .. key)
else
return defaults[key]
end
end