iw4x-client/iw4/Components/Colors.hpp

21 lines
500 B
C++
Raw Normal View History

2015-12-23 08:45:53 -05:00
#define Q_IsColorString( p ) ( ( p ) && *( p ) == '^' && *( ( p ) + 1 ) && isdigit( *( ( p ) + 1 ) ) ) // ^[0-9]
namespace Components
{
class Colors : public Component
{
public:
Colors();
const char* GetName() { return "Colors"; };
2015-12-23 10:56:02 -05:00
static Dvar::Var NewColors;
2015-12-23 08:45:53 -05:00
static void ClientUserinfoChanged(int length);
static char* CL_GetClientName(int a1, int a2, char* buffer, size_t _length);
2015-12-23 10:56:02 -05:00
static void UpdateColorTable();
2015-12-23 08:45:53 -05:00
static void Strip(const char* in, char* out, int max);
};
}