Difference between revisions of "FF7/Field/Script/Opcodes/57 SWCOL"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (3 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
==== Memory layout ====
 
==== Memory layout ====
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x56
+
! width="40" | 0x57
 
! width="50" | ''B1 / B2''
 
! width="50" | ''B1 / B2''
 
! width="50" | ''B3 / B4''
 
! width="50" | ''B3 / B4''

Latest revision as of 05:17, 23 May 2019

  • Opcode: 0x57
  • Short name: SWCOL
  • Long name: Set Window Colour

Memory layout

0x57 B1 / B2 B3 / B4 C R G 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

ID Corner
0 Top Left
1 Bottom Left
2 Top Right
3 Bottom Right