aboutsummaryrefslogtreecommitdiff
path: root/Core.cpp
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-03-27 22:09:57 +0100
committerBDKPlayer <fabian.stotz@yahoo.de>2020-03-27 22:09:57 +0100
commit78ddf8f82467c64d8653cea199e1f435afe41b76 (patch)
tree39d6eb7d140d19efa572e63fdd1006f047a2e3ad /Core.cpp
parente95f90c028b40f39a41f18533f7cc921f4f37dd3 (diff)
Added: Custom Loading Screen
Fixed: Minimaphook now works in release/debug
Diffstat (limited to 'Core.cpp')
-rw-r--r--Core.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/Core.cpp b/Core.cpp
index 394d15a..69e4571 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -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;