|
Purpose |
Changes the colours for the next screen function | |
|
Old name |
#define force_colour field_force_colour | |
|
Syntax |
void field_force_colour(in_colour, out_colour, | |
|
Parameters |
int in_colour |
The colour to use for the input colour |
|
|
int out_colour |
The colour to use for the output colour |
|
|
int in_beep |
The beep duration for next input |
|
|
int out_beep |
The beep duration for next output |
|
|
The parameters in_colour and out_colour determine the colour for input and output. If the colour value is greater than 0, the lower 8 bits determine the colour as follows: | |
|
|
Bit |
Colour |
|
|
bit 0 |
Blue |
|
|
If the colour is less than zero the colour is forced to the default colour of the standard colour types. The code values must be negated in calls to field_force_colour(). The codes are shown below: | |
|
|
Value |
Meaning |
|
|
C_BACKGROUND |
Default background colour |
|
|
The parameters in_beep and out_beep determine the length of the beep duration for input and output functions. Use -1 for the default beep and 0 for no beep at all. |
|
Description |
The field_force_colour() function is used to change the default colour values in a map for the next screen function call only. |
|
See also |