Various Changes; Updated and Added Mods
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
-- If you don't use MCM, change your defaults from here.
|
||||
local defaults = {
|
||||
["ENABLED"] = true,
|
||||
["BASE_MBLUR"] = 1.0,
|
||||
["DEBUG"] = false,
|
||||
}
|
||||
|
||||
function get_config(key)
|
||||
if ui_mcm then
|
||||
return ui_mcm.get("fps_based_mblur/" .. key)
|
||||
else
|
||||
return defaults[key]
|
||||
end
|
||||
end
|
||||
|
||||
local dbg_log
|
||||
function print_dbg(text, ...)
|
||||
if get_config("DEBUG") or false then
|
||||
dbg_log = dbg_log or mcm_log and mcm_log.new("DBG")
|
||||
if dbg_log then
|
||||
dbg_log.enabled = true
|
||||
dbg_log:log(text, ...)
|
||||
else
|
||||
printf("fps based mblur: | %s | " .. text, time_global(), ...)
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
function on_mcm_load()
|
||||
op = {
|
||||
id = "fps_based_mblur",
|
||||
sh = true,
|
||||
gr = {
|
||||
{
|
||||
id = "title",
|
||||
type = "slide",
|
||||
link = "ui_options_slider_player",
|
||||
text = "ui_mcm_fps_based_mblur_title",
|
||||
size = { 512, 50 },
|
||||
spacing = 20,
|
||||
},
|
||||
{ id = "ENABLED", type = "check", val = 1, def = true },
|
||||
{ id = "BASE_MBLUR", type = "track", val = 2, def = 1.0, min = 0.0, max = 10.0, step = 0.025 },
|
||||
{ id = "DEBUG", type = "check", val = 1, def = false },
|
||||
},
|
||||
}
|
||||
return op
|
||||
end
|
||||
Reference in New Issue
Block a user