X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=blobdiff_plain;f=List-of-color-codes.md;h=384e0f325a257b92efbfa73b664a9c830707bf0f;hp=13204e715640cdffe7697e3e9dd821b25101a8f6;hb=6773e807a7dfa6c0a6416193ad9ae08b7f40ad58;hpb=ac13cdcbf35bf38f1c49c3ad1962878886351128 diff --git a/List-of-color-codes.md b/List-of-color-codes.md index 13204e7..384e0f3 100644 --- a/List-of-color-codes.md +++ b/List-of-color-codes.md @@ -1,20 +1,31 @@ -The color codes are used in event messages to change the color. When of these appear anywhere in the text, the color of the text will be changed. The code itself will be invisible. +Color codes are used in event messages to change text color (the code itself is invisible). + +* Base colors: | Code | Note | | ------ | ------ | -| `^BG` | Default color | -| `^TC` | Team color | -| `^F1` | | -| `^F2` | | -| `^F3` | | -| `^F4` | | -| `^1` | Red | -| `^2` | Green | -| `^3` | Yellow | -| `^4` | Dark Blue | -| `^5` | Light Blue | -| `^6` | Pink | -| `^7` | White | -| `^8` | Medium Gray | -| `^9` | Light Gray | -| `^0` | Dark Gray | \ No newline at end of file +| `^1` | `#F00` Red | +| `^2` | `#0F0` Green | +| `^3` | `#FF0` Yellow | +| `^4` | `#00F` Blue | +| `^5` | `#0FF` Cyan | +| `^6` | `#F0F` Magenta | +| `^7` | `#FFF` White | +| `^8` | `#FFF8` Half transparent white| +| `^9` | `#888` Light Gray | +| `^0` | `#000` Black | +| `^xRGB` | `#RGB` Custom color | + +* Notification colors: + +| Code | Note | Corresponding cvar| +| ------ | ------ | ------ | +| `^TC` | Team color | - | +| `^BG` | Default color | hud_colorset_background | +| `^F1` | foreground/normal color 1 | hud_colorset_foreground_1 | +| `^F2` | foreground/normal color 2 | hud_colorset_foreground_2 | +| `^F3` | foreground/normal color 3 | hud_colorset_foreground_3 | +| `^F4` | foreground/normal color 4 | hud_colorset_foreground_4 | +| `^K1` | "kill" color 1 | hud_colorset_kill_1 | +| `^K2` | "kill" color 2 | hud_colorset_kill_2 | +| `^K3` | "kill" color 3 | hud_colorset_kill_3 |