2017-10-13 08:47:26 -04:00
|
|
|
#ifndef GUARD_INTERNATIONAL_STRING_UTIL_H
|
|
|
|
#define GUARD_INTERNATIONAL_STRING_UTIL_H
|
|
|
|
|
2017-10-22 18:55:07 -04:00
|
|
|
#include "menu.h"
|
2018-11-27 17:21:23 -06:00
|
|
|
#include "list_menu.h"
|
2017-10-22 18:55:07 -04:00
|
|
|
|
2021-02-20 15:15:38 -05:00
|
|
|
void ConvertInternationalPlayerName(u8 *src);
|
2018-11-27 17:21:23 -06:00
|
|
|
void TVShowConvertInternationalString(u8 *dest, const u8 *src, int language);
|
|
|
|
int GetStringCenterAlignXOffset(int fontId, const u8 *str, int totalWidth);
|
|
|
|
int GetStringRightAlignXOffset(int fontId, const u8 *str, int totalWidth);
|
|
|
|
int GetStringCenterAlignXOffsetWithLetterSpacing(int fontId, const u8 *str, int totalWidth, int letterSpacing);
|
|
|
|
int GetStringWidthDifference(int fontId, const u8 *str, int totalWidth, int letterSpacing);
|
2021-10-17 21:51:11 -04:00
|
|
|
int GetMaxWidthInMenuTable(const struct MenuAction *actions, int numActions);
|
|
|
|
int GetMaxWidthInSubsetOfMenuTable(const struct MenuAction *actions, const u8* actionIds, int numActions);
|
2019-03-31 18:59:52 -04:00
|
|
|
int Intl_GetListMenuWidth(const struct ListMenuTemplate *listMenu);
|
2018-11-27 17:21:23 -06:00
|
|
|
void CopyMonCategoryText(int dexNum, u8 *dest);
|
2021-10-17 21:51:11 -04:00
|
|
|
u8 *GetStringClearToWidth(u8 *dest, int fontId, const u8 *str, int totalStringWidth);
|
2018-11-27 17:21:23 -06:00
|
|
|
void PadNameString(u8 *dest, u8 padChar);
|
2021-02-20 15:15:38 -05:00
|
|
|
void ConvertInternationalPlayerNameStripChar(u8 *, u8);
|
2021-04-22 14:30:45 -04:00
|
|
|
void ConvertInternationalContestantName(u8 *);
|
2021-10-17 21:51:11 -04:00
|
|
|
int GetNicknameLanguage(u8 *);
|
2021-11-01 18:06:15 -04:00
|
|
|
void FillWindowTilesByRow(int windowId, int columnStart, int rowStart, int numFillTiles, int numRows);
|
2017-10-13 08:47:26 -04:00
|
|
|
|
2017-10-09 15:40:08 +02:00
|
|
|
#endif // GUARD_INTERNATIONAL_STRING_UTIL_H
|