Anonymous

Changes

From Final Fantasy Inside

FF7/Field/DialogWindow

1,108 bytes added, 16:48, 17 September 2007
no edit summary
== Description ==
Field module of Final Fantasy VII han handle 4 dialog windows at once. All data for them stored in structures with size 0x30.
There are a lot of additional arrays used for variables offsets and many other data used by windows.
 
All windows can be called any time with 0x40 MESSAGE or 0x48 ASK opcodes. They will be called all the time, when window is shown on screen. Only after window is closed this opcode will be skipped and script pointer go to next opcode.
There are a lot of window parameters opcode. they are set different parameters to window. They are 0x2E WCLS 0x2F WSIZW 0x36 WSPCL 0x37 WNUMB 0x38 STTIM 0x41 MPARA 0x42 MPRA2 0x50 WINDOW 0x51 WMOVE 0x52 WMODE 0x53 WREST 0x55 WROW 0x57 SWCOL. All of them write parameters directly to structure, but they need to be called from the same entity else they wait till the window is closed.
 
Window is state driven. The way how window handling input and shown are dependent on state. State handling called by MESSAGE and ASK opcode. State handling of this two opcodes a bit different. By default window state is zero (closed window).
 
== Memory Layout ==
Anonymous user