Skip to content

Commit 26daeb3

Browse files
committed
Adjusted the position of the sequence in the pause menu
The value is now shifted based on how many digits are displayed
1 parent 408b67a commit 26daeb3

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,27 @@ void drawSequenceInPauseMenu()
35103510
"%" PRIu32,
35113511
SequencePosition);
35123512

3513-
drawText(tempDisplayBuffer, PosX + 157, PosY, Alpha, Color, Scale);
3513+
// Adjust the position of the value based on the Sequence Position
3514+
#ifdef TTYD_JP
3515+
int32_t PosXIncrement = 186;
3516+
#else
3517+
int32_t PosXIncrement = 182;
3518+
#endif
3519+
3520+
if (SequencePosition >= 100)
3521+
{
3522+
PosXIncrement -= 26;
3523+
}
3524+
else if (SequencePosition >= 10)
3525+
{
3526+
PosXIncrement -= 13;
3527+
}
3528+
3529+
#ifdef TTYD_JP
3530+
Scale += 0.05;
3531+
#endif
3532+
3533+
drawText(tempDisplayBuffer, PosX + PosXIncrement, PosY, Alpha, Color, Scale);
35143534
}
35153535

35163536
void drawOnScreenTimer()

0 commit comments

Comments
 (0)