Author Topic: Portrait position in menu  (Read 1750 times)

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Portrait position in menu
« on: April 26, 2012, 10:05:39 PM »
Hello,

I've been starting some main menu changes and I'm up to the point where I would like to change the position of the portraits. I would shift them left and I have my own idea about how to fix the fact that the portrait would overlap the menu border if we use the order or row option. I'm also considering replacing the portrait by the sprite, but that's another story. I looked up in C3 and I haven't found a data table of 4 entries for the portraits in the main menu. The positioning system must be different than the strings and I have looked in the following routines where the main menu is loaded I think:

Code: [Select]
C3/6AE9: 20136B  JSR $6B13 (Function loads Fixed-Width Font Graphics Data)
C3/6AEC: 20376B  JSR $6B37 (Function loads graphics for Menu)
C3/6AEF: 20E86B  JSR $6BE8 (Function loads Menu Cursor Palette)
C3/6AF2: 20676E  JSR $6E67 (Function loads Hand Cursor Graphics)
C3/6AF5: 20826E  JSR $6E82
C3/6AF8: 20096C  JSR $6C09 (Function loads Menu Portrait Palettes)
C3/6AFB: 20E96C  JSR $6CE9
C3/6AFE: 20846C  JSR $6C84
C3/6B01: 4C606C  JMP $6C60

Also, is there a specific drawing routine for the portraits? That could help me trace back the position or how the portraits are draw.

Thanks

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Portrait position in menu
« Reply #1 on: May 04, 2012, 05:17:13 AM »
Well, it took me a while to figure it out but I found what I wanted!  :cycle:

Portraits positions in main menu (FF3us)

X position (same for the 4 portraits)

Code: [Select]
C3/0B01:    A91A00      LDA #$001A      (front row default X position)
C3/0B04:    8005        BRA $0B0B
C3/0B06:    C220        REP #$20        (16 bit memory/accum.)
C3/0B08:    A90E00      LDA #$000E     (back row default X position)   
C3/0B0B:    FA          PLX
C3/0B0C:    9DCA33      STA $33CA,X     (set as horizontal position)

Y positions

Code: [Select]
character slot 1
C3/0A3E:    A91500      LDA #$0015     
C3/0A41:    9D4A34      STA $344A,X    (set as vertical position)

character slot 2
C3/0A69:    A94500      LDA #$0045
C3/0A6C:    9D4A34      STA $344A,X

character slot 3
C3/0A94:    A97500      LDA #$0075
C3/0A97:    9D4A34      STA $344A,X

character slot 4
C3/0ABF:    A9A500      LDA #$00A5
C3/0AC2:    9D4A34      STA $344A,X

Edit: Specified for which game this finding is.
« Last Edit: May 04, 2012, 04:56:07 PM by Madsiur »

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: Portrait position in menu
« Reply #2 on: May 04, 2012, 10:33:38 AM »
Judging by the 4 character slots this would be for FFVI, I would presume?

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Portrait position in menu
« Reply #3 on: May 04, 2012, 12:22:46 PM »
Judging by the 4 character slots this would be for FFVI, I would presume?

Yes. I guess I should have specified it before...