Working on getting textbox edit tool functional

This commit is contained in:
Yousef Khadadeh 2026-04-04 17:52:43 +03:00
parent 262bf23bce
commit 0087048a02
43 changed files with 605 additions and 295 deletions

View file

@ -14,7 +14,11 @@ namespace GUIStuff { namespace ElementHelpers {
text_label(gui, name);
input_scalar(gui, "textbox", val, min, max, options);
});
gui.element<NumberSlider<T>>("slider", val, min, max, options.onEdit);
gui.element<NumberSlider<T>>("slider", val, min, max, NumberSliderData{
.onChange = options.onEdit,
.onHold = options.onSelect,
.onRelease = options.onDeselect
});
});
}
}}