]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - List-of-color-codes.md
Upload attachment zzz-bai-quickmenu-v2.pk3
[xonotic/xonotic.wiki.git] / List-of-color-codes.md
index 13204e715640cdffe7697e3e9dd821b25101a8f6..384e0f325a257b92efbfa73b664a9c830707bf0f 100644 (file)
@@ -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 |