aboutsummaryrefslogtreecommitdiff
path: root/Core.cpp
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-04-10 17:54:48 +0200
committerBDKPlayer <fabian.stotz@yahoo.de>2020-04-10 17:54:48 +0200
commit8fc311eaba0bc23a2b4cfbbd7882d2385710e234 (patch)
treee2e59e86f4dea000b71746042915321943fe952c /Core.cpp
parent5b7e11032b3e3870c3f5919e0d65927e95bbb31b (diff)
Added Config system to save/load settings
Diffstat (limited to 'Core.cpp')
-rw-r--r--Core.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/Core.cpp b/Core.cpp
index c9591b4..3f6413b 100644
--- a/Core.cpp
+++ b/Core.cpp
@@ -22,7 +22,7 @@
#include "RelicManager.h"
#include "CustomLoadingScreen.h"
#include "Debug.h"
-#include "PauseManager.h"
+//#include "PauseManager.h"
MidfunctionHook onGameStartHook = MidfunctionHook();
MidfunctionHook onTurnHook = MidfunctionHook();
@@ -260,7 +260,7 @@ void Core::OnPresent()
ImGui::Text("Localplayer %p", Engine::Get()->GetLocalPlayer());
ImGui::Text("PlayerArray %p", playerArray);
ImGui::Text("totalPlayers %d", totalPlayers);
- ImGui::Text("ScreenPos %f %f %f", mainScreen->pGameScreen->pMainView->ScreenPosX, mainScreen->pGameScreen->pMainView->ScreenPosY, mainScreen->pGameScreen->pMainView->ScreenPosZ);
+ ImGui::Text("ScreenPos %p %f %f %f", mainScreen->pGameScreen->pMainView, mainScreen->pGameScreen->pMainView->ScreenPosX, mainScreen->pGameScreen->pMainView->ScreenPosY, mainScreen->pGameScreen->pMainView->ScreenPosZ);
ImGui::TreePop();
}
ImGui::Separator();
@@ -277,6 +277,17 @@ void Core::OnPresent()
FeatureManager::Get()->OnMenuMainWindow();
ImGui::Separator();
ImGui::Checkbox("Skip localplayer", &skipLocalplayer);
+ ImGui::Separator();
+ ImGui::Separator();
+ if(ImGui::Button("Save Config"))
+ {
+ FeatureManager::Get()->SaveConfig();
+ }
+ ImGui::SameLine();
+ if (ImGui::Button("Load Config"))
+ {
+ FeatureManager::Get()->LoadConfig();
+ }
}
}
__finally