Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/57 SWCOL

1,733 bytes added, 18:11, 14 September 2006
no edit summary
* Opcode: '''0x57'''
* Short name: '''SWCOL'''
* Long name: Set 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 retrieve ''R'', or zero if it specified as a literal value.
* '''const Bit[4]''' ''B3'': Bank to retrieve ''G'', or zero if it specified as a literal value.
* '''const Bit[4]''' ''B4'': Bank to retrieve ''B'', or zero if it specified as a literal value.
* '''const UByte''' ''C'': Corner to set colour, or address to retrieve value if ''B1'' is non-zero.
* '''const UByte''' ''R'': Red value of the corner, or address to retrieve red component if ''B2'' is non-zero.
* '''const UByte''' ''G'': Green value of the corner, or address to retrieve green component if ''B3'' is non-zero.
* '''const UByte''' ''B'': Blue value of the corner, or address to retrieve blue component if ''B4'' is non-zero.

==== Description ====

Sets the colour for a particular corner of the gradient used in windows for displaying text.

==== 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