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