]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/notifications.qc
Make the CCR() color replacement function common and add the cvars for it
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / notifications.qc
index 437f51e172835ad6cd5419551253b11aee94d813..1ce0d0bedf8dcfb628d3288d914db5ef25892d92 100644 (file)
@@ -15,28 +15,6 @@ string TCR(string input, string teamcolor, string teamtext) // TODO: MOVE TO UTI
        return input;
 }
 
-// color code replace, place inside of sprintf and parse the string
-string CCR(string input) // TODO: MOVE TO UTIL.QC
-{
-       // Default colors listed in comments
-       
-       // foreground/normal colors
-       input = strreplace("^F1", "^2", input); // Green  // primary priority (important names, etc)
-       input = strreplace("^F2", "^3", input); // Yellow // secondary priority (items, locations, numbers, etc)
-       input = strreplace("^F3", "^4", input); // Blue   // tertiary priority or relatively inconsequential text
-       input = strreplace("^F4", "^1", input); // Red    // notice/attention grabbing texting
-
-       // "kill" colors
-       input = strreplace("^K1", "^1", input); // Red    // "bad" or "dangerous" text (death messages against you, kill notifications, etc)
-       input = strreplace("^K2", "^3", input); // Yellow // similar to above, but less important... OR, a highlight out of above message type
-       input = strreplace("^K3", "^4", input); // Blue   // "good" or "beneficial" text (you fragging someone, etc)
-
-       // background colors
-       input = strreplace("^BG", "^7", input); // White // neutral/unimportant text
-       input = strreplace("^N", "^7", input);  // White // "none"-- reset to white...
-       return input;
-}
-
 #ifndef MENUQC
 // select between the normal or the gentle message string based on client (or server) settings
 string normal_or_gentle(string normal, string gentle)