So I've run into another wall that I can't quite figure out, which is the X button prompt to skip a summon/spell, O in the Japanese version. I've already changed the button constant, so pressing O now skips, but I can't for the life of me figure out how it's drawing the X button. As far as I can tell, it's using a regular textbox (I've found the "Pass" text and the X button in vram) but it doesn't seem to be using the same codes as other textboxes. When I had made changes to the button layout on the settings screen, there is a string being referenced that is only the X button string code (050a150106) which is then positioned on the screen, and I've located this string in memory at the time the Pass prompt is being displayed, but it's not being read.
I've mapped out lots of the memory around the battle system, as to how the windows and prompts are positioned, but it seems the Pass prompt is no where near this stuff by the time it displays on screen.
This is the location of all of the X button constants that I've already changed (1st is address, 2nd is value of the result). I'm guessing the code for displaying the prompt could be around the same place? Since the prompt only shows up on the 2+ time you use the spell/summon, I figured they would share some logic around when to enable reading the button press, and displaying the box, but I haven't had much luck finding the button icon mapping with this either.
./extracted/BIN/BATTLE/BTLMOVE.EMI: 0000B174: 4000423008004010
./extracted/BIN/BATTLE/BTLMOVE.EMI: 0000B1F4: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC060.EMI: 00015A5C: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC061.EMI: 0001423C: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC062.EMI: 000151E8: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC063.EMI: 00000A80: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC064.EMI: 000009F0: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC065.EMI: 00014188: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC066.EMI: 000149D4: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC067.EMI: 000159F0: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC068.EMI: 000149C8: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC069.EMI: 000151C0: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC070.EMI: 00011A80: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC071.EMI: 0001521C: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC072.EMI: 0000B260: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC073.EMI: 00013998: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC074.EMI: 0001598C: 4000423008004010
./extracted/BIN/BMAGIC/MAGIC075.EMI: 00010230: 4000423008004010