diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 16:35:40 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 16:35:40 +0200 |
| commit | abf01f657d068aa6b22ab962cbe01b88f3b5f7ea (patch) | |
| tree | 2a354a6112ef0b9ef6975613f12865831f5d4a69 /src/ui/ui_main.cpp | |
| parent | d174d803de2296061731c3698980a6a51e6fc3ef (diff) | |
event logging
Diffstat (limited to 'src/ui/ui_main.cpp')
| -rw-r--r-- | src/ui/ui_main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/ui_main.cpp b/src/ui/ui_main.cpp index 9ff965d..61c4784 100644 --- a/src/ui/ui_main.cpp +++ b/src/ui/ui_main.cpp @@ -12,6 +12,7 @@ typedef enum REPORT_TAX = 4, PROJECTS = 5, SETTINGS = 6, + LOG = 7, END } dashboard_view_state; @@ -25,6 +26,7 @@ void (*drawcalls[dashboard_view_state::END])(void) = { 0, ui_draw_projects, ui_draw_settings, + ui_draw_log, }; void (*setupcalls[dashboard_view_state::END])(void) = { @@ -35,6 +37,7 @@ void (*setupcalls[dashboard_view_state::END])(void) = { 0, ui_setup_projects, ui_setup_settings, + 0, }; void (*destroycalls[dashboard_view_state::END])(void) = { @@ -45,6 +48,7 @@ void (*destroycalls[dashboard_view_state::END])(void) = { 0, 0, ui_destroy_settings, + 0, }; static void set_dashboard_state(dashboard_view_state state) @@ -68,6 +72,13 @@ void ui_draw_main() ImGui::EndMenu(); } + + if (ImGui::BeginMenu("Help")) + { + if (ImGui::MenuItem("Event Log")) { set_dashboard_state(dashboard_view_state::LOG); } + + ImGui::EndMenu(); + } ImGui::EndMainMenuBar(); } |
