- 3
- Posts
- 6
- Years
- Seen Dec 7, 2022
I am currently trying to move elements around on the summary screen. There are quite a few offsets known for their respective coordinates, however these coordinates are fairly limited in range and therefore I believe are relative to some sort of window around each string. I am using the decomps to change values, then compare it against a clean rom to find the necessary offsets needed to change the size of the window created and allow for more range of where stuff is placed on the screen.
So far, I have found "AddTextPrinterParameterized3" which seems to load in a single line, and "AddTextPrinterParameterized4" which is used for strings that need character and line spacing, ex multiple lines. These are both defined in "menu.h" and require a paramter named windowId. For all of the instances of this function in pokemon_summary_screen.c, this parameter is filled by "sMonSummaryScreen->unk3000[3] (or 4)". However, this variable is not referenced in any other file, and doesn't seem to be the answer.
Another thing I have noticed, all of the values on the first page have the same value for the x offset. Sure, this makes sense because they are all aligned however that also means that they are all based relative to the same vertical line, which just so happens to be exactly 120 pixels from left side of the screen, or 1/2 or the gameboy's resolution.
tldr; does anyone know how to move the window in which each string is rendered in for the summary screen? For example, the held item string's x value by default is 47, though it is a lot farther to the right of the screen than 47 pixels.
So far, I have found "AddTextPrinterParameterized3" which seems to load in a single line, and "AddTextPrinterParameterized4" which is used for strings that need character and line spacing, ex multiple lines. These are both defined in "menu.h" and require a paramter named windowId. For all of the instances of this function in pokemon_summary_screen.c, this parameter is filled by "sMonSummaryScreen->unk3000[3] (or 4)". However, this variable is not referenced in any other file, and doesn't seem to be the answer.
Another thing I have noticed, all of the values on the first page have the same value for the x offset. Sure, this makes sense because they are all aligned however that also means that they are all based relative to the same vertical line, which just so happens to be exactly 120 pixels from left side of the screen, or 1/2 or the gameboy's resolution.
tldr; does anyone know how to move the window in which each string is rendered in for the summary screen? For example, the held item string's x value by default is 47, though it is a lot farther to the right of the screen than 47 pixels.
Last edited: