Skip to content

Commit

Permalink
IsOverrideBattleCamera option
Browse files Browse the repository at this point in the history
  • Loading branch information
v.vorobev committed Nov 6, 2023
1 parent ed66584 commit c2b8a55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions M2TWEOP Code/M2TWEOP GUI/dataG.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class dataG
int gameVer = 0;

bool isBlockLaunchWithoutEop = false;
bool IsOverrideBattleCamera = false;
}gameData;

struct
Expand Down
5 changes: 5 additions & 0 deletions M2TWEOP Code/M2TWEOP GUI/managerG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ namespace managerG
{
getJson(dataG::data.gameData.isBlockLaunchWithoutEop, "isBlockLaunchWithoutEop");
}
if (json.contains("IsOverrideBattleCamera"))
{
getJson(dataG::data.gameData.IsOverrideBattleCamera, "IsOverrideBattleCamera");
}
if (json.contains("isDiscordRichPresenceEnabled"))
{
getJson(dataG::data.gameData.isDiscordRichPresenceEnabled, "isDiscordRichPresenceEnabled");
Expand Down Expand Up @@ -210,6 +214,7 @@ namespace managerG
setJson("isTacticalMapViewerNeeded", dataG::data.modulesData.isTacticalMapViewerNeeded);
setJson("isDeveloperModeNeeded", dataG::data.modulesData.isDeveloperModeNeeded);
setJson("isBlockLaunchWithoutEop", dataG::data.gameData.isBlockLaunchWithoutEop);
setJson("IsOverrideBattleCamera", dataG::data.gameData.IsOverrideBattleCamera);
setJson("isDiscordRichPresenceEnabled", dataG::data.gameData.isDiscordRichPresenceEnabled);
writeJsonToFile(fPath, json);
json.clear();
Expand Down
1 change: 1 addition & 0 deletions M2TWEOP Code/M2TWEOP GUI/modSettingsUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ namespace modSettingsUI
ImGui::Checkbox("Tactical map viewer", &dataG::data.modulesData.isTacticalMapViewerNeeded);
ImGui::Checkbox("M2TWEOP developer mode", &dataG::data.modulesData.isDeveloperModeNeeded);
ImGui::Checkbox("Block modification launch without EOP", &dataG::data.gameData.isBlockLaunchWithoutEop);
ImGui::Checkbox("Override battle camera and controls", &dataG::data.gameData.IsOverrideBattleCamera);
}
void drawModSettingsUI(bool* isOpen)
{
Expand Down

0 comments on commit c2b8a55

Please sign in to comment.