Skip to content

Commit acb913a

Browse files
committed
Cheats - In the Manage Flags menu, adjusted the values to all be aligned with each other
1 parent 10286e4 commit acb913a

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,24 +3040,38 @@ void drawCheatsManageFlagsMain(uint32_t currentMenu)
30403040

30413041
if (ChangingWord)
30423042
{
3043+
// Draw the text descriptions
30433044
sprintf(tempDisplayBuffer,
3044-
"%s To Set: %" PRIu32 "\nCurrent Value: %" PRId32 "\nNew Value: %" PRId32,
3045-
FlagText,
3045+
"%s To Set\nCurrent Value\nNew Value",
3046+
FlagText);
3047+
3048+
drawText(tempDisplayBuffer, PosX, PosY, Alpha, Color, Scale);
3049+
3050+
// Draw the values
3051+
sprintf(tempDisplayBuffer,
3052+
"%" PRIu32 "\n%" PRId32 "\n%" PRId32,
30463053
FlagToSet,
30473054
FlagValue,
30483055
ManageFlags.ValueToSet);
30493056

3050-
drawText(tempDisplayBuffer, PosX, PosY, Alpha, Color, Scale);
3057+
drawText(tempDisplayBuffer, PosX + 150, PosY, Alpha, Color, Scale);
30513058
}
30523059
else
30533060
{
3061+
// Draw the text descriptions
30543062
sprintf(tempDisplayBuffer,
3055-
"%s To Set: %" PRIu32 "\nCurrent Value: %" PRId32,
3056-
FlagText,
3063+
"%s To Set\nCurrent Value",
3064+
FlagText);
3065+
3066+
drawText(tempDisplayBuffer, PosX, PosY, Alpha, Color, Scale);
3067+
3068+
// Draw the values
3069+
sprintf(tempDisplayBuffer,
3070+
"%" PRIu32 "\n%" PRId32,
30573071
FlagToSet,
30583072
FlagValue);
30593073

3060-
drawText(tempDisplayBuffer, PosX, PosY, Alpha, Color, Scale);
3074+
drawText(tempDisplayBuffer, PosX + 150, PosY, Alpha, Color, Scale);
30613075
}
30623076
}
30633077

0 commit comments

Comments
 (0)