Merge pull request #24 from Darktide-Mod-Framework/marchfixes2
Disable pressed callback on checkboxes
This commit is contained in:
commit
cdac4841db
2 changed files with 4 additions and 4 deletions
|
@ -143,7 +143,7 @@ local blueprints = {
|
||||||
end
|
end
|
||||||
|
|
||||||
entry.changed_callback = function (changed_value)
|
entry.changed_callback = function (changed_value)
|
||||||
callback(parent, callback_name, widget, entry)()
|
--callback(parent, callback_name, widget, entry)()
|
||||||
callback(parent, changed_callback_name, widget, entry)()
|
callback(parent, changed_callback_name, widget, entry)()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -158,8 +158,8 @@ local create_checkbox_template = function (self, params)
|
||||||
default_value = params.default_value,
|
default_value = params.default_value,
|
||||||
display_name = params.title,
|
display_name = params.title,
|
||||||
indentation_level = params.depth,
|
indentation_level = params.depth,
|
||||||
tooltip_text = params.tooltip,
|
|
||||||
require_restart = params.require_restart,
|
require_restart = params.require_restart,
|
||||||
|
tooltip_text = params.tooltip,
|
||||||
value_type = "boolean",
|
value_type = "boolean",
|
||||||
}
|
}
|
||||||
template.on_activated = function(new_value)
|
template.on_activated = function(new_value)
|
||||||
|
@ -186,11 +186,11 @@ local create_mod_toggle_template = function (self, params)
|
||||||
after = params.after,
|
after = params.after,
|
||||||
category = params.category,
|
category = params.category,
|
||||||
default_value = true,
|
default_value = true,
|
||||||
display_name = params.readable_mod_name or params.mod_name,
|
|
||||||
disabled = params.disabled,
|
disabled = params.disabled,
|
||||||
|
display_name = params.readable_mod_name or params.mod_name,
|
||||||
indentation_level = 0,
|
indentation_level = 0,
|
||||||
tooltip_text = params.description,
|
|
||||||
require_restart = params.require_restart,
|
require_restart = params.require_restart,
|
||||||
|
tooltip_text = params.description,
|
||||||
value_type = "boolean",
|
value_type = "boolean",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue