Users browsing this thread: 1 Guest(s)
Tentative Runic -> SwdMagic patch
The string that holds the menu text starts with two bytes (one 16-bit number) that holds the position of the text.
Menus are made up of layers, and each layer has a number of tiles, ordered from top left to bottom right, like this:
The above is just an example; I don't think the top left tile at the bottom layer actually starts at 0x0000.
I forget how many tiles there are, but each tile is 8x8 pixels so just look at the size of a screen dump and divide that by 8.
Incrementing the bottom byte (the second one) of the positioning bytes by 0x02 moves the string one tile to the right, until it hits the right border and wraps around to the next row of tiles. Layers work similarly I think.
Menus are made up of layers, and each layer has a number of tiles, ordered from top left to bottom right, like this:
Code:
01 02 03 04 05 06 07 08
09 0A 0B 0C 0D 0E 0F 10
...and so on.
The above is just an example; I don't think the top left tile at the bottom layer actually starts at 0x0000.
I forget how many tiles there are, but each tile is 8x8 pixels so just look at the size of a screen dump and divide that by 8.
Incrementing the bottom byte (the second one) of the positioning bytes by 0x02 moves the string one tile to the right, until it hits the right border and wraps around to the next row of tiles. Layers work similarly I think.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)