diff options
author | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-27 22:09:57 +0100 |
---|---|---|
committer | BDKPlayer <fabian.stotz@yahoo.de> | 2020-03-27 22:09:57 +0100 |
commit | 78ddf8f82467c64d8653cea199e1f435afe41b76 (patch) | |
tree | 39d6eb7d140d19efa572e63fdd1006f047a2e3ad /Core.cpp | |
parent | e95f90c028b40f39a41f18533f7cc921f4f37dd3 (diff) |
Added: Custom Loading Screen
Fixed: Minimaphook now works in release/debug
Diffstat (limited to 'Core.cpp')
-rw-r--r-- | Core.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -17,14 +17,18 @@ #include "ESP.h" #include "MinimapText.h" #include "RelicManager.h" +#include "CustomLoadingScreen.h" Core::Core() { + FeatureManager* featureManager = FeatureManager::Get(); //Register Features here - FeatureManager::Get()->registerFeature(new ResourceInformation()); - FeatureManager::Get()->registerFeature(new ESP()); - //FeatureManager::Get()->registerFeature(new MinimapText()); - FeatureManager::Get()->registerFeature(new RelicManager()); + featureManager->registerFeature(new ResourceInformation()); + featureManager->registerFeature(new ESP()); + featureManager->registerFeature(new MinimapText()); + featureManager->registerFeature(new RelicManager()); + featureManager->registerFeature(new CustomLoadingScreen("C:\\wallpaper.jpg")); + FeatureManager::Get()->OnInitialise(); } @@ -37,11 +41,6 @@ void createPlayerTreeNode(Player* player, int playerIndex) { ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff); ImGui::Text("Player %p (%f, %f)", player, player->xScreenPos, player->yScreenPos); - if (ImGui::Button("Set camera to 0")) - { - player->xScreenPos = 0; - player->yScreenPos = 0; - } FeatureManager::Get()->OnMenuPlayerTreenode(player, playerIndex); if (ImGui::TreeNode("Units")) { @@ -89,26 +88,26 @@ void Core::OnPresent() { __try { - printf("Valid: "); + //printf("Valid: "); MainScreen* mainScreen = Engine::Get()->GetMainScreen(); if (!mainScreen) { return; } - printf("mainScreen %p", mainScreen); + //printf("mainScreen %p", mainScreen); World* world = Engine::Get()->GetWorld(); if (!world) { return; } - printf(" world %p", world); + //printf(" world %p", world); PlayerArray* playerArray = world->pPlayerArray; if (!playerArray) { return; } - printf(" playerArray %p", playerArray); + //printf(" playerArray %p", playerArray); int totalPlayers = Engine::Get()->GetTotalPlayers(); static bool openOverlay = true; |