OPTION.OUT Data Tables

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
801c3628 - Menu struct data (general; same structure for BATTLE/WORLD) (0x3c = 60 bytes)
  0x00: X pos on frame buffer (2 bytes)
  0x02: Y pos on frame buffer (2 bytes)
  0x04: Inner width of window? (Should be the same as value at offset 0x14) (ex. 0x3c) (2 bytes)
  0x06: Inner height of window? (Should be the same as value at offset 0x16) (ex. 0x3c) (2 bytes)
  0x08: X Screen Location of window (ex. 0x00e2) (2 bytes)
  0x0a: Y Screen Location of window (ex. 0x00a0) (2 bytes)
  0x0c: ? (ex. 0x3c) Seems to have no effect (2 bytes?)
  0x0e: ? (ex. 0x40) Seems to have no effect (2 bytes?)
  0x10: ? (=0x00000000?) Seems to have no effect (4 bytes?)
  0x14: Overall width of window (Should be the same as value at offset 0x04) (ex. 0x40) (2 bytes)
  0x16: Overall height of window (Should be the same as value at offset 0x06) (ex. 0x40) (2 bytes)
  0x18: ? (=0x00000000?) Seems to have no effect (4 bytes?)
  0x1c: Menu text entry to display for entire menu text (Newline character (0xF8) as row separator, end with 0xFFFF, or 0xFE) (ex. 0x502e, 0x0000 (blank)) (2 bytes)
  0x1e: Maximum row index, starting at 0. Equal to number of rows - 1. (ex. 0x02) (2 bytes)
  0x20: ? (=0x00000001?) Seems to have no effect (4 bytes?)
  0x24: Pointer to action/menu ID array for this menu (ex. 0x80166a74) (4 bytes)
  0x28: Pointer to code function that brings up this menu / performs this action? (ex. 0x8013bfbc) (4 bytes)
  0x2c: Menu header (=0x01) (2 bytes)
      Default for unspecified value is (No header)
      0x01 = "Menu"
      0x02 = "Check"
      0x03 = "Effect"
      0x04 = "Turn"
      0x05 = "Ability"
      0x06 = "Ability"
      0x09 = "Ability"
      0x0b = "Turn"
  0x2e: ? (=0x0000?) Seems to have no effect (2 bytes?)
  0x30: Pointer to store whether or not menu needs initialization? (Sometimes) (ex. 0x80166994) (4 bytes)
  0x34: Pointer to store selected menu option (when Circle button pressed) (ex. 0x8016e42c) (4 bytes)
  0x38: Index of currently selected menu option (2 bytes)
  0x3a: Index for select text (Affects which select text is displayed) (ex. 0x0a) (2 bytes)