FF7/Field/Script/Opcodes/57 SWCOL
From Final Fantasy Inside
< FF7 | Field | Script | Opcodes
Revision as of 12:34, 4 April 2018 by my_wiki>BukTop (2 revisions imported)
- Opcode: 0x57
- Short name: SWCOL
- Long name: Set Window Colour
Contents
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 |