Skip to content

Commit ea4a5d0

Browse files
committed
Set up functions for getting specific text and colors
Set up a function to get On/Off text and the associated color for it. Set up a function to get the color that the cursor is currently on. Adjusted several displays to show On/Off instead of 0 or 1: 1. GSWFs, GFs, and LSWFs in the Manage Flags menu in the Cheats menu 2. The Jump Storage value 3. The Defeated Flag in the Battles menu
1 parent 189521a commit ea4a5d0

File tree

3 files changed

+164
-269
lines changed

3 files changed

+164
-269
lines changed

ttyd-tools/rel/include/draw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ void drawText(const char *text, int32_t x, int32_t y, uint8_t alpha,
1919
uint32_t color, float scale);
2020

2121
uint16_t getMessageWidth(const char *text, float scale);
22+
void getOnOffTextAndColor(bool valueToCheck, const char **textOut, uint32_t *colorOut);
23+
uint32_t getSelectedTextColor(bool valueToCheck);
2224

2325
void drawTextWithWindow(const char *text, int32_t textPosX, int32_t textPosY, uint8_t alpha,
2426
uint32_t textColor, float textScale, int32_t windowWidth, uint32_t windowColor, float windowCurve);

0 commit comments

Comments
 (0)