Skip to content

Commit

Permalink
console: use arrow sprite for caret (LostArtefacts#224)
Browse files Browse the repository at this point in the history
This replaces the placeholder caret with the same arrow sprite as is
used in TR1X.

Resolves LostArtefacts#91.
  • Loading branch information
lahm86 authored Sep 9, 2024
1 parent 3e735f1 commit fc79d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- fixed the music at the beginning of Offshore Rig not playing (#150, regression from 0.1)
- improved initial level load time by lazy-loading audio samples (#114)
- improved crash debug information (#137)
- improved the console caret sprite (#91)

## [0.2](https://github.com/LostArtefacts/TR2X/compare/0.1.1...0.2) - 2024-05-07
- added dev console with the following commands:
Expand Down
2 changes: 1 addition & 1 deletion src/game/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void Console_Open(void)

m_Prompt.caret = strlen(m_Prompt.text);

m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x26");
m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x11");
Text_SetScale(
m_Prompt.caret_ts, PHD_ONE * m_PromptScale, PHD_ONE * m_PromptScale);
Text_AlignBottom(m_Prompt.caret_ts, true);
Expand Down
2 changes: 1 addition & 1 deletion src/game/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define CHAR_SECRET_1 0x7Fu
#define CHAR_SECRET_2 0x80u
#define CHAR_SECRET_3 0x81u
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 10u || (c) >= 32u))
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 18u || (c) >= 32u))
#define IS_CHAR_SECRET(c) ((c) >= CHAR_SECRET_1 && (c) <= CHAR_SECRET_3)
#define IS_CHAR_DIACRITIC(c) \
((c) == '(' || (c) == ')' || (c) == '$' || (c) == '~')
Expand Down

0 comments on commit fc79d77

Please sign in to comment.