aboutsummaryrefslogtreecommitdiff
path: root/Core.cpp
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-03-16 11:29:36 +0100
committerBDKPlayer <fabian.stotz@yahoo.de>2020-03-16 11:29:36 +0100
commit1fb0a22efeebe9c0b375449bb00c92183599949b (patch)
tree5c17321143c99699449b12527f810c9d0030430a /Core.cpp
parent27074de05971f1e9ac7ca95b6a7397af7427ce58 (diff)
Added: Siege impact ESP
Diffstat (limited to 'Core.cpp')
-rw-r--r--Core.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/Core.cpp b/Core.cpp
index be27013..5f3045a 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -22,7 +22,7 @@ Core::Core()
//Register Features here
FeatureManager::Get()->registerFeature(new ResourceInformation());
FeatureManager::Get()->registerFeature(new ESP());
- FeatureManager::Get()->registerFeature(new MinimapText());
+ //FeatureManager::Get()->registerFeature(new MinimapText());
FeatureManager::Get()->OnInitialise();
}
@@ -34,6 +34,7 @@ void createPlayerTreeNode(Player* player, int playerIndex)
std::string playerText = "Player " + std::to_string(playerIndex);
if (ImGui::TreeNode(player->name))
{
+ ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff);
ImGui::Text("Player %p", player);
FeatureManager::Get()->OnMenuPlayerTreenode(player, playerIndex);
if (ImGui::TreeNode("Units"))
@@ -71,6 +72,7 @@ void createPlayerTreeNode(Player* player, int playerIndex)
ImGui::Text("Cavalry %.d", calavaryCount);
ImGui::TreePop();
}
+ ImGui::PopStyleColor();
ImGui::TreePop();
}
ImGui::PopStyleColor();
@@ -81,20 +83,26 @@ void Core::OnPresent()
{
__try
{
+ printf("Valid: ");
MainScreen* mainScreen = Engine::Get()->GetMainScreen();
if (!mainScreen)
{
return;
}
-
+ printf("mainScreen %p", mainScreen);
World* world = Engine::Get()->GetWorld();
-
+ if (!world)
+ {
+ return;
+ }
+ printf(" world %p", world);
PlayerArray* playerArray = world->pPlayerArray;
if (!playerArray)
{
return;
}
+ printf(" playerArray %p", playerArray);
int totalPlayers = Engine::Get()->GetTotalPlayers();
static bool openOverlay = true;
@@ -142,7 +150,7 @@ void Core::OnPresent()
Renderer::Get()->EndScene();
- ImGui::SetNextWindowBgAlpha(0.35f);
+ ImGui::SetNextWindowBgAlpha(0.55f);
if (openOverlay)
{
__try