world.NoteColourName
Chooses which RGB colour name will be used for world notes - text and background
Prototype
void NoteColourName(BSTR Foreground, BSTR Background);
Description
You can use this to set the foreground (text) and background colours used in world.note and world.tell. The colour is specified as a colour name, eg. "red", "green", "beige", "cyan" and so on.
The names are not case-sensitive.
You can also use HTML colour codes, eg. "#7FFF00", in this case the colours are in the order #rrggbb (rr = red, gg = green, bb = blue).
If a particular colour is invalid or not found, then that colour will be unchanged. Thus you can use this function to change the foreground colour only, the background colour only, or both.
Eg.
world.notecolourname "red", "" ' foreground only
world.notecolourname "", "blue" ' background only
world.notecolourname "green", "cyan" ' both
You can use MUSHclient's "colour picker" to choose a suitable name. Use the Edit menu -> Colour Picker to do this, or press Ctrl+Alt+P.
VBscript example
world.notecolourname "red", "green" ' set note colour to red on green
world.note "This will be in red on green"
Jscript example
world.notecolourname ("red", "green"); // set note colour to use red on green
world.note("This will be in red on green");
PerlScript example
$world->NoteColourname ("red", "green"); # set note colour to use red on green
$world->note("This will be in red on green");
Python example
world.notecolourname ("red", "green") # set note colour to use red on green
world.note("This will be in red on green")
Lua example
NoteColourName ("red", "green") -- set note colour to use red on green
Note("This will be in red on green")
Return value
Nothing.
Related topic
See also
| Function | Description |
|---|---|
| ColourNote | Sends a message to the output window in specified colours |
| ColourTell | Sends a message to the output window in specified colours - not terminated by a newline |
| Note | Sends a note to the output window |
| NoteColour | Chooses which custom colour will be used for world notes. |
| NoteColourBack | Chooses which RGB colour will be used for world notes - background colour |
| NoteColourFore | Chooses which RGB colour will be used for world notes - text colour |
| NoteColourRGB | Chooses which RGB colour will be used for world notes - text and background |
| Tell | Sends a message to the output window - not terminated by a newline |