Divergent/mods/Devices of Anomaly Redone -.../gamedata/scripts/item_geiger_mcm.script

21 lines
582 B
Plaintext
Raw Permalink Normal View History

2024-03-17 20:18:03 -04:00
local defaults = {
["mode"] = false
}
function on_mcm_load()
options = {
id = "liz_dosimeter",
sh = true,
gr = {
{ id = "banner", type = "slide", text = "ui_mcm_menu_liz_dosimeter", link = "ui_options_slider_player", size = { 512, 50 }, spacing = 20 },
{ id = "mode", type = "check", val = 1, def = false }
}
}
return options
end
function get_config(key)
if ui_mcm and ui_mcm.key_hold then return ui_mcm.get("liz_dosimeter/" .. key) else return defaults[key] end
end