iw4x-client/src/Components/Modules/Colors.hpp

22 lines
516 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"; };
2016-01-01 11:36:47 -05:00
private:
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);
2016-01-01 11:36:47 -05:00
static char* GetClientName(int localClientNum, int index, char *buf, size_t size);
2015-12-23 08:45:53 -05:00
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);
};
}