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