Reset noodle to default position if not connected to another node
This commit is contained in:
@@ -20,6 +20,7 @@ typedef struct ui_ctx ui_ctx;
|
||||
|
||||
enum ui_elem_type {
|
||||
UI_ELEM_NODE,
|
||||
UI_ELEM_NOODLE,
|
||||
UI_ELEM_BUTTON,
|
||||
|
||||
COUNT_UI_ELEM,
|
||||
@@ -55,6 +56,7 @@ struct ui_ctx {
|
||||
bool mouse_down;
|
||||
bool mouse_up;
|
||||
const window *wnd;
|
||||
ui_elem elements[MAX_UI_ELEMENTS];
|
||||
};
|
||||
|
||||
void init_ui_ctx(ui_ctx *ctx);
|
||||
|
||||
Reference in New Issue
Block a user