Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

console: use arrow sprite for caret #224

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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