Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/56 GWCOL

1,492 bytes added, 18:06, 14 September 2006
no edit summary
* Opcode: '''0x56'''
* Short name: '''GWCOL'''
* Long name: Get Window Colour

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x56
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="40" | ''C''
! width="40" | ''R''
! width="40" | ''G''
! width="40" | ''B''
|}

==== Arguments ====
* '''const Bit[4]''' ''B1'': Bank to retrieve ''C'', or zero if it specified as a literal value.
* '''const Bit[4]''' ''B2'': Bank to store ''R''.
* '''const Bit[4]''' ''B3'': Bank to store ''G''.
* '''const Bit[4]''' ''B4'': Bank to store ''B''.
* '''const UByte''' ''C'': Corner to check, or address to retrieve value if ''B1'' is non-zero.
* '''const UByte''' ''R'': Address to store red component in bank ''B2''.
* '''const UByte''' ''G'': Address to store green component in bank ''B3''.
* '''const UByte''' ''B'': Address to store blue component in bank ''B4''.

==== Description ====

Gets the colour used in the gradient for windows in which text is displayed, into the banks and address specified.

==== Corner ID ====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" width="40" | ID
! style="background:rgb(204,204,204)" width="150" | Corner
|-
| align="center" | 0
| Top Left
|-
| align="center" | 1
| Bottom Left
|-
| align="center" | 2
| Top Right
|-
| align="center" | 3
| Bottom Right
|-
|}

Navigation menu