configuration window

This commit is contained in:
2025-12-11 18:42:38 +01:00
parent 755b648280
commit 1913d7d7d4
8 changed files with 117 additions and 2 deletions

View File

@@ -65,3 +65,15 @@ function UI.word_wrap(text, max_chars_per_line)
return lines
end
function UI.create_numeric_stepper(label, value_getter, value_setter, min, max, step, format)
return {
label = label,
get = value_getter,
set = value_setter,
min = min,
max = max,
step = step,
format = format or "%.1f",
type = "numeric_stepper"
}
end