From c35ceb12c0750a6e8042172837a7bda83478f526 Mon Sep 17 00:00:00 2001 From: Mgamerz Date: Mon, 30 Nov 2020 17:52:11 -0700 Subject: [PATCH] Update streaming levels hud for release. Fix Y offset to be below PC hotbar --- SteamingLevelsHUD/StreamingLevelsHUD.cpp | 3 +-- SteamingLevelsHUD/StreamingLevelsHUD.vcxproj | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SteamingLevelsHUD/StreamingLevelsHUD.cpp b/SteamingLevelsHUD/StreamingLevelsHUD.cpp index c8e1b43..afbadc0 100644 --- a/SteamingLevelsHUD/StreamingLevelsHUD.cpp +++ b/SteamingLevelsHUD/StreamingLevelsHUD.cpp @@ -2,7 +2,6 @@ #include #include "../ME3SDK/ME3TweaksHeader.h" #include "../detours/detours.h" -#define _CRT_SECURE_NO_WARNINGS #pragma comment(lib, "detours.lib") //Library needed for Hooking part. #pragma comment( lib, "psapi.lib" ) #include @@ -26,7 +25,7 @@ BOOL critVisible = true; static void RenderTextSLH(std::wstring msg, const float x, const float y, const char r, const char g, const char b, const float alpha, UCanvas* can) { can->SetDrawColor(r, g, b, alpha * 255); - can->SetPos(x, y); + can->SetPos(x, y + 64); //+ is Y start. To prevent overlay on top of the power bar thing FLinearColor drawColor; drawColor.R = r; drawColor.G = g; diff --git a/SteamingLevelsHUD/StreamingLevelsHUD.vcxproj b/SteamingLevelsHUD/StreamingLevelsHUD.vcxproj index 9f29893..43706ba 100644 --- a/SteamingLevelsHUD/StreamingLevelsHUD.vcxproj +++ b/SteamingLevelsHUD/StreamingLevelsHUD.vcxproj @@ -77,7 +77,7 @@ MaxSpeed true true - WIN32;NDEBUG;_WINDOWS;_USRDLL;StreamingLevelsHUD_EXPORTS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS;WIN32;NDEBUG;_WINDOWS;_USRDLL;StreamingLevelsHUD_EXPORTS;%(PreprocessorDefinitions) true MultiThreaded stdcpp17