diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 22:58:57 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 22:58:57 -0400 |
commit | 518851c0cde788a807e640377a7093ab4e8c5b5f (patch) | |
tree | e18c5296d7b5b5450689402f65be1bd91d89845d /ted-internal.h | |
parent | 913a5a5dfbcf6789a1ac6b8c32fb23cdcdde995b (diff) |
more dynamic menus (menus are currently broken)
Diffstat (limited to 'ted-internal.h')
-rw-r--r-- | ted-internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ted-internal.h b/ted-internal.h index 11bdbcf..bb76a3c 100644 --- a/ted-internal.h +++ b/ted-internal.h @@ -447,8 +447,10 @@ struct Ted { MouseRelease *mouse_releases[4]; /// total amount scrolled this frame int scroll_total_x, scroll_total_y; - /// currently open menu, or \ref MENU_NONE if no menu is open. - Menu menu; + MenuInfo *all_menus; + /// index of currently open menu, or 0 if no menu is open + u32 menu_open_idx; + void *menu_context; FileSelector file_selector; Selector command_selector; /// general-purpose line buffer for inputs -- used for menus |