diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-19 00:09:04 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-19 00:09:04 +0100 |
commit | 808f7c46f1df9acaf8d00ebde7cb1925e1d27f94 (patch) | |
tree | d021c5b31e7145abe0565ad76cf3c065fbd3c8ac /src/render/Hud.cpp | |
parent | more fixes to librw stuff (diff) | |
download | re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar.gz re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar.bz2 re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar.lz re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar.xz re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.tar.zst re3-808f7c46f1df9acaf8d00ebde7cb1925e1d27f94.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Hud.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index de3128ce..1a39e1c7 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -926,11 +926,20 @@ void CHud::Draw() CFont::SetJustifyOff(); CFont::SetBackgroundOff(); CFont::SetBackgroundColor(CRGBA(0, 0, 0, 128)); - CFont::SetScale(SCREEN_SCALE_X(0.48f), SCREEN_SCALE_Y(1.120f)); + CFont::SetScale(SCREEN_SCALE_X(0.48f), SCREEN_SCALE_Y(1.12f)); CFont::SetCentreOn(); CFont::SetPropOn(); CFont::SetFontStyle(FONT_LOCALE(FONT_BANK)); +#ifdef XBOX_SUBTITLES + float radarBulge = SCREEN_SCALE_X(45.0f) + SCREEN_SCALE_X(16.0f); + float rectWidth = SCREEN_WIDTH - SCREEN_SCALE_X(45.0f) - SCREEN_SCALE_X(16.0f) - radarBulge; + CFont::SetCentreSize(rectWidth); + CFont::SetColor(CRGBA(180, 180, 180, 255)); + + CFont::PrintOutlinedString(rectWidth / 2.0f + radarBulge, SCREEN_SCALE_Y(4.0f) + SCREEN_SCALE_FROM_BOTTOM(48.0f) - SCREEN_SCALE_Y(1), m_Message, + 2.0f, true, CRGBA(0, 0, 0, 255)); +#else float radarBulge = SCREEN_SCALE_X(40.0f) + SCREEN_SCALE_X(8.0f); float rectWidth = SCREEN_WIDTH - SCREEN_SCALE_X(50.0f) - SCREEN_SCALE_X(8.0f) - radarBulge; CFont::SetCentreSize(rectWidth); @@ -943,6 +952,7 @@ void CHud::Draw() // I'm not sure shadow substaction was intentional here, might be a leftover if CFont::PrintString was used for a shadow draw call CFont::PrintString(rectWidth / 2.0f + radarBulge - SCREEN_SCALE_X(shadow), SCREEN_SCALE_Y(4.0f) + SCREEN_SCALE_FROM_BOTTOM(68.0f) - SCREEN_SCALE_Y(shadow), m_Message); CFont::SetDropShadowPosition(0); +#endif } /* |