structured data editor
git clone https://git.lucas.co/cce-data-editor.git
Tick selected_color_editor inside tick loop so that process updates are captured
src/main.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index 05648c6..8abfe22 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -954,6 +954,11 @@ impl Application for DataEditorApp {
}
fn tick(&mut self, _dt: f32, needs_rebuild: &mut bool) {
+ if self.selected_color_editor.tick(_dt, &mut self.ui_context) {
+ *needs_rebuild = true;
+ self.needs_rebuild = true;
+ }
+
if self.selected_value_editor.take_change() {
let mut exit = false;
self.update(AppMessage::ApplyValue, needs_rebuild, &mut exit);