Files
Divergent/mods/Shader 3D Scopes/gamedata/scripts/z_3d_scopes_mcm.script
T
Rage 376b4b9689 Added New Mods and Profiles Folders
This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
2025-01-14 05:07:53 -05:00

26 lines
628 B
Plaintext

-- If you don't use MCM, change your defaults from here
local defaults = {
["zoom_factor"] = 1.5,
["nvg_blur"] = false
}
function get_config(key)
if ui_mcm then
return ui_mcm.get("3d_scopes/" .. key)
else
return defaults[key]
end
end
function on_mcm_load()
op = {
id = "3d_scopes",
sh = true,
gr = {
{id = "title", type = "slide", link = "ui_options_slider_player", text = "ui_mcm_3d_scopes_title", size = {512, 50}, spacing = 20},
{id = "zoom_factor", type = "track", val = 2, min = 1.0, max = 2.0, step = 0.1, def = 1.5},
{id = "nvg_blur", type = "check", val = 1, def = false}
}
}
return op
end