summaryrefslogtreecommitdiffstats
path: root/src/core/main.cpp
diff options
context:
space:
mode:
authorXinerki <simasadves@gmail.com>2020-05-21 16:28:03 +0200
committerXinerki <simasadves@gmail.com>2020-05-21 16:28:03 +0200
commit1c00e3cf2c184809d4ed814640eedcf0ef997b1c (patch)
tree745ab93873dbc202c7449f4b7f4ba1866c279bcd /src/core/main.cpp
parentmake reloadables optional (diff)
downloadre3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar.gz
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar.bz2
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar.lz
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar.xz
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.tar.zst
re3-1c00e3cf2c184809d4ed814640eedcf0ef997b1c.zip
Diffstat (limited to '')
-rw-r--r--src/core/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 9b40b81d..531a30d3 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -689,11 +689,13 @@ DisplayGameDebugText()
{
static bool bDisplayPosn = false;
static bool bDisplayRate = false;
+ static bool bDisplayCheatStr = false;
{
SETTWEAKPATH("GameDebugText");
TWEAKBOOL(bDisplayPosn);
TWEAKBOOL(bDisplayRate);
+ TWEAKBOOL(bDisplayCheatStr);
}
@@ -781,6 +783,26 @@ DisplayGameDebugText()
CFont::SetColor(CRGBA(255, 108, 0, 255));
CFont::PrintString(40.0f, 40.0f, ustr);
}
+
+ if (bDisplayCheatStr)
+ {
+ sprintf(str, "%s", CPad::KeyBoardCheatString);
+ AsciiToUnicode(str, ustr);
+
+ CFont::SetPropOff();
+ CFont::SetBackgroundOff();
+ CFont::SetScale(0.7f, 1.5f);
+ CFont::SetCentreOn();
+ CFont::SetBackGroundOnlyTextOff();
+ CFont::SetWrapx(640.0f);
+ CFont::SetFontStyle(FONT_HEADING);
+
+ CFont::SetColor(CRGBA(0, 0, 0, 255));
+ CFont::PrintString(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH * 0.5f)+2.f, SCREEN_SCALE_FROM_BOTTOM(20.0f)+2.f, ustr);
+
+ CFont::SetColor(CRGBA(255, 150, 225, 255));
+ CFont::PrintString(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH * 0.5f), SCREEN_SCALE_FROM_BOTTOM(20.0f), ustr);
+ }
}
#endif