Sections.cpp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #include "../Functions/About/About.h"
  2. #include "../Functions/Player/GodMode.h"
  3. #include "../Functions/Player/InfiniteEnergy.h"
  4. #include "../Functions/Player/InfiniteStamina.h"
  5. #include "../Functions/Player/MultiHit.h"
  6. #include "../Functions/Player/NoClip.h"
  7. #include "../Functions/Player/NoCooldown.h"
  8. #include "../Functions/Settings/Settings.h"
  9. #include "../Functions/Visuals/CameraZoom.h"
  10. #include "../Functions/Visuals/FovChanger.h"
  11. #include "../Functions/Visuals/HideDamage.h"
  12. #include "../Functions/Visuals/HideReaction.h"
  13. #include "../Functions/Visuals/HideUI.h"
  14. #include "../Functions/Visuals/NoFog.h"
  15. #include "../Functions/Visuals/Peeking.h"
  16. #include "../Functions/Visuals/ProfileChanger.h"
  17. #include "../Functions/Visuals/ShowIndicators.h"
  18. #include "../Functions/Visuals/UnlockFPS.h"
  19. #include "../Functions/Visuals/GraphicsChanger.h"
  20. #include "../Functions/Lua/LuaConsole.h"
  21. #include "../Functions/World/PickupRange.h"
  22. #include "../Functions/World/AutoTalk.h"
  23. #include "../Functions/World/VacuumLoot.h"
  24. #include "../Functions/World/CutsceneSkip.h"
  25. #include "../Functions/World/DumbEnemies.h"
  26. #include "../Functions/World/ElementalSight.h"
  27. #include "../Functions/World/GameSpeed.h"
  28. #include "../Functions/World/ESP.h"
  29. //#include "../Functions/World/OpenTeamImmediately.h"
  30. //#include "../Functions/World/AutoDestroy.h"
  31. //#include "../Functions/World/AutoChallenge.h"
  32. //#include "../Functions/World/AutoLoot.h"
  33. //#include "../Functions/World/AutoTP.h"
  34. //#include "../Functions/World/MobVacuum.h"
  35. std::vector<std::string> ModuleOrder = {
  36. _("MODULE_PLAYER"),
  37. _("MODULE_WORLD"),
  38. _("MODULE_VISUALS"),
  39. _("MODULE_LUA"),
  40. _("MODULE_SETTINGS"),
  41. _("MODULE_ABOUT")
  42. };
  43. void Init() {
  44. // Player
  45. INIT_FUNC(GodMode);
  46. INIT_FUNC(InfiniteEnergy);
  47. INIT_FUNC(InfiniteStamina);
  48. INIT_FUNC(MultiHit);
  49. INIT_FUNC(NoClip);
  50. INIT_FUNC(NoCooldown);
  51. // World
  52. INIT_FUNC(CameraZoom);
  53. //INIT_FUNC(FovChanger);
  54. INIT_FUNC(GraphicsChanger);
  55. INIT_FUNC(HideDamage);
  56. INIT_FUNC(HideReaction);
  57. INIT_FUNC(HideUI);
  58. INIT_FUNC(NoFog);
  59. INIT_FUNC(Peeking);
  60. INIT_FUNC(ProfileChanger);
  61. INIT_FUNC(ShowIndicators);
  62. INIT_FUNC(UnlockFPS);
  63. // Lua
  64. INIT_FUNC(LuaConsole);
  65. // World
  66. INIT_FUNC(AutoTalk);
  67. INIT_FUNC(CutsceneSkip);
  68. INIT_FUNC(DumbEnemies);
  69. INIT_FUNC(ElementalSight);
  70. INIT_FUNC(GameSpeed);
  71. //INIT_FUNC(MobVacuum);
  72. INIT_FUNC(PickupRange);
  73. INIT_FUNC(VacuumLoot);
  74. INIT_FUNC(ESP);
  75. //INIT_FUNC(AutoLoot);
  76. //INIT_FUNC(AutoChallenge);
  77. //INIT_FUNC(AutoDestroy);
  78. //INIT_FUNC(OpenTeamImmediately);
  79. //INIT_FUNC(AutoTP);
  80. // Settings
  81. INIT_FUNC(Settings);
  82. // About
  83. INIT_FUNC(About);
  84. }
  85. void Outer() {
  86. for (auto& func : functions)
  87. func->Outer();
  88. }
  89. void Status() {
  90. auto& settings = cheat::Settings::getInstance();
  91. if (!settings.f_Status.getValue())
  92. return;
  93. ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize |
  94. ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoFocusOnAppearing;
  95. if (!settings.f_StatusMove.getValue())
  96. flags |= ImGuiWindowFlags_NoMove;
  97. ImGui::Begin("Status", nullptr, flags);
  98. auto windowWidth = ImGui::GetWindowSize().x;
  99. auto& about = cheat::About::getInstance();
  100. std::string version = about.mVersion;
  101. ImGui::PushStyleColor(ImGuiCol_Text, { 0.17f, 0.63f, 0.45f, 1.00f });
  102. ImGui::Text("Minty-GI %s", version);
  103. ImGui::PopStyleColor();
  104. ImGui::Separator();
  105. for (auto& feature : functions)
  106. feature->Status();
  107. ImGui::End();
  108. }
  109. void DrawSection(const std::string& moduleName) {
  110. for (auto& func : functions) {
  111. if (func->getModule() != moduleName)
  112. continue;
  113. func->GUI();
  114. }
  115. }