diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 01:36:49 +0200 |
commit | a5d6c952a7be243a4c20b6aad47116dce0e51625 (patch) | |
tree | df4dd2067111b7c42038ca6189ac0ae6db11d9d6 /src/core/Pad.cpp | |
parent | Use enums in aVehicleSettings (diff) | |
download | re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.gz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.bz2 re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.lz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.xz re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.tar.zst re3-a5d6c952a7be243a4c20b6aad47116dce0e51625.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Pad.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index 03d209cd..a8ccbc36 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -3105,10 +3105,11 @@ void CPad::PrintErrorMessage(void) { if ( bDisplayNoControllerMessage && !CGame::playingIntro && !FrontEndMenuManager.m_bMenuActive ) { - CFont::SetScale(0.85f, 1.0f); + CSprite2d::DrawRect(CRect(SCREEN_STRETCH_X(20.0f), SCREEN_SCALE_FROM_BOTTOM(130.0f), SCREEN_STRETCH_FROM_RIGHT(20.0f), SCREEN_SCALE_Y(140.0f)), CRGBA(50, 50, 50, 210)); + CFont::SetScale(SCREEN_SCALE_X(0.85f), SCREEN_SCALE_Y(1.0f)); CFont::SetJustifyOff(); CFont::SetBackgroundOff(); - CFont::SetCentreSize(SCREEN_WIDTH - 20); + CFont::SetCentreSize(SCREEN_STRETCH_FROM_RIGHT(50.0f)); CFont::SetCentreOn(); CFont::SetPropOn(); CFont::SetColor(CRGBA(255, 255, 200, 200)); @@ -3116,16 +3117,17 @@ void CPad::PrintErrorMessage(void) CFont::PrintString ( SCREEN_WIDTH / 2, - SCREEN_HEIGHT / 2, + SCREEN_HEIGHT / 2 - SCREEN_SCALE_Y(40.0f), TheText.Get("NOCONT") // Please reconnect an analog controller (DUALSHOCK@) or analog controller (DUALSHOCK@2). to controller port 1 to continue ); } else if ( bObsoleteControllerMessage ) { - CFont::SetScale(0.85f, 1.0f); + CSprite2d::DrawRect(CRect(SCREEN_STRETCH_X(20.0f), SCREEN_SCALE_FROM_BOTTOM(130.0f), SCREEN_STRETCH_FROM_RIGHT(20.0f), SCREEN_SCALE_Y(140.0f)), CRGBA(50, 50, 50, 210)); + CFont::SetScale(SCREEN_SCALE_X(0.85f), SCREEN_SCALE_Y(1.0f)); CFont::SetJustifyOff(); CFont::SetBackgroundOff(); - CFont::SetCentreSize(SCREEN_WIDTH - 20); + CFont::SetCentreSize(SCREEN_STRETCH_FROM_RIGHT(50.0f)); CFont::SetCentreOn(); CFont::SetPropOn(); CFont::SetColor(CRGBA(255, 255, 200, 200)); @@ -3133,7 +3135,7 @@ void CPad::PrintErrorMessage(void) CFont::PrintString ( SCREEN_WIDTH / 2, - SCREEN_HEIGHT / 2, + SCREEN_HEIGHT / 2 - SCREEN_SCALE_Y(40.0f), TheText.Get("WRCONT") // The controller connected to controller port 1 is an unsupported controller. Grand Theft Auto III requires an analog controller (DUALSHOCK@) or analog controller (DUALSHOCK@2). ); } |