From f1162c797dbea409e7f92510200c94657ea4bb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 16 May 2021 15:15:44 +0200 Subject: [PATCH] rework add op ui --- art/demo.ecotex | Bin 146 -> 146 bytes art/test.ecotex | Bin 69 -> 69 bytes code/game/source/editors/texed.c | 2 +- code/game/source/editors/texed_widgets.c | 80 +++++++++-------------- 4 files changed, 33 insertions(+), 49 deletions(-) diff --git a/art/demo.ecotex b/art/demo.ecotex index 5cb3d95401e564d28c9a143d29965b820f95fa10..bfad6e300c9eaefc69abad302e6332468298e1b5 100644 GIT binary patch delta 15 WcmbQlIEj&onPnoA2jk(1-tGV#U<2|1 delta 15 WcmbQlIEj&onQ0=E2jiiM-tGV#N(1iz diff --git a/art/test.ecotex b/art/test.ecotex index 14753c6189df9a48c7ecffe35dd3058e665c108b..91e29eea7c9edd01685a974514a46234cbd998e1 100644 GIT binary patch delta 13 UcmZ>DWoKqQDWoKqQ< 0) { - is_add_op_dropbox_open = false; - if (op_dropdown_state < 2) { - int idx = 0; - for (int i = 0; i < DEF_OPS_LEN; i += 1) { - if (!default_ops[i].is_locked && idx == add_op_dropbox_selected) { - idx = i; - break; - } - else if (!default_ops[i].is_locked) idx += 1; - } - texed_add_op(idx); - } - } } void texed_draw_props_pane(zpl_aabb2 r) {