Skip to content

Commit

Permalink
Some functions related to badges/ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
assidion2 committed Oct 8, 2024
1 parent bdc6aef commit 59e76e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions headers/functions/arm9.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ int AtoiTagVeneer(const char* s);
void InitPreprocessorArgs(struct preprocessor_args* args);
char* SetStringAccuracy(char* s, int param_2);
char* SetStringPower(char* s, int param_2);
char* GetRankString(char* s, int rank_and_flags);
char* GetCurrentTeamNameString(char* buffer, int param_2);
char* GetBagNameString(char* buffer);
char* GetDungeonResultString(int string_number);
Expand Down Expand Up @@ -533,6 +534,8 @@ void LoadCursors(void);
void InitWindowTrailer(struct window_trailer* trailer);
void LoadAlert(void);
void PrintClearMark(int mark_id, int x, int y, undefined param_4);
void PrintBadgeMark(enum rank badge_id, int x, int y, undefined param_4);
void PrintMark(int file, int id_in_file, int x, int y, undefined param_5);
int CreateParentMenuFromStringIds(struct window_params* params, struct window_flags flags,
struct window_extra_info* window_extra_info,
struct simple_menu_id_item* menu_items);
Expand Down
32 changes: 32 additions & 0 deletions symbols/arm9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4804,6 +4804,15 @@ arm9:
NA: 0x2024428
JP: 0x2024478
description: "Note: unverified, ported from Irdkwia's notes"
- name: GetRankString
address:
EU: 0x2024D88
description: |-
Gets the string corresponding to the player's current explorer rank.
r0: [output] str
r1: First 16 bits contain the rank, next 4 are some sort of bitflags
return: r0 if flags are 0, pointer to some static address otherwise
- name: GetCurrentTeamNameString
address:
EU: 0x2024F00
Expand Down Expand Up @@ -5211,6 +5220,29 @@ arm9:
r1: X pos (unknown units, usually ranges between 3 and 27)
r2: Y pos (unknown units, normally 14)
r3: ?
- name: PrintBadgeMark
address:
EU: 0x202A728
description: |-
Prints the specified badge mark on the screen.
The badge mark is shown when opening the menu in the overworld.
r0: Badge ID
r1: X pos (unknown units, always 3)
r2: Y pos (unknown units, always 18)
r3: ? (always 3)
- name: PrintMark
address:
EU: 0x202A750
description: |-
Prints a mark from one of the .w16 files in FONT.
r0: 0 if file is clrmark1.w16, 1 if file is clrmark2.w16, 2 if file is rankmark.w16.
r1: Mark ID in file
r2: X pos (unknown units)
r3: Y pos (unknown units)
stack[0]: ?
- name: CreateParentMenuFromStringIds
address:
EU: 0x202A8C0
Expand Down

0 comments on commit 59e76e4

Please sign in to comment.