support headshot icons
This commit is contained in:
@@ -108,8 +108,12 @@ std::string TextPass::parseColors(std::string text, std::map<int, glm::vec4>& co
|
||||
}
|
||||
}
|
||||
|
||||
if (*(c + 1) >= '1' && *(c + 1) <= '9') { // Icons
|
||||
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 48));
|
||||
if ((*(c + 1) >= '1' && *(c + 1) <= '9') || *(c + 1) <= 'B' || *(c + 1) <= 'E' || *(c + 1) <= 'F') { // Icons
|
||||
if (*(c + 1) >= '1' && *(c + 1) <= '9') {
|
||||
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 48));
|
||||
} else {
|
||||
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 55));
|
||||
}
|
||||
}
|
||||
|
||||
if (colorChange) {
|
||||
|
||||
Reference in New Issue
Block a user