From 4b54688aa9b44749380047a41d04af9a16f95d2e Mon Sep 17 00:00:00 2001 From: lunatic <56441863+lunaticwhat@users.noreply.github.com> Date: Thu, 15 Sep 2022 06:42:49 +0700 Subject: [PATCH 1/3] purple dream hit my brain hyperlinks fixes --- README.md | 2 +- README_vi-vn.md | 10 +++++----- README_zh-Hans.md | 2 +- README_zh-Hant.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1ab17f5..ef9e5b7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

-[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vn-vn.md) +[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vi-vn.md) --- diff --git a/README_vi-vn.md b/README_vi-vn.md index ca6d2f3..9466e14 100644 --- a/README_vi-vn.md +++ b/README_vi-vn.md @@ -10,7 +10,7 @@

-[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vn-vn.md) +[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vi-vn.md) --- @@ -100,7 +100,7 @@ Tham khảo trang wiki - [Building](https://github.com/Akebi-Group/Akebi-GC/wiki - Biểu đồ FPS - [Packet Sniffer](https://github.com/Akebi-Group/Akebi-PacketSniffer) -

Giới thiệu

+

Giới Thiệu

Dịch chuyển tức thời @@ -127,7 +127,7 @@ Tham khảo trang wiki - [Building](https://github.com/Akebi-Group/Akebi-GC/wiki
-

Báo cáo lỗi

+

Báo Cáo Lỗi

(VUI LÒNG SỬ DỤNG TIẾNG ANH!) @@ -139,7 +139,7 @@ Những điều lưu ý trước khi báo cáo lỗi 1. Hãy cho chúng tôi biết phiên bản Akebi bạn sử dụng. Sử dụng mã `SHA`/ Số phiên bản của commit gần nhất phiên bản mà bạn sử dụng. Ví dụ: `bd17a00ec388f3b93624280cde9e1c66e740edf9` / Release 0.7 1. [Báo cáo lỗi](https://github.com/Akebi-Group/Akebi-GC/issues) -

Đóng góp cho dự án

+

Đóng Góp Cho Dự Án

## Thêm tính năng @@ -154,4 +154,4 @@ Những điều lưu ý trước khi báo cáo lỗi (VUI LÒNG SỬ DỤNG TIẾNG ANH!) Để đóng góp ý tưởng cho dự án hãy tạo một [issue](https://github.com/Akebi-Group/Akebi-GC/issues) với tiêu đề là ý tưởng bạn muốn. -Hãy **giải thích rõ ràng nhất có thể** để những người phát triển dự án có thể hiểu ý tưởng của bạn. \ No newline at end of file +Hãy **giải thích rõ ràng nhất** để những người phát triển dự án có thể hiểu ý tưởng của bạn. \ No newline at end of file diff --git a/README_zh-Hans.md b/README_zh-Hans.md index 4a76bf8..01cb490 100644 --- a/README_zh-Hans.md +++ b/README_zh-Hans.md @@ -10,7 +10,7 @@

-[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vn-vn.md) +[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vi-vn.md) --- diff --git a/README_zh-Hant.md b/README_zh-Hant.md index e7660ba..9b8fe5a 100644 --- a/README_zh-Hant.md +++ b/README_zh-Hant.md @@ -10,7 +10,7 @@

-[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vn-vn.md) +[EN](README.md) | [简中](README_zh-Hans.md) | [繁中](README_zh-Hant.md) | [VN](README_vi-vn.md) --- From 2cea7adfc50df6deacd7a7304e037f3303318853 Mon Sep 17 00:00:00 2001 From: lunatic <56441863+lunaticwhat@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:19:43 +0700 Subject: [PATCH 2/3] some specific UI hide functions bug: game crash if trying to turn off hide functions in another scene / log on screen --- cheat-library/src/user/cheat/cheat.cpp | 2 +- .../src/user/cheat/visuals/Browser.cpp | 12 +- .../src/user/cheat/visuals/HideUI.cpp | 255 +++++++++++++++++- cheat-library/src/user/cheat/visuals/HideUI.h | 11 + 4 files changed, 273 insertions(+), 7 deletions(-) diff --git a/cheat-library/src/user/cheat/cheat.cpp b/cheat-library/src/user/cheat/cheat.cpp index 0a5bcfe..166d2a5 100644 --- a/cheat-library/src/user/cheat/cheat.cpp +++ b/cheat-library/src/user/cheat/cheat.cpp @@ -129,9 +129,9 @@ namespace cheat FEAT_INST(ChestIndicator), FEAT_INST(ProfileChanger), FEAT_INST(PaimonFollow), + FEAT_INST(EnablePeeking), FEAT_INST(HideUI), FEAT_INST(Browser), - FEAT_INST(EnablePeeking), FEAT_INST(TextureChanger), FEAT_INST(FreeCamera), FEAT_INST(AnimationChanger) diff --git a/cheat-library/src/user/cheat/visuals/Browser.cpp b/cheat-library/src/user/cheat/visuals/Browser.cpp index 7df16f6..501be6d 100644 --- a/cheat-library/src/user/cheat/visuals/Browser.cpp +++ b/cheat-library/src/user/cheat/visuals/Browser.cpp @@ -28,10 +28,14 @@ namespace cheat::feature void Browser::DrawMain() { - ConfigWidget(f_Enabled, "Create in-game Browser"); - ImGui::InputText("URL", &f_URL); - ConfigWidget("Browser width", f_planeWidth, 0.1f, 0.5f, 20.0f); - ConfigWidget("Browser height", f_planeHeight, 0.1f, 0.5f, 20.0f); + ImGui::BeginGroupPanel("Web Browser"); + { + ConfigWidget(f_Enabled, "Create in-game Browser"); + ImGui::InputText("URL", &f_URL); + ConfigWidget("Browser width", f_planeWidth, 0.1f, 0.5f, 20.0f); + ConfigWidget("Browser height", f_planeHeight, 0.1f, 0.5f, 20.0f); + } + ImGui::EndGroupPanel(); } bool Browser::NeedStatusDraw() const diff --git a/cheat-library/src/user/cheat/visuals/HideUI.cpp b/cheat-library/src/user/cheat/visuals/HideUI.cpp index b89216c..aa54cf2 100644 --- a/cheat-library/src/user/cheat/visuals/HideUI.cpp +++ b/cheat-library/src/user/cheat/visuals/HideUI.cpp @@ -7,9 +7,33 @@ namespace cheat::feature { app::GameObject* ui_camera{}; - + app::GameObject* DamageOverlay{}; + app::GameObject* RadarOverlay{}; + app::GameObject* TopRightOverlay{}; + app::GameObject* PingOverlay{}; + app::GameObject* TeamOverlay{}; + app::GameObject* SkillOverlay{}; + app::GameObject* HpOverlay{}; + app::GameObject* ChatOverlay{}; + app::GameObject* RewardOverlay{}; + app::GameObject* InteractOverlay{}; + app::GameObject* ArLevelOverlay{}; + HideUI::HideUI() : Feature(), - NFEX(f_Enabled, "Hide UI", "HideUI", "Visuals", false, false) + NFEX(f_Enabled, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_DamageOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_RadarOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_TopRightOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_PingOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_TeamOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_SkillOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_HpOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_ChatOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + + NFEX(f_RewardOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_InteractOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), + NFEX(f_ArLevelOverlayHide, "Hide UI", "HideUI", "Visuals", false, false) + { events::GameUpdateEvent += MY_METHOD_HANDLER(HideUI::OnGameUpdate); } @@ -23,6 +47,24 @@ namespace cheat::feature void HideUI::DrawMain() { ConfigWidget(f_Enabled, "Hide in-game UI.\nWhen you switch to another scene (e.g. into Domains), turn off and re-enable this feature"); + ImGui::BeginGroupPanel("Advance Hide UI"); + { + ImGui::Text("Please get into the game before using any function below!"); + ConfigWidget("Hide Damage Overlay", f_DamageOverlayHide, "Hide/Unhide damage output overlay"); + ConfigWidget("Hide Radar Overlay", f_RadarOverlayHide, "Hide/Unhide radar and top left buttons overlay"); + ConfigWidget("Hide Top Buttons Overlay", f_TopRightOverlayHide, "Hide/Unhide top right buttons overlay"); + ConfigWidget("Hide Ping Overlay", f_PingOverlayHide, "Hide/Unhide ping overlay"); + ConfigWidget("Hide Team Overlay", f_TeamOverlayHide, "Hide/Unhide team overlay"); + ConfigWidget("Hide Skills Overlay", f_SkillOverlayHide, "Hide/Unhide bottom right elemental skill and ultimate overlay"); + ImGui::SameLine(); + ImGui::Text("Hide skills overlay will also disable skills usage!"); + ConfigWidget("Hide HP & EXP Bar Overlay", f_HpOverlayHide, "Hide/Unhide HP bar and EXP overlay"); + ConfigWidget("Hide Chat Overlay", f_ChatOverlayHide, "Hide/Unhide chat box overlay"); + ConfigWidget("Hide Interact Overlay", f_InteractOverlayHide, "Hide/Unhide interact overlay (press F to...)"); + ConfigWidget("Hide Rewards Overlay", f_RewardOverlayHide, "Hide/Unhide rewards overlay"); + ConfigWidget("Hide AR Level Notification Overlay", f_ArLevelOverlayHide, "Hide/Unhide AR level notification overlay"); + } + ImGui::EndGroupPanel(); } bool HideUI::NeedStatusDraw() const @@ -61,5 +103,214 @@ namespace cheat::feature ui_camera = nullptr; } } + //dmg overlay + if (f_DamageOverlayHide) + { + if (DamageOverlay == nullptr) + DamageOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/ParticleDamageTextContainer"), nullptr); + + if (DamageOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(DamageOverlay, false, nullptr); + } + else + { + if (DamageOverlay) + { + if (DamageOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(DamageOverlay, true, nullptr); + + DamageOverlay = nullptr; + } + } + //radar overlay + if (f_RadarOverlayHide) + { + if (RadarOverlay == nullptr) + RadarOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/MapInfo"), nullptr); + + if (RadarOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(RadarOverlay, false, nullptr); + } + else + { + if (RadarOverlay) + { + if (RadarOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(RadarOverlay, true, nullptr); + + RadarOverlay = nullptr; + } + } + //top btn overlay + if (f_TopRightOverlayHide) + { + if (TopRightOverlay == nullptr) + TopRightOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn"), nullptr); + + if (TopRightOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(TopRightOverlay, false, nullptr); + } + else + { + if (TopRightOverlay) + { + if (TopRightOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(TopRightOverlay, true, nullptr); + + TopRightOverlay = nullptr; + } + } + //ping overlay + if (f_PingOverlayHide) + { + if (PingOverlay == nullptr) + PingOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/NetworkLatency"), nullptr); + + if (PingOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(PingOverlay, false, nullptr); + } + else + { + if (PingOverlay) + { + if (PingOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(PingOverlay, true, nullptr); + + PingOverlay = nullptr; + } + } + //team overlay + if (f_TeamOverlayHide) + { + if (TeamOverlay == nullptr) + TeamOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/TeamBtnContainer"), nullptr); + + if (TeamOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(TeamOverlay, false, nullptr); + } + else + { + if (TeamOverlay) + { + if (TeamOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(TeamOverlay, true, nullptr); + + TeamOverlay = nullptr; + } + } + //skills overlay + if (f_SkillOverlayHide) + { + if (SkillOverlay == nullptr) + SkillOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer"), nullptr); + + if (SkillOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(SkillOverlay, false, nullptr); + } + else + { + if (SkillOverlay) + { + if (SkillOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(SkillOverlay, true, nullptr); + + SkillOverlay = nullptr; + } + } + //hp bar Overlay + if (f_HpOverlayHide) + { + if (HpOverlay == nullptr) + HpOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/GameInfo"), nullptr); + + if (HpOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(HpOverlay, false, nullptr); + } + else + { + if (HpOverlay) + { + if (HpOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(HpOverlay, true, nullptr); + + HpOverlay = nullptr; + } + } + //chat Overlay + if (f_ChatOverlayHide) + { + if (ChatOverlay == nullptr) + ChatOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/Chat"), nullptr); + + if (ChatOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(ChatOverlay, false, nullptr); + } + else + { + if (ChatOverlay) + { + if (ChatOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(ChatOverlay, true, nullptr); + + ChatOverlay = nullptr; + } + } + //reward overlay + if (f_RewardOverlayHide) + { + if (RewardOverlay == nullptr) + RewardOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/SpecialDialogs"), nullptr); + + if (RewardOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(RewardOverlay, false, nullptr); + } + else + { + if (RewardOverlay) + { + if (RewardOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(RewardOverlay, true, nullptr); + + RewardOverlay = nullptr; + } + } + //interact overlay + if (f_InteractOverlayHide) + { + if (InteractOverlay == nullptr) + InteractOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/InteePanel"), nullptr); + + if (InteractOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(InteractOverlay, false, nullptr); + } + else + { + if (InteractOverlay) + { + if (InteractOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(InteractOverlay, true, nullptr); + + InteractOverlay = nullptr; + } + } + //ar level overlay + if (f_ArLevelOverlayHide) + { + if (ArLevelOverlay == nullptr) + ArLevelOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/SuspendBars/PlayerExpTipsDialog"), nullptr); + + if (ArLevelOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(ArLevelOverlay, false, nullptr); + } + else + { + if (ArLevelOverlay) + { + if (ArLevelOverlay->fields._.m_CachedPtr != nullptr) + app::GameObject_SetActive(ArLevelOverlay, true, nullptr); + + ArLevelOverlay = nullptr; + } + } } } \ No newline at end of file diff --git a/cheat-library/src/user/cheat/visuals/HideUI.h b/cheat-library/src/user/cheat/visuals/HideUI.h index 19955d5..3e47e50 100644 --- a/cheat-library/src/user/cheat/visuals/HideUI.h +++ b/cheat-library/src/user/cheat/visuals/HideUI.h @@ -9,6 +9,17 @@ namespace cheat::feature { public: config::Field> f_Enabled; + config::Field f_DamageOverlayHide; + config::Field f_RadarOverlayHide; + config::Field f_TopRightOverlayHide; + config::Field f_PingOverlayHide; + config::Field f_TeamOverlayHide; + config::Field f_SkillOverlayHide; + config::Field f_HpOverlayHide; + config::Field f_ChatOverlayHide; + config::Field f_RewardOverlayHide; + config::Field f_InteractOverlayHide; + config::Field f_ArLevelOverlayHide; static HideUI& GetInstance(); From ff754ded2a7888537ee827bc34c992513a5d487a Mon Sep 17 00:00:00 2001 From: lunatic <56441863+lunaticwhat@users.noreply.github.com> Date: Thu, 15 Sep 2022 17:20:44 +0700 Subject: [PATCH 3/3] Revert "some specific UI hide functions" This reverts commit 2cea7adfc50df6deacd7a7304e037f3303318853. --- cheat-library/src/user/cheat/cheat.cpp | 2 +- .../src/user/cheat/visuals/Browser.cpp | 12 +- .../src/user/cheat/visuals/HideUI.cpp | 255 +----------------- cheat-library/src/user/cheat/visuals/HideUI.h | 11 - 4 files changed, 7 insertions(+), 273 deletions(-) diff --git a/cheat-library/src/user/cheat/cheat.cpp b/cheat-library/src/user/cheat/cheat.cpp index 166d2a5..0a5bcfe 100644 --- a/cheat-library/src/user/cheat/cheat.cpp +++ b/cheat-library/src/user/cheat/cheat.cpp @@ -129,9 +129,9 @@ namespace cheat FEAT_INST(ChestIndicator), FEAT_INST(ProfileChanger), FEAT_INST(PaimonFollow), - FEAT_INST(EnablePeeking), FEAT_INST(HideUI), FEAT_INST(Browser), + FEAT_INST(EnablePeeking), FEAT_INST(TextureChanger), FEAT_INST(FreeCamera), FEAT_INST(AnimationChanger) diff --git a/cheat-library/src/user/cheat/visuals/Browser.cpp b/cheat-library/src/user/cheat/visuals/Browser.cpp index 501be6d..7df16f6 100644 --- a/cheat-library/src/user/cheat/visuals/Browser.cpp +++ b/cheat-library/src/user/cheat/visuals/Browser.cpp @@ -28,14 +28,10 @@ namespace cheat::feature void Browser::DrawMain() { - ImGui::BeginGroupPanel("Web Browser"); - { - ConfigWidget(f_Enabled, "Create in-game Browser"); - ImGui::InputText("URL", &f_URL); - ConfigWidget("Browser width", f_planeWidth, 0.1f, 0.5f, 20.0f); - ConfigWidget("Browser height", f_planeHeight, 0.1f, 0.5f, 20.0f); - } - ImGui::EndGroupPanel(); + ConfigWidget(f_Enabled, "Create in-game Browser"); + ImGui::InputText("URL", &f_URL); + ConfigWidget("Browser width", f_planeWidth, 0.1f, 0.5f, 20.0f); + ConfigWidget("Browser height", f_planeHeight, 0.1f, 0.5f, 20.0f); } bool Browser::NeedStatusDraw() const diff --git a/cheat-library/src/user/cheat/visuals/HideUI.cpp b/cheat-library/src/user/cheat/visuals/HideUI.cpp index aa54cf2..b89216c 100644 --- a/cheat-library/src/user/cheat/visuals/HideUI.cpp +++ b/cheat-library/src/user/cheat/visuals/HideUI.cpp @@ -7,33 +7,9 @@ namespace cheat::feature { app::GameObject* ui_camera{}; - app::GameObject* DamageOverlay{}; - app::GameObject* RadarOverlay{}; - app::GameObject* TopRightOverlay{}; - app::GameObject* PingOverlay{}; - app::GameObject* TeamOverlay{}; - app::GameObject* SkillOverlay{}; - app::GameObject* HpOverlay{}; - app::GameObject* ChatOverlay{}; - app::GameObject* RewardOverlay{}; - app::GameObject* InteractOverlay{}; - app::GameObject* ArLevelOverlay{}; - - HideUI::HideUI() : Feature(), - NFEX(f_Enabled, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_DamageOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_RadarOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_TopRightOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_PingOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_TeamOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_SkillOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_HpOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_ChatOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_RewardOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_InteractOverlayHide, "Hide UI", "HideUI", "Visuals", false, false), - NFEX(f_ArLevelOverlayHide, "Hide UI", "HideUI", "Visuals", false, false) - + HideUI::HideUI() : Feature(), + NFEX(f_Enabled, "Hide UI", "HideUI", "Visuals", false, false) { events::GameUpdateEvent += MY_METHOD_HANDLER(HideUI::OnGameUpdate); } @@ -47,24 +23,6 @@ namespace cheat::feature void HideUI::DrawMain() { ConfigWidget(f_Enabled, "Hide in-game UI.\nWhen you switch to another scene (e.g. into Domains), turn off and re-enable this feature"); - ImGui::BeginGroupPanel("Advance Hide UI"); - { - ImGui::Text("Please get into the game before using any function below!"); - ConfigWidget("Hide Damage Overlay", f_DamageOverlayHide, "Hide/Unhide damage output overlay"); - ConfigWidget("Hide Radar Overlay", f_RadarOverlayHide, "Hide/Unhide radar and top left buttons overlay"); - ConfigWidget("Hide Top Buttons Overlay", f_TopRightOverlayHide, "Hide/Unhide top right buttons overlay"); - ConfigWidget("Hide Ping Overlay", f_PingOverlayHide, "Hide/Unhide ping overlay"); - ConfigWidget("Hide Team Overlay", f_TeamOverlayHide, "Hide/Unhide team overlay"); - ConfigWidget("Hide Skills Overlay", f_SkillOverlayHide, "Hide/Unhide bottom right elemental skill and ultimate overlay"); - ImGui::SameLine(); - ImGui::Text("Hide skills overlay will also disable skills usage!"); - ConfigWidget("Hide HP & EXP Bar Overlay", f_HpOverlayHide, "Hide/Unhide HP bar and EXP overlay"); - ConfigWidget("Hide Chat Overlay", f_ChatOverlayHide, "Hide/Unhide chat box overlay"); - ConfigWidget("Hide Interact Overlay", f_InteractOverlayHide, "Hide/Unhide interact overlay (press F to...)"); - ConfigWidget("Hide Rewards Overlay", f_RewardOverlayHide, "Hide/Unhide rewards overlay"); - ConfigWidget("Hide AR Level Notification Overlay", f_ArLevelOverlayHide, "Hide/Unhide AR level notification overlay"); - } - ImGui::EndGroupPanel(); } bool HideUI::NeedStatusDraw() const @@ -103,214 +61,5 @@ namespace cheat::feature ui_camera = nullptr; } } - //dmg overlay - if (f_DamageOverlayHide) - { - if (DamageOverlay == nullptr) - DamageOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/ParticleDamageTextContainer"), nullptr); - - if (DamageOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(DamageOverlay, false, nullptr); - } - else - { - if (DamageOverlay) - { - if (DamageOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(DamageOverlay, true, nullptr); - - DamageOverlay = nullptr; - } - } - //radar overlay - if (f_RadarOverlayHide) - { - if (RadarOverlay == nullptr) - RadarOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/MapInfo"), nullptr); - - if (RadarOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(RadarOverlay, false, nullptr); - } - else - { - if (RadarOverlay) - { - if (RadarOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(RadarOverlay, true, nullptr); - - RadarOverlay = nullptr; - } - } - //top btn overlay - if (f_TopRightOverlayHide) - { - if (TopRightOverlay == nullptr) - TopRightOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn"), nullptr); - - if (TopRightOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(TopRightOverlay, false, nullptr); - } - else - { - if (TopRightOverlay) - { - if (TopRightOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(TopRightOverlay, true, nullptr); - - TopRightOverlay = nullptr; - } - } - //ping overlay - if (f_PingOverlayHide) - { - if (PingOverlay == nullptr) - PingOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/NetworkLatency"), nullptr); - - if (PingOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(PingOverlay, false, nullptr); - } - else - { - if (PingOverlay) - { - if (PingOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(PingOverlay, true, nullptr); - - PingOverlay = nullptr; - } - } - //team overlay - if (f_TeamOverlayHide) - { - if (TeamOverlay == nullptr) - TeamOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/TeamBtnContainer"), nullptr); - - if (TeamOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(TeamOverlay, false, nullptr); - } - else - { - if (TeamOverlay) - { - if (TeamOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(TeamOverlay, true, nullptr); - - TeamOverlay = nullptr; - } - } - //skills overlay - if (f_SkillOverlayHide) - { - if (SkillOverlay == nullptr) - SkillOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer"), nullptr); - - if (SkillOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(SkillOverlay, false, nullptr); - } - else - { - if (SkillOverlay) - { - if (SkillOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(SkillOverlay, true, nullptr); - - SkillOverlay = nullptr; - } - } - //hp bar Overlay - if (f_HpOverlayHide) - { - if (HpOverlay == nullptr) - HpOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/GameInfo"), nullptr); - - if (HpOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(HpOverlay, false, nullptr); - } - else - { - if (HpOverlay) - { - if (HpOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(HpOverlay, true, nullptr); - - HpOverlay = nullptr; - } - } - //chat Overlay - if (f_ChatOverlayHide) - { - if (ChatOverlay == nullptr) - ChatOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/Chat"), nullptr); - - if (ChatOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(ChatOverlay, false, nullptr); - } - else - { - if (ChatOverlay) - { - if (ChatOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(ChatOverlay, true, nullptr); - - ChatOverlay = nullptr; - } - } - //reward overlay - if (f_RewardOverlayHide) - { - if (RewardOverlay == nullptr) - RewardOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/SpecialDialogs"), nullptr); - - if (RewardOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(RewardOverlay, false, nullptr); - } - else - { - if (RewardOverlay) - { - if (RewardOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(RewardOverlay, true, nullptr); - - RewardOverlay = nullptr; - } - } - //interact overlay - if (f_InteractOverlayHide) - { - if (InteractOverlay == nullptr) - InteractOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/Pages/InLevelMainPage/GrpMainPage/InteePanel"), nullptr); - - if (InteractOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(InteractOverlay, false, nullptr); - } - else - { - if (InteractOverlay) - { - if (InteractOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(InteractOverlay, true, nullptr); - - InteractOverlay = nullptr; - } - } - //ar level overlay - if (f_ArLevelOverlayHide) - { - if (ArLevelOverlay == nullptr) - ArLevelOverlay = app::GameObject_Find(string_to_il2cppi("/Canvas/SuspendBars/PlayerExpTipsDialog"), nullptr); - - if (ArLevelOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(ArLevelOverlay, false, nullptr); - } - else - { - if (ArLevelOverlay) - { - if (ArLevelOverlay->fields._.m_CachedPtr != nullptr) - app::GameObject_SetActive(ArLevelOverlay, true, nullptr); - - ArLevelOverlay = nullptr; - } - } } } \ No newline at end of file diff --git a/cheat-library/src/user/cheat/visuals/HideUI.h b/cheat-library/src/user/cheat/visuals/HideUI.h index 3e47e50..19955d5 100644 --- a/cheat-library/src/user/cheat/visuals/HideUI.h +++ b/cheat-library/src/user/cheat/visuals/HideUI.h @@ -9,17 +9,6 @@ namespace cheat::feature { public: config::Field> f_Enabled; - config::Field f_DamageOverlayHide; - config::Field f_RadarOverlayHide; - config::Field f_TopRightOverlayHide; - config::Field f_PingOverlayHide; - config::Field f_TeamOverlayHide; - config::Field f_SkillOverlayHide; - config::Field f_HpOverlayHide; - config::Field f_ChatOverlayHide; - config::Field f_RewardOverlayHide; - config::Field f_InteractOverlayHide; - config::Field f_ArLevelOverlayHide; static HideUI& GetInstance();