Skip to content

Instantly share code, notes, and snippets.

@plenarius
Last active February 16, 2019 22:16
Show Gist options
  • Save plenarius/0f920ed2a59312dfd9f5719ae086fdf7 to your computer and use it in GitHub Desktop.
Save plenarius/0f920ed2a59312dfd9f5719ae086fdf7 to your computer and use it in GitHub Desktop.
#include "nwnx_util"
void loe_InitColours()
{
object oColourNames = GetObjectByTag("LAY_COLOUR_WP");
SetLocalObject(GetModule(), "colours", oColourNames);
// aliceblue (240,248,255)
string LOE_COLOUR_INIT_ALICEBLUE = GetRGB(240,248,255);
// antiquewhite (250,235,215)
string LOE_COLOUR_INIT_ANTIQUEWHITE = GetRGB(250,235,215);
// aqua (0,255,255)
string LOE_COLOUR_INIT_AQUA = GetRGB(0,255,255);
// aquamarine (127,255,212)
string LOE_COLOUR_INIT_AQUAMARINE = GetRGB(127,255,212);
// azure (240,255,255)
string LOE_COLOUR_INIT_AZURE = GetRGB(240,255,255);
// beige (245,245,220)
string LOE_COLOUR_INIT_BEIGE = GetRGB(245,245,220);
// bisque (255,228,196)
string LOE_COLOUR_INIT_BISQUE = GetRGB(255,228,196);
// black (0,0,0)
string LOE_COLOUR_INIT_BLACK = GetRGB(0,0,0);
// blanchedalmond (255,255,205)
string LOE_COLOUR_INIT_BLANCHEDALMOND = GetRGB(255,255,205);
// blue (0,0,255)
string LOE_COLOUR_INIT_BLUE = GetRGB(0,0,255);
// blueviolet (138,43,226)
string LOE_COLOUR_INIT_BLUEVIOLET = GetRGB(138,43,226);
// brown (165,42,42)
string LOE_COLOUR_INIT_BROWN = GetRGB(165,42,42);
// burlywood (222,184,135)
string LOE_COLOUR_INIT_BURLYWOOD = GetRGB(222,184,135);
// cadetblue (95,158,160)
string LOE_COLOUR_INIT_CADETBLUE = GetRGB(95,158,160);
// chartreuse (127,255,0)
string LOE_COLOUR_INIT_CHARTREUSE = GetRGB(127,255,0);
// chocolate (210,105,30)
string LOE_COLOUR_INIT_CHOCOLATE = GetRGB(210,105,30);
// coral (255,127,80)
string LOE_COLOUR_INIT_CORAL = GetRGB(255,127,80);
// cornflowerblue (100,149,237)
string LOE_COLOUR_INIT_CORNFLOWERBLUE = GetRGB (100,149,237);
// cornsilk (255,248,220)
string LOE_COLOUR_INIT_CORNSILK = GetRGB(255,248,220);
// crimson (220,20,60)
string LOE_COLOUR_INIT_CRIMSON = GetRGB(220,20,60);
// cyan (0,255,255)
string LOE_COLOUR_INIT_CYAN = GetRGB(0,255,255);
// darkblue (0,0,139)
string LOE_COLOUR_INIT_DARKBLUE = GetRGB(0,0,139);
// darkcyan (90,32,32)
string LOE_COLOUR_INIT_DARKBROWN = GetRGB(90,32,32);
// darkcyan (0,139,139)
string LOE_COLOUR_INIT_DARKCYAN = GetRGB(0,139,139);
// darkgoldenrod (184,134,11)
string LOE_COLOUR_INIT_DARKGOLDENROD = GetRGB(184,134,11);
// darkgray (169,169,169)
string LOE_COLOUR_INIT_DARKGRAY = GetRGB(169,169,169);
// darkgreen (0,100,0)
string LOE_COLOUR_INIT_DARKGREEN = GetRGB(0,100,0);
// darkkhaki (189,183,107)
string LOE_COLOUR_INIT_DARKKHAKI = GetRGB(189,183,107);
// darkmagenta (139,0,139)
string LOE_COLOUR_INIT_DARKMAGENTA = GetRGB(139,0,139);
// darkolivegreen (85,107,47)
string LOE_COLOUR_INIT_DARKOLIVEGREEN = GetRGB(85,107,47);
// darkorange (255,140,0)
string LOE_COLOUR_INIT_DARKORANGE = GetRGB(255,140,0);
// darkorchid (153,50,204)
string LOE_COLOUR_INIT_DARKORCHID = GetRGB(153,50,204);
// darkred (139,0,0)
string LOE_COLOUR_INIT_DARKRED = GetRGB(139,0,0);
// darksalmon (233,150,122)
string LOE_COLOUR_INIT_DARKSALMON = GetRGB(233,150,122);
// darkseagreen (143,188,143)
string LOE_COLOUR_INIT_DARKSEAGREEN = GetRGB(143,188,143);
// darkslateblue (72,61,139)
string LOE_COLOUR_INIT_DARKSLATEBLUE = GetRGB(72,61,139);
// darkslategray (47,79,79)
string LOE_COLOUR_INIT_DARKSLATEGRAY = GetRGB(47,79,79);
// darkturquoise (0,206,209)
string LOE_COLOUR_INIT_DARKTURQUOISE = GetRGB(0,206,209);
// darkviolet (148,0,211)
string LOE_COLOUR_INIT_DARKVIOLET = GetRGB(148,0,211);
// deeppink (255,20,147)
string LOE_COLOUR_INIT_DEEPPINK = GetRGB(255,20,147);
// deepskyblue (0,191,255)
string LOE_COLOUR_INIT_DEEPSKYBLUE = GetRGB(0,191,255);
// dimgray (105,105,105)
string LOE_COLOUR_INIT_DIMGRAY = GetRGB(105,105,105);
// dodgerblue (30,144,255)
string LOE_COLOUR_INIT_DODGERBLUE = GetRGB(30,144,255);
// firebrick (178,34,34)
string LOE_COLOUR_INIT_FIREBRICK = GetRGB(178,34,34);
// floralwhite (255,250,240)
string LOE_COLOUR_INIT_FLORALWHITE = GetRGB(255,250,240);
// forestgreen (34,139,34)
string LOE_COLOUR_INIT_FORESTGREEN = GetRGB(34,139,34);
// fuchsia (255,0,255)
string LOE_COLOUR_INIT_FUCHSIA = GetRGB(255,0,255);
// gainsboro (220,220,220)
string LOE_COLOUR_INIT_GAINSBORO = GetRGB(220,220,220);
// ghostwhite (248,248,255)
string LOE_COLOUR_INIT_GHOSTWHITE = GetRGB(248,248,255);
// gold (255,215,0)
string LOE_COLOUR_INIT_GOLD = GetRGB(255,215,0);
// goldenrod (218,165,32)
string LOE_COLOUR_INIT_GOLDENROD = GetRGB(218,165,32);
// gray (128,128,128)
string LOE_COLOUR_INIT_GRAY = GetRGB(128,128,128);
// green (0,128,0)
string LOE_COLOUR_INIT_GREEN = GetRGB(0,128,0);
// greenyellow (173,255,47)
string LOE_COLOUR_INIT_GREENYELLOW = GetRGB(173,255,47);
// honeydew (240,255,240)
string LOE_COLOUR_INIT_HONEYDEW = GetRGB(240,255,240);
// hotpink (255,105,180)
string LOE_COLOUR_INIT_HOTPINK = GetRGB(255,105,180);
// indianred (205,92,92)
string LOE_COLOUR_INIT_INDIANRED = GetRGB(205,92,92);
// indigo (75,0,130)
string LOE_COLOUR_INIT_INDIGO = GetRGB(75,0,130);
// ivory (255,240,240)
string LOE_COLOUR_INIT_IVORY = GetRGB(255,240,240);
// khaki (240,230,140)
string LOE_COLOUR_INIT_KHAKI = GetRGB(240,230,140);
// lavender (230,230,250)
string LOE_COLOUR_INIT_LAVENDER = GetRGB(230,230,250);
// lavenderblush (255,240,245)
string LOE_COLOUR_INIT_LAVENDERBLUSH = GetRGB(255,240,245);
// lawngreen (124,252,0)
string LOE_COLOUR_INIT_LAWNGREEN = GetRGB(124,252,0);
// lemonchiffon (255,250,205)
string LOE_COLOUR_INIT_LEMONCHIFFON = GetRGB(255,250,205);
// lightblue (173,216,230)
string LOE_COLOUR_INIT_LIGHTBLUE = GetRGB(173,216,230);
// lightcoral (240,128,128)
string LOE_COLOUR_INIT_LIGHTCORAL = GetRGB(240,128,128);
// lightcyan (224,255,255)
string LOE_COLOUR_INIT_LIGHTCYAN = GetRGB(224,255,255);
// lightgoldenrodyellow (250,250,210)
string LOE_COLOUR_INIT_LIGHTGOLDENRODYELLOW = GetRGB(250,250,210);
// lightgreen (144,238,144)
string LOE_COLOUR_INIT_LIGHTGREEN = GetRGB(144,238,144);
// lightgrey (211,211,211)
string LOE_COLOUR_INIT_LIGHTGREY = GetRGB(211,211,211);
// lightpink (255,182,193)
string LOE_COLOUR_INIT_LIGHTPINK = GetRGB(255,182,193);
// lightsalmon (255,160,122)
string LOE_COLOUR_INIT_LIGHTSALMON = GetRGB(255,160,122);
// lightseagreen (32,178,170)
string LOE_COLOUR_INIT_LIGHTSEAGREEN = GetRGB(32,178,170);
// lightskyblue (135,206,250)
string LOE_COLOUR_INIT_LIGHTSKYBLUE = GetRGB(135,206,250);
// lightslategray (119,136,153)
string LOE_COLOUR_INIT_LIGHTSLATEGRAY = GetRGB(119,136,153);
// lightsteelblue (176,196,222)
string LOE_COLOUR_INIT_LIGHTSTEELBLUE = GetRGB(176,196,222);
// lightyellow (255,255,224)
string LOE_COLOUR_INIT_LIGHTYELLOW = GetRGB(255,255,224);
// lime (0,255,0)
string LOE_COLOUR_INIT_LIME = GetRGB(0,255,0);
// limegreen (50,205,50)
string LOE_COLOUR_INIT_LIMEGREEN = GetRGB(50,205,50);
// linen (250,240,230)
string LOE_COLOUR_INIT_LINEN = GetRGB(250,240,230);
// magenta (255,0,255)
string LOE_COLOUR_INIT_MAGENTA = GetRGB(255,0,255);
// maroon (128,0,0)
string LOE_COLOUR_INIT_MAROON = GetRGB(128,0,0);
// mediumaquamarine (102,205,170)
string LOE_COLOUR_INIT_MEDIUMAQUAMARINE = GetRGB(102,205,170);
// mediumblue (0,0,205)
string LOE_COLOUR_INIT_MEDIUMBLUE = GetRGB(0,0,205);
// mediumorchid (186,85,211)
string LOE_COLOUR_INIT_MEDIUMORCHID = GetRGB(186,85,211);
// mediumpurple (147,112,219)
string LOE_COLOUR_INIT_MEDIUMPURPLE = GetRGB(147,112,219);
// mediumseagreen (60,179,113)
string LOE_COLOUR_INIT_MEDIUMSEAGREEN = GetRGB(60,179,113);
// mediumslateblue (123,104,238)
string LOE_COLOUR_INIT_MEDIUMSLATEBLUE = GetRGB(123,104,238);
// mediumspringgreen (0,250,154)
string LOE_COLOUR_INIT_MEDIUMSPRINGGREEN = GetRGB(0,250,154);
// mediumturquoise (72,209,204)
string LOE_COLOUR_INIT_MEDIUMTURQUOISE = GetRGB(72,209,204);
// mediumvioletred (199,21,133)
string LOE_COLOUR_INIT_MEDIUMVIOLETRED = GetRGB(199,21,133);
// midnightblue (25,25,112)
string LOE_COLOUR_INIT_MIDNIGHTBLUE = GetRGB(25,25,112);
// mintcream (245,255,250)
string LOE_COLOUR_INIT_MINTCREAM = GetRGB(245,255,250);
// mistyrose (255,228,225)
string LOE_COLOUR_INIT_MISTYROSE = GetRGB(255,228,225);
// moccasin (255,228,181)
string LOE_COLOUR_INIT_MOCCASIN = GetRGB(255,228,181);
// navajowhite (255,222,173)
string LOE_COLOUR_INIT_NAVAJOWHITE = GetRGB(255,222,173);
// navy (0,0,128)
string LOE_COLOUR_INIT_NAVY = GetRGB(0,0,128);
// oldlace (253,245,230)
string LOE_COLOUR_INIT_OLDLACE = GetRGB(253,245,230);
// olive (128,128,0)
string LOE_COLOUR_INIT_OLIVE = GetRGB(128,128,0);
// olivedrab (107,142,35)
string LOE_COLOUR_INIT_OLIVEDRAB = GetRGB(107,142,35);
// orange (255,165,0)
string LOE_COLOUR_INIT_ORANGE = GetRGB(255,165,0);
// orangered (255,69,0)
string LOE_COLOUR_INIT_ORANGERED = GetRGB(255,69,0);
// orchid (218,112,214)
string LOE_COLOUR_INIT_ORCHID = GetRGB(218,112,214);
// palegoldenrod (238,232,170)
string LOE_COLOUR_INIT_PALEGOLDENROD = GetRGB(238,232,170);
// palegreen (152,251,152)
string LOE_COLOUR_INIT_PALEGREEN = GetRGB(152,251,152);
// paleturquoise (175,238,238)
string LOE_COLOUR_INIT_PALETURQUOISE = GetRGB(175,238,238);
// palevioletred (219,112,147)
string LOE_COLOUR_INIT_PALEVIOLETRED = GetRGB(219,112,147);
// papayawhip (255,239,213)
string LOE_COLOUR_INIT_PAPAYAWHIP = GetRGB(255,239,213);
// peachpuff (255,239,213)
string LOE_COLOUR_INIT_PEACHPUFF = GetRGB(255,239,213);
// peru (205,133,63)
string LOE_COLOUR_INIT_PERU = GetRGB(205,133,63);
// pink (255,192,203)
string LOE_COLOUR_INIT_PINK = GetRGB(255,192,203);
// plum (221,160,221)
string LOE_COLOUR_INIT_PLUM = GetRGB(221,160,221);
// powderblue (176,224,230)
string LOE_COLOUR_INIT_POWDERBLUE = GetRGB(176,224,230);
// purple (128,0,128)
string LOE_COLOUR_INIT_PURPLE = GetRGB(128,0,128);
// red (255,0,0)
string LOE_COLOUR_INIT_RED = GetRGB(255,0,0);
// rosybrown (188,143,143)
string LOE_COLOUR_INIT_ROSYBROWN = GetRGB(188,143,143);
// royalblue (65,105,225)
string LOE_COLOUR_INIT_ROYALBLUE = GetRGB(65,105,225);
// saddlebrown (139,69,19)
string LOE_COLOUR_INIT_SADDLEBROWN = GetRGB(139,69,19);
// salmon (250,128,114)
string LOE_COLOUR_INIT_SALMON = GetRGB(250,128,114);
// sandybrown (244,164,96)
string LOE_COLOUR_INIT_SANDYBROWN = GetRGB(244,164,96);
// seagreen (46,139,87)
string LOE_COLOUR_INIT_SEAGREEN = GetRGB(46,139,87);
// seashell (255,245,238)
string LOE_COLOUR_INIT_SEASHELL = GetRGB(255,245,238);
// sienna (160,82,45)
string LOE_COLOUR_INIT_SIENNA = GetRGB(160,82,45);
// silver (192,192,192)
string LOE_COLOUR_INIT_SILVER = GetRGB(192,192,192);
// skyblue (135,206,235)
string LOE_COLOUR_INIT_SKYBLUE = GetRGB(135,206,235);
// slateblue (106,90,205)
string LOE_COLOUR_INIT_SLATEBLUE = GetRGB(135,206,235);
// slategray (112,128,144)
string LOE_COLOUR_INIT_SLATEGRAY = GetRGB(112,128,144);
// snow (255,250,250)
string LOE_COLOUR_INIT_SNOW = GetRGB(255,250,250);
// springgreen (0,255,127)
string LOE_COLOUR_INIT_SPRINGGREEN = GetRGB(0,255,127);
// steelblue (70,130,180)
string LOE_COLOUR_INIT_STEELBLUE = GetRGB(70,130,180);
// tan (210,180,140)
string LOE_COLOUR_INIT_TAN = GetRGB(210,180,140);
// teal (0,128,128)
string LOE_COLOUR_INIT_TEAL = GetRGB(0,128,128);
// thistle (216,191,216)
string LOE_COLOUR_INIT_THISTLE = GetRGB(216,191,216);
// tomato (253,99,71)
string LOE_COLOUR_INIT_TOMATO = GetRGB(253,99,71);
// turquoise (64,224,208)
string LOE_COLOUR_INIT_TURQUOISE = GetRGB(64,224,208);
// violet (238,130,238)
string LOE_COLOUR_INIT_VIOLET = GetRGB(238,130,238);
// wheat (245,222,179)
string LOE_COLOUR_INIT_WHEAT = GetRGB(245,222,179);
// white (255,255,255)
string LOE_COLOUR_INIT_WHITE = GetRGB(255,255,255);
// whitesmoke (245,245,245)
string LOE_COLOUR_INIT_WHITESMOKE = GetRGB(245,245,245);
// yellow (255,255,0)
string LOE_COLOUR_INIT_YELLOW = GetRGB(255,255,0);
// yellowgreen (154,205,50)
string LOE_COLOUR_INIT_YELLOWGREEN = GetRGB(154,205,50);
// bioware cyan (153,255,255)
string LOE_COLOUR_INIT_BIOWARECYAN = GetRGB(153,255,255);
// bioware orange (255,102,1)
string LOE_COLOUR_INIT_BIOWAREORANGE = GetRGB(255,102,1);
// bioware save text (102,204,255)
string LOE_COLOUR_INIT_BIOWARESAVE = GetRGB(102,204,255);
SetLocalString(oColourNames, "biowarecyan", LOE_COLOUR_INIT_BIOWARECYAN);
SetLocalString(oColourNames, "biowareorange", LOE_COLOUR_INIT_BIOWAREORANGE);
SetLocalString(oColourNames, "biowaresave", LOE_COLOUR_INIT_BIOWARESAVE);
SetLocalString(oColourNames, "aliceblue", LOE_COLOUR_INIT_ALICEBLUE);
SetLocalString(oColourNames, "antiquewhite", LOE_COLOUR_INIT_ANTIQUEWHITE);
SetLocalString(oColourNames, "aqua", LOE_COLOUR_INIT_AQUA);
SetLocalString(oColourNames, "aquamarine", LOE_COLOUR_INIT_AQUAMARINE);
SetLocalString(oColourNames, "azure", LOE_COLOUR_INIT_AZURE);
SetLocalString(oColourNames, "beige", LOE_COLOUR_INIT_BEIGE);
SetLocalString(oColourNames, "bisque", LOE_COLOUR_INIT_BISQUE);
SetLocalString(oColourNames, "black", LOE_COLOUR_INIT_BLACK);
SetLocalString(oColourNames, "blanchedalmond", LOE_COLOUR_INIT_BLANCHEDALMOND);
SetLocalString(oColourNames, "blue", LOE_COLOUR_INIT_BLUE);
SetLocalString(oColourNames, "blueviolet", LOE_COLOUR_INIT_BLUEVIOLET);
SetLocalString(oColourNames, "brown", LOE_COLOUR_INIT_BROWN);
SetLocalString(oColourNames, "burlywood", LOE_COLOUR_INIT_BURLYWOOD);
SetLocalString(oColourNames, "cadetblue", LOE_COLOUR_INIT_CADETBLUE);
SetLocalString(oColourNames, "chartreuse", LOE_COLOUR_INIT_CHARTREUSE);
SetLocalString(oColourNames, "chocolate", LOE_COLOUR_INIT_CHOCOLATE);
SetLocalString(oColourNames, "coral", LOE_COLOUR_INIT_CORAL);
SetLocalString(oColourNames, "cornflowerblue", LOE_COLOUR_INIT_CORNFLOWERBLUE);
SetLocalString(oColourNames, "cornsilk", LOE_COLOUR_INIT_CORNSILK);
SetLocalString(oColourNames, "crimson", LOE_COLOUR_INIT_CRIMSON);
SetLocalString(oColourNames, "cyan", LOE_COLOUR_INIT_CYAN);
SetLocalString(oColourNames, "darkbrown", LOE_COLOUR_INIT_DARKBROWN);
SetLocalString(oColourNames, "darkcyan", LOE_COLOUR_INIT_DARKCYAN);
SetLocalString(oColourNames, "darkgoldenrod", LOE_COLOUR_INIT_DARKGOLDENROD);
SetLocalString(oColourNames, "darkgray", LOE_COLOUR_INIT_DARKGRAY);
SetLocalString(oColourNames, "darkgreen", LOE_COLOUR_INIT_DARKGREEN);
SetLocalString(oColourNames, "darkkhaki", LOE_COLOUR_INIT_DARKKHAKI);
SetLocalString(oColourNames, "darkmagenta", LOE_COLOUR_INIT_DARKMAGENTA);
SetLocalString(oColourNames, "darkolivegreen", LOE_COLOUR_INIT_DARKOLIVEGREEN);
SetLocalString(oColourNames, "darkorange", LOE_COLOUR_INIT_DARKORANGE);
SetLocalString(oColourNames, "darkorchid", LOE_COLOUR_INIT_DARKORCHID);
SetLocalString(oColourNames, "darkred", LOE_COLOUR_INIT_DARKRED);
SetLocalString(oColourNames, "darksalmon", LOE_COLOUR_INIT_DARKSALMON);
SetLocalString(oColourNames, "darkseagreen", LOE_COLOUR_INIT_DARKSEAGREEN);
SetLocalString(oColourNames, "darkslateblue", LOE_COLOUR_INIT_DARKSLATEBLUE);
SetLocalString(oColourNames, "darkslategray", LOE_COLOUR_INIT_DARKSLATEGRAY);
SetLocalString(oColourNames, "darkturquoise", LOE_COLOUR_INIT_DARKTURQUOISE);
SetLocalString(oColourNames, "darkviolet", LOE_COLOUR_INIT_DARKVIOLET);
SetLocalString(oColourNames, "deeppink", LOE_COLOUR_INIT_DEEPPINK);
SetLocalString(oColourNames, "deepskyblue", LOE_COLOUR_INIT_DEEPSKYBLUE);
SetLocalString(oColourNames, "dimgray", LOE_COLOUR_INIT_DIMGRAY);
SetLocalString(oColourNames, "dodgerblue", LOE_COLOUR_INIT_DODGERBLUE);
SetLocalString(oColourNames, "firebrick", LOE_COLOUR_INIT_FIREBRICK);
SetLocalString(oColourNames, "floralwhite", LOE_COLOUR_INIT_FLORALWHITE);
SetLocalString(oColourNames, "forestgreen", LOE_COLOUR_INIT_FORESTGREEN);
SetLocalString(oColourNames, "fuchsia", LOE_COLOUR_INIT_FUCHSIA);
SetLocalString(oColourNames, "gainsboro", LOE_COLOUR_INIT_GAINSBORO);
SetLocalString(oColourNames, "ghostwhite", LOE_COLOUR_INIT_GHOSTWHITE);
SetLocalString(oColourNames, "gold", LOE_COLOUR_INIT_GOLD);
SetLocalString(oColourNames, "goldenrod", LOE_COLOUR_INIT_GOLDENROD);
SetLocalString(oColourNames, "gray", LOE_COLOUR_INIT_GRAY);
SetLocalString(oColourNames, "green", LOE_COLOUR_INIT_GREEN);
SetLocalString(oColourNames, "greenyellow", LOE_COLOUR_INIT_GREENYELLOW);
SetLocalString(oColourNames, "honeydew", LOE_COLOUR_INIT_HONEYDEW);
SetLocalString(oColourNames, "hotpink", LOE_COLOUR_INIT_HOTPINK);
SetLocalString(oColourNames, "indianred", LOE_COLOUR_INIT_INDIANRED);
SetLocalString(oColourNames, "indigo", LOE_COLOUR_INIT_INDIGO);
SetLocalString(oColourNames, "ivory", LOE_COLOUR_INIT_IVORY);
SetLocalString(oColourNames, "khaki", LOE_COLOUR_INIT_KHAKI);
SetLocalString(oColourNames, "lavender", LOE_COLOUR_INIT_LAVENDER);
SetLocalString(oColourNames, "lavenderblush", LOE_COLOUR_INIT_LAVENDERBLUSH);
SetLocalString(oColourNames, "lawngreen", LOE_COLOUR_INIT_LAWNGREEN);
SetLocalString(oColourNames, "lemonchiffon", LOE_COLOUR_INIT_LEMONCHIFFON);
SetLocalString(oColourNames, "lightblue", LOE_COLOUR_INIT_LIGHTBLUE);
SetLocalString(oColourNames, "lightcoral", LOE_COLOUR_INIT_LIGHTCORAL);
SetLocalString(oColourNames, "lightcyan", LOE_COLOUR_INIT_LIGHTCYAN);
SetLocalString(oColourNames, "lightgoldenrodyellow", LOE_COLOUR_INIT_LIGHTGOLDENRODYELLOW);
SetLocalString(oColourNames, "lightgreen", LOE_COLOUR_INIT_LIGHTGREEN);
SetLocalString(oColourNames, "lightgrey", LOE_COLOUR_INIT_LIGHTGREY);
SetLocalString(oColourNames, "lightpink", LOE_COLOUR_INIT_LIGHTPINK);
SetLocalString(oColourNames, "lightsalmon", LOE_COLOUR_INIT_LIGHTSALMON);
SetLocalString(oColourNames, "lightseagreen", LOE_COLOUR_INIT_LIGHTSEAGREEN);
SetLocalString(oColourNames, "lightskyblue", LOE_COLOUR_INIT_LIGHTSKYBLUE);
SetLocalString(oColourNames, "lightslategray", LOE_COLOUR_INIT_LIGHTSLATEGRAY);
SetLocalString(oColourNames, "lightsteelblue", LOE_COLOUR_INIT_LIGHTSTEELBLUE);
SetLocalString(oColourNames, "lightyellow", LOE_COLOUR_INIT_LIGHTYELLOW);
SetLocalString(oColourNames, "lime", LOE_COLOUR_INIT_LIME);
SetLocalString(oColourNames, "limegreen", LOE_COLOUR_INIT_LIMEGREEN);
SetLocalString(oColourNames, "linen", LOE_COLOUR_INIT_LINEN);
SetLocalString(oColourNames, "magenta", LOE_COLOUR_INIT_MAGENTA);
SetLocalString(oColourNames, "maroon", LOE_COLOUR_INIT_MAROON);
SetLocalString(oColourNames, "mediumaquamarine", LOE_COLOUR_INIT_MEDIUMAQUAMARINE);
SetLocalString(oColourNames, "mediumblue", LOE_COLOUR_INIT_MEDIUMBLUE);
SetLocalString(oColourNames, "mediumorchid", LOE_COLOUR_INIT_MEDIUMORCHID);
SetLocalString(oColourNames, "mediumpurple", LOE_COLOUR_INIT_MEDIUMPURPLE);
SetLocalString(oColourNames, "mediumseagreen", LOE_COLOUR_INIT_MEDIUMSEAGREEN);
SetLocalString(oColourNames, "mediumslateblue", LOE_COLOUR_INIT_MEDIUMSLATEBLUE);
SetLocalString(oColourNames, "mediumspringgreen", LOE_COLOUR_INIT_MEDIUMSPRINGGREEN);
SetLocalString(oColourNames, "mediumturquoise", LOE_COLOUR_INIT_MEDIUMTURQUOISE);
SetLocalString(oColourNames, "mediumvioletred", LOE_COLOUR_INIT_MEDIUMVIOLETRED);
SetLocalString(oColourNames, "midnightblue", LOE_COLOUR_INIT_MIDNIGHTBLUE);
SetLocalString(oColourNames, "mintcream", LOE_COLOUR_INIT_MINTCREAM);
SetLocalString(oColourNames, "mistyrose", LOE_COLOUR_INIT_MISTYROSE);
SetLocalString(oColourNames, "moccasin", LOE_COLOUR_INIT_MOCCASIN);
SetLocalString(oColourNames, "navajowhite", LOE_COLOUR_INIT_NAVAJOWHITE);
SetLocalString(oColourNames, "navy", LOE_COLOUR_INIT_NAVY);
SetLocalString(oColourNames, "oldlace", LOE_COLOUR_INIT_OLDLACE);
SetLocalString(oColourNames, "olive", LOE_COLOUR_INIT_OLIVE);
SetLocalString(oColourNames, "olivedrab", LOE_COLOUR_INIT_OLIVEDRAB);
SetLocalString(oColourNames, "orange", LOE_COLOUR_INIT_ORANGE);
SetLocalString(oColourNames, "orangered", LOE_COLOUR_INIT_ORANGERED);
SetLocalString(oColourNames, "orchid", LOE_COLOUR_INIT_ORCHID);
SetLocalString(oColourNames, "palegoldenrod", LOE_COLOUR_INIT_PALEGOLDENROD);
SetLocalString(oColourNames, "palegreen", LOE_COLOUR_INIT_PALEGREEN);
SetLocalString(oColourNames, "paleturquoise", LOE_COLOUR_INIT_PALETURQUOISE);
SetLocalString(oColourNames, "palevioletred", LOE_COLOUR_INIT_PALEVIOLETRED);
SetLocalString(oColourNames, "papayawhip", LOE_COLOUR_INIT_PAPAYAWHIP);
SetLocalString(oColourNames, "peachpuff", LOE_COLOUR_INIT_PEACHPUFF);
SetLocalString(oColourNames, "peru", LOE_COLOUR_INIT_PERU);
SetLocalString(oColourNames, "pink", LOE_COLOUR_INIT_PINK);
SetLocalString(oColourNames, "plum", LOE_COLOUR_INIT_PLUM);
SetLocalString(oColourNames, "powderblue", LOE_COLOUR_INIT_POWDERBLUE);
SetLocalString(oColourNames, "purple", LOE_COLOUR_INIT_PURPLE);
SetLocalString(oColourNames, "red", LOE_COLOUR_INIT_RED);
SetLocalString(oColourNames, "rosybrown", LOE_COLOUR_INIT_ROSYBROWN);
SetLocalString(oColourNames, "royalblue", LOE_COLOUR_INIT_ROYALBLUE);
SetLocalString(oColourNames, "saddlebrown", LOE_COLOUR_INIT_SADDLEBROWN);
SetLocalString(oColourNames, "salmon", LOE_COLOUR_INIT_SALMON);
SetLocalString(oColourNames, "sandybrown", LOE_COLOUR_INIT_SANDYBROWN);
SetLocalString(oColourNames, "seagreen", LOE_COLOUR_INIT_SEAGREEN);
SetLocalString(oColourNames, "seashell", LOE_COLOUR_INIT_SEASHELL);
SetLocalString(oColourNames, "sienna", LOE_COLOUR_INIT_SIENNA);
SetLocalString(oColourNames, "silver", LOE_COLOUR_INIT_SILVER);
SetLocalString(oColourNames, "skyblue", LOE_COLOUR_INIT_SKYBLUE);
SetLocalString(oColourNames, "slateblue", LOE_COLOUR_INIT_SLATEBLUE);
SetLocalString(oColourNames, "slategray", LOE_COLOUR_INIT_SLATEGRAY);
SetLocalString(oColourNames, "snow", LOE_COLOUR_INIT_SNOW);
SetLocalString(oColourNames, "springgreen", LOE_COLOUR_INIT_SPRINGGREEN);
SetLocalString(oColourNames, "steelblue", LOE_COLOUR_INIT_STEELBLUE);
SetLocalString(oColourNames, "tan", LOE_COLOUR_INIT_TAN);
SetLocalString(oColourNames, "teal", LOE_COLOUR_INIT_TEAL);
SetLocalString(oColourNames, "thistle", LOE_COLOUR_INIT_THISTLE);
SetLocalString(oColourNames, "tomato", LOE_COLOUR_INIT_TOMATO);
SetLocalString(oColourNames, "turquoise", LOE_COLOUR_INIT_TURQUOISE);
SetLocalString(oColourNames, "violet", LOE_COLOUR_INIT_VIOLET);
SetLocalString(oColourNames, "wheat", LOE_COLOUR_INIT_WHEAT);
SetLocalString(oColourNames, "white", LOE_COLOUR_INIT_WHITE);
SetLocalString(oColourNames, "whitesmoke", LOE_COLOUR_INIT_WHITESMOKE);
SetLocalString(oColourNames, "yellow", LOE_COLOUR_INIT_YELLOW);
SetLocalString(oColourNames, "yellowgreen", LOE_COLOUR_INIT_YELLOWGREEN);
}
string GetRGB(int nRed = 255, int nGreen = 255, int nBlue = 255)
{
string sBuffer = NWNX_Util_GetAsciiTableString();
if(nRed > 255) nRed = 255;
if(nGreen > 255) nGreen = 255;
if(nBlue > 255) nBlue = 255;
if(nRed < 1) nRed = 1;
if(nGreen < 1) nGreen = 1;
if(nBlue < 1) nBlue = 1;
string sR = GetSubString(sBuffer, nRed, 1);
string sG = GetSubString(sBuffer, nGreen, 1);
string sB = GetSubString(sBuffer, nBlue, 1);
return "<c" + sR + sG + sB + ">";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment