NoteColourBack
Script function

world.NoteColourBack

DOC_scripting Read about scripting

Type

Property

Summary

Chooses which RGB colour will be used for world notes - background colour

Prototype

long NoteColourBack;

DOC_data_types View list of data type meanings


Description

You can use this to set the background colour used in world.note and world.tell. The colour is specified in RGB (Red, Green, Blue). Red is in the low-order byte, Green in the middle-order byte, and Blue in the higher-order byte. (ie. 0x00BBGGRR).

If you are setting the colour you must specify an RGB value. Some pre-defined values are available in VBscript, see below.

Constant Value Description
-------------------------------
vbBlack &h00 Black
vbRed &hFF Red
vbGreen &hFF00 Green
vbYellow &hFFFF Yellow
vbBlue &hFF0000 Blue
vbMagenta &hFF00FF Magenta
vbCyan &hFFFF00 Cyan
vbWhite &hFFFFFF White

In JScript you will need to use the RGB values, for example Magenta would be: 0xFF00FF.



VBscript example

world.notecolourback = vbRed  ' set note background colour to red
world.note "This will be on a red background"
world.note world.notecolourback  ' display current note background colour



Jscript example

world.notecolourback = 0xFF;  // set note colour to use red background
world.note("This will be on a red background");
world.note(world.notecolourback);  // display current note background colour



PerlScript example

$world->{notecolourback} = 0xFF;  # set note colour to use red background
$world->note("This will be on a red background");
$world->note($world->{notecolourback});  # display current note background colour



Python example

world.notecolourback = 0xFF  # set note colour to use red background
world.note("This will be on a red background")
world.note(world.notecolourback)  # display current note background colour



Lua example

SetNoteColourBack (255)  -- set note colour to use red background
Note ("This will be on a red background")
Note(GetNoteColourBack ())  -- display current note background colour



Lua notes

Lua implements this as two functions:

GetNoteColourBack - gets the note colour background
SetNoteColourBack - sets the note colour background



Return value

This is a property. You can use it to find the current note background colour.




See Also ...

Topics

DOC_colours Colour management
DOC_defaults Default triggers/aliases/timers/macros/colours

Functions

FNC_AdjustColour AdjustColour (Adjust an RGB colour)
FNC_ANSI ANSI (Generates an ANSI colour sequence)
FNC_BoldColour BoldColour (Gets/sets the RGB colour for one of the 8 ANSI bold colours)
FNC_ColourNameToRGB ColourNameToRGB (Converts a named colour to a RGB colour code.)
FNC_ColourNote ColourNote (Sends a message to the output window in specified colours)
FNC_ColourTell ColourTell (Sends a message to the output window in specified colours - not terminated by a newline)
FNC_CustomColourBackground CustomColourBackground (Sets the RGB value for the background of a custom colour)
FNC_CustomColourText CustomColourText (Sets the RGB value for the text of a custom colour)
FNC_GetCustomColourName GetCustomColourName (Gets the name of a custom colour)
FNC_GetMapColour GetMapColour (Returns the mapping for how a particular colour will be displayed)
FNC_MapColour MapColour (Changes the colour mapping - the way colours are displayed)
FNC_MapColourList MapColourList (Returns an array of all the mapped colours)
FNC_NormalColour NormalColour (Gets/sets the RGB colour for one of the 8 ANSI normal colours)
FNC_Note Note (Sends a note to the output window)
FNC_NoteColour NoteColour (Chooses which custom colour will be used for world notes.)
FNC_NoteColourFore NoteColourFore (Chooses which RGB colour will be used for world notes - text colour)
FNC_NoteColourName NoteColourName (Chooses which RGB colour name will be used for world notes - text and background)
FNC_NoteColourRGB NoteColourRGB (Chooses which RGB colour will be used for world notes - text and background)
FNC_PickColour PickColour (Invokes the MUSHclient colour picker dialog)
FNC_RGBColourToName RGBColourToName (Converts an RGB colour code to its equivalent name)
FNC_SetCustomColourName SetCustomColourName (Sets the name of a custom colour)
FNC_Tell Tell (Sends a message to the output window - not terminated by a newline)

(Help topic: function=NoteColourBack)

DOC_contents Documentation contents page