From 68b3289752b2dcaa71e8f5a652ad50e86e0705f9 Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 10 Aug 2021 23:13:21 +0200 Subject: [PATCH] feat(WindowMain): Added dump entrypoints button --- BigBaseV2/src/gui/window/main/main_tabs.hpp | 1 + BigBaseV2/src/gui/window/main/tab_settings.cpp | 18 ++++++++++++++++++ BigBaseV2/src/gui/window/window_main.cpp | 1 + 3 files changed, 20 insertions(+) create mode 100644 BigBaseV2/src/gui/window/main/tab_settings.cpp diff --git a/BigBaseV2/src/gui/window/main/main_tabs.hpp b/BigBaseV2/src/gui/window/main/main_tabs.hpp index 4041bb7d..f28bcd0a 100644 --- a/BigBaseV2/src/gui/window/main/main_tabs.hpp +++ b/BigBaseV2/src/gui/window/main/main_tabs.hpp @@ -9,6 +9,7 @@ namespace big static void tab_tunables(); static void tab_self(); static void tab_recovery(); + static void tab_settings(); static void tab_spawn(); static void tab_vehicle(); static void tab_weapons(); diff --git a/BigBaseV2/src/gui/window/main/tab_settings.cpp b/BigBaseV2/src/gui/window/main/tab_settings.cpp new file mode 100644 index 00000000..7376586e --- /dev/null +++ b/BigBaseV2/src/gui/window/main/tab_settings.cpp @@ -0,0 +1,18 @@ +#include "main_tabs.hpp" +#include "util/system.hpp" + +namespace big +{ + void tab_main::tab_settings() + { + if (ImGui::BeginTabItem("Settings")) + { + if (ImGui::Button("Dump entrypoints")) + { + system::dump_entry_points(); + } + + ImGui::EndTabItem(); + } + } +} \ No newline at end of file diff --git a/BigBaseV2/src/gui/window/window_main.cpp b/BigBaseV2/src/gui/window/window_main.cpp index 95d87988..faca9464 100644 --- a/BigBaseV2/src/gui/window/window_main.cpp +++ b/BigBaseV2/src/gui/window/window_main.cpp @@ -17,6 +17,7 @@ namespace big tab_main::tab_vehicle(); tab_main::tab_weapons(); tab_main::tab_recovery(); + tab_main::tab_settings(); ImGui::EndTabBar(); ImGui::End();