From 029b77426757ddfcae026ac83cbf26b4dc753f02 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 26 Dec 2020 15:18:41 +0100 Subject: [PATCH] feat(GUI): Added Main Window and Tab Self --- BigBaseV2.lnk | Bin 2226 -> 2021 bytes BigBaseV2/src/crossmap.hpp | 12217 +++++++++++------------ BigBaseV2/src/features.hpp | 12 + BigBaseV2/src/gui.cpp | 9 +- BigBaseV2/src/gui.hpp | 2 + BigBaseV2/src/gui/main_window.cpp | 18 + BigBaseV2/src/gui/tab_bar/tab_bar.hpp | 20 + BigBaseV2/src/gui/tab_bar/tab_self.cpp | 104 + BigBaseV2/src/settings.h | 9 +- BigBaseV2/src/structs/player.hpp | 11 + BigBaseV2/src/structs/temp.hpp | 15 + 11 files changed, 6160 insertions(+), 6257 deletions(-) create mode 100644 BigBaseV2/src/gui/main_window.cpp create mode 100644 BigBaseV2/src/gui/tab_bar/tab_bar.hpp create mode 100644 BigBaseV2/src/gui/tab_bar/tab_self.cpp create mode 100644 BigBaseV2/src/structs/player.hpp create mode 100644 BigBaseV2/src/structs/temp.hpp diff --git a/BigBaseV2.lnk b/BigBaseV2.lnk index f7d339d739733e4dbea0b4852b11722d2e65d09b..a9dc3af8b204570f26e46577c1e61f99ac7e161e 100644 GIT binary patch delta 693 zcmdla_>_NwOnue9nOtjbU1OZcySsA2?Q4u2cl3_-0BHsR1~6cRP;jz<(TYLd#a)Uy zvdDh9OXtzhssFMK-l;J#GN>`U-v`np{DYN8_u4f^Nd^nBiD|zW8bKzDFf=igFvu`C zy9K+6F&KhPoLnEM-6O={SWw`SSds`7Dv^qen|A-QM{l~g@t$`YyN;gyb$@<(m}95= z(c{?%w$(c@a5As}Et(9}H!F}oUk|7!vIyizbcg0>i!wMe6ab+MLn6>(km*hgVNi=_ z22KbQU1%a3uh~ITrz5&OF zvsFxJacWU3@}=t k#!WWku%4XHp)NCje(TZ3=9kt9|}t|Gl?+B2R!h#D9ZgfbK}q%sr%Nd^W7AejN=5>5rzvCgx`5rK1=Nk^wpOBG_0#6f+qZmTh{@Fxih$s@}|B6lj2xr@ND5 za2+t*UEnS&^##d+jM(}T6w+d7M%)yh&)~$6$&d~t6Ttx<1`JRJ1_>Ze1!5T>W`xp^ zs9^vGJp+Rr5QEH9)QNEsPyjLliZXK(iz*ddiZaVm8Jw+Rz)>Cp3IEAI8D;800SyfB z1yVqIDbP%i(cD1(?bdB}KU2T?EUZYU?XP4v` zFfb_mIFtT+-(HU?CW-D@cMZfQEqFhpdC5z`rWpmThb&r5vB>kHDA+8@B*HwolU0{d zY4Ubfby?&Xk3own&B?!6@3TdFdjT`V()) + || ImGui::Checkbox("No Ragdoll", g_settings.options["ragdoll"].get()) + || ImGui::Checkbox("Off-Radar", g_settings.options["off_radar"].get()) + ) g_settings.save(); + + ImGui::Separator(); + + if (ImGui::Checkbox("Super Sprint", g_settings.options["super_sprint"].get())) + g_settings.save(); + + ImGui::Separator(); + + if (ImGui::Button("Clean Player Model")) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + Ped pedPlayer = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_ID()); + + PED::CLEAR_PED_BLOOD_DAMAGE(pedPlayer); + PED::RESET_PED_VISIBLE_DAMAGE(pedPlayer); + }QUEUE_JOB_END_CLAUSE + } + if (ImGui::Button("Reset Mental State")) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + STATS::STAT_SET_FLOAT(MISC::GET_HASH_KEY("MP_PLAYER_MENTAL_STATE"), 0.0f, true); + }QUEUE_JOB_END_CLAUSE + } + + + ImGui::Separator(); + + if (ImGui::Button("Clear Wanted Level")) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + PLAYER::CLEAR_PLAYER_WANTED_LEVEL(g_playerId); + }QUEUE_JOB_END_CLAUSE + } + if (ImGui::Button("Cops Ignore")) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + if (PLAYER::GET_PLAYER_WANTED_LEVEL(g_playerId) > 0) + { + PLAYER::CLEAR_PLAYER_WANTED_LEVEL(g_playerId); + } + PLAYER::SET_POLICE_IGNORE_PLAYER(g_playerId, true); + }QUEUE_JOB_END_CLAUSE + } + + if (ImGui::Checkbox("Never Wanted", g_settings.options["never_wanted"].get())) + g_settings.save(); + + if (!g_settings.options["never_wanted"].get()) + { + if (ImGui::SliderInt("Wanted Level", &g_temp.wanted_level, 0, 5)) + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + PLAYER::SET_PLAYER_WANTED_LEVEL(g_playerId, g_temp.wanted_level, true); + PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(g_playerId, true); + }QUEUE_JOB_END_CLAUSE + } + } + else + { + g_temp.wanted_level = 0; + } + + ImGui::EndTabItem(); + } + } +} \ No newline at end of file diff --git a/BigBaseV2/src/settings.h b/BigBaseV2/src/settings.h index ddd4e570..8313ebb4 100644 --- a/BigBaseV2/src/settings.h +++ b/BigBaseV2/src/settings.h @@ -13,10 +13,11 @@ namespace big nlohmann::json options; nlohmann::json default_options = R"({ - "demo bool": false, - "demo int": 1, - "demo double": 1.0, - "demo combo": 0 + "god_mode": false, + "never_wanted": false, + "off_radar": false, + "ragdoll": false, + "super_sprint": false })"_json; bool save() diff --git a/BigBaseV2/src/structs/player.hpp b/BigBaseV2/src/structs/player.hpp new file mode 100644 index 00000000..39579838 --- /dev/null +++ b/BigBaseV2/src/structs/player.hpp @@ -0,0 +1,11 @@ +#pragma once + +namespace big +{ + struct player + { + char name[64] = ""; + bool is_friend = false; + bool is_online = false; + }; +} \ No newline at end of file diff --git a/BigBaseV2/src/structs/temp.hpp b/BigBaseV2/src/structs/temp.hpp new file mode 100644 index 00000000..321b4a9d --- /dev/null +++ b/BigBaseV2/src/structs/temp.hpp @@ -0,0 +1,15 @@ +#pragma once + +namespace big +{ + struct temp + { + struct game_time + { + int hour = 0; + int minutes = 0; + }; + int spoofed_rank = 0; + int wanted_level = 0; + }; +} \ No newline at end of file