Skip to content

Commit

Permalink
ScaleY support
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed Dec 5, 2023
1 parent fa99f9e commit 1750538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/c++/Hooks/Hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ class Hooks
{
root.SetMember("x", MCM::Settings::Pipboy::fPipboyMenuX);
root.SetMember("y", MCM::Settings::Pipboy::fPipboyMenuY);
root.SetMember("scaleX", MCM::Settings::Pipboy::fPipboyMenuScale);
root.SetMember("scaleY", MCM::Settings::Pipboy::fPipboyMenuScale);
root.SetMember("scaleX", MCM::Settings::Pipboy::fPipboyMenuScaleX);
root.SetMember("scaleY", (MCM::Settings::Pipboy::fPipboyMenuScaleY > 0.0) ? MCM::Settings::Pipboy::fPipboyMenuScaleY : MCM::Settings::Pipboy::fPipboyMenuScaleX);
}

Renderer->Enable();
Expand Down Expand Up @@ -1065,8 +1065,8 @@ class Hooks
{
root.SetMember("x", MCM::Settings::Pipboy::fPipboyMenuX);
root.SetMember("y", MCM::Settings::Pipboy::fPipboyMenuY);
root.SetMember("scaleX", MCM::Settings::Pipboy::fPipboyMenuScale);
root.SetMember("scaleY", MCM::Settings::Pipboy::fPipboyMenuScale);
root.SetMember("scaleX", MCM::Settings::Pipboy::fPipboyMenuScaleX);
root.SetMember("scaleY", (MCM::Settings::Pipboy::fPipboyMenuScaleY > 0.0) ? MCM::Settings::Pipboy::fPipboyMenuScaleY : MCM::Settings::Pipboy::fPipboyMenuScaleX);
}
}

Expand Down
6 changes: 4 additions & 2 deletions src/c++/MCM/MCM.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ namespace MCM
inline static double fBackgroundAlpha{ 1.0 };
inline static double fPipboyMenuX{ 35.0 };
inline static double fPipboyMenuY{ 0.0 };
inline static double fPipboyMenuScale{ 0.92 };
inline static double fPipboyMenuScaleX{ 0.92 };
inline static double fPipboyMenuScaleY{ 0.0 };
inline static double fPipboyBackgroundX{ 42.0 };
inline static double fPipboyBackgroundY{ 0.0 };
inline static double fPipboyBackgroundScale{ 0.90 };
Expand Down Expand Up @@ -69,7 +70,8 @@ namespace MCM
GetModSettingDouble("Pipboy", "fBackgroundAlpha", Pipboy::fBackgroundAlpha);
GetModSettingDouble("Pipboy", "fPipboyMenuX", Pipboy::fPipboyMenuX);
GetModSettingDouble("Pipboy", "fPipboyMenuY", Pipboy::fPipboyMenuY);
GetModSettingDouble("Pipboy", "fPipboyMenuScale", Pipboy::fPipboyMenuScale);
GetModSettingDouble("Pipboy", "fPipboyMenuScaleX", Pipboy::fPipboyMenuScaleX);
GetModSettingDouble("Pipboy", "fPipboyMenuScaleY", Pipboy::fPipboyMenuScaleY);
GetModSettingDouble("Pipboy", "fPipboyBackgroundX", Pipboy::fPipboyBackgroundX);
GetModSettingDouble("Pipboy", "fPipboyBackgroundY", Pipboy::fPipboyBackgroundY);
GetModSettingDouble("Pipboy", "fPipboyBackgroundScale", Pipboy::fPipboyBackgroundScale);
Expand Down

0 comments on commit 1750538

Please sign in to comment.