From 218f440b394996e18624195c30c5249b288d0a7f Mon Sep 17 00:00:00 2001 From: Callow Date: Wed, 31 Aug 2022 23:07:36 +0300 Subject: [PATCH] add about tab and Acai advertisement --- .../src/cheat-base/cheat/CheatManagerBase.cpp | 8 +++ cheat-library/cheat-library.vcxproj | 5 +- cheat-library/cheat-library.vcxproj.filters | 6 +++ cheat-library/src/user/cheat/cheat.cpp | 3 ++ cheat-library/src/user/cheat/misc/About.cpp | 51 +++++++++++++++++++ cheat-library/src/user/cheat/misc/About.h | 17 +++++++ 6 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 cheat-library/src/user/cheat/misc/About.cpp create mode 100644 cheat-library/src/user/cheat/misc/About.h diff --git a/cheat-base/src/cheat-base/cheat/CheatManagerBase.cpp b/cheat-base/src/cheat-base/cheat/CheatManagerBase.cpp index 4f6781a..e62808e 100644 --- a/cheat-base/src/cheat-base/cheat/CheatManagerBase.cpp +++ b/cheat-base/src/cheat-base/cheat/CheatManagerBase.cpp @@ -7,6 +7,8 @@ #include #include +#include + namespace cheat { @@ -74,6 +76,12 @@ namespace cheat ImGui::SetItemDefaultFocus(); index++; } + + ImGui::TextColored(ImColor(255, 136, 0, 255), "Private ToF cheat:"); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, 0xC0D5C8FF); + TextURL("Acai", "http://acai-tof.shop", true, false); + ImGui::PopStyleColor(); + ImGui::EndListBox(); } diff --git a/cheat-library/cheat-library.vcxproj b/cheat-library/cheat-library.vcxproj index fd50c1e..aee5e68 100644 --- a/cheat-library/cheat-library.vcxproj +++ b/cheat-library/cheat-library.vcxproj @@ -15,6 +15,7 @@ + @@ -111,6 +112,7 @@ + @@ -1099,7 +1101,8 @@ - "$(OutDir)injector.exe" powershell -nop -c "& {sleep 20}" + "$(OutDir)injector.exe" +powershell -nop -c "&{sleep 30}" $(OutDir)_noexist.nope;%(Outputs) $(TargetPath);%(Inputs) diff --git a/cheat-library/cheat-library.vcxproj.filters b/cheat-library/cheat-library.vcxproj.filters index 617cf2e..ae465d6 100644 --- a/cheat-library/cheat-library.vcxproj.filters +++ b/cheat-library/cheat-library.vcxproj.filters @@ -264,6 +264,9 @@ Header Files + + Header Files + @@ -486,6 +489,9 @@ Source Files + + Source Files + diff --git a/cheat-library/src/user/cheat/cheat.cpp b/cheat-library/src/user/cheat/cheat.cpp index 4c1adfd..f931bbd 100644 --- a/cheat-library/src/user/cheat/cheat.cpp +++ b/cheat-library/src/user/cheat/cheat.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -81,6 +82,7 @@ namespace cheat FEAT_INST(Settings), FEAT_INST(Hotkeys), FEAT_INST(Debug), + FEAT_INST(About), FEAT_INST(PacketSniffer), FEAT_INST(GodMode), @@ -143,6 +145,7 @@ namespace cheat "Visuals", "Hotkeys", "Settings", + "About", "Debug" }); diff --git a/cheat-library/src/user/cheat/misc/About.cpp b/cheat-library/src/user/cheat/misc/About.cpp new file mode 100644 index 0000000..a6510a7 --- /dev/null +++ b/cheat-library/src/user/cheat/misc/About.cpp @@ -0,0 +1,51 @@ +#include "pch-il2cpp.h" +#include "About.h" + +#include +#include + +namespace cheat::feature +{ + const FeatureGUIInfo& About::GetGUIInfo() const + { + static const FeatureGUIInfo info{ "", "About", false }; + return info; + } + + void About::DrawMain() + { + // Advertisement. To change/delete contact with Callow#1429 + ImGui::TextColored(ImColor(199, 16, 162, 255), "Our private ToF cheat: "); + TextURL("Acai ToF", "http://acai-tof.shop", true, false); + + ImGui::TextColored(ImColor(28, 202, 214, 255), "Akebi github:"); + TextURL("Github link", "https://github.com/Akebi-Group/Akebi-GC", true, false); + + ImGui::TextColored(ImColor(28, 202, 214, 255), "Akebi discord:"); + TextURL("Discord invite link", "https://discord.com/invite/MmV8hNZB9S", true, false); + + ImGui::Text("Founder:"); + ImGui::SameLine(); + ImGui::TextColored(ImColor(0, 102, 255, 255), "Callow"); + + ImGui::Text("Main developer and updater:"); + ImGui::SameLine(); + ImGui::TextColored(ImColor(0, 102, 255, 255), "Taiga"); + + ImGui::Text("Feature developer and Acai founder:"); + ImGui::SameLine(); + ImGui::TextColored(ImColor(0, 102, 255, 255), "RyujinZX"); + + ImGui::Text("Main contributors:"); + ImGui::TextColored(ImColor(0, 102, 255, 255), "WitchGod, m0nkrel, Shichiha, harlanx, andiabrudan, hellomykami"); + + ImGui::Text("Full contributor list:"); + TextURL("Github link", "https://github.com/Akebi-Group/Akebi-GC/graphs/contributors", true, false); + } + + About& About::GetInstance() + { + static About instance; + return instance; + } +} \ No newline at end of file diff --git a/cheat-library/src/user/cheat/misc/About.h b/cheat-library/src/user/cheat/misc/About.h new file mode 100644 index 0000000..ce865a5 --- /dev/null +++ b/cheat-library/src/user/cheat/misc/About.h @@ -0,0 +1,17 @@ +#pragma once +#include +#include + +namespace cheat::feature +{ + + class About : public Feature + { + public: + static About& GetInstance(); + + const FeatureGUIInfo& GetGUIInfo() const override; + void DrawMain() override; + }; +} +