2019-09-23 07:50:21 +08:00
|
|
|
#include "ChatWidget.h"
|
|
|
|
#include "../cwmods.h"
|
|
|
|
|
|
|
|
void cube::ChatWidget::PrintMessage(wchar_t* message, FloatRGBA* color){
|
|
|
|
msvc::wstring str(message);
|
2019-09-25 05:41:19 +08:00
|
|
|
((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x26A1A0)(this, &str, color);
|
2019-09-23 07:50:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void cube::ChatWidget::PrintMessage(wchar_t* message) {
|
|
|
|
this->PrintMessage(message, 255, 255, 255);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cube::ChatWidget::PrintMessage(wchar_t* message, char red, char green, char blue){
|
|
|
|
float f_red = (float)red / 255.0;
|
|
|
|
float f_green = (float)green / 255.0;
|
|
|
|
float f_blue = (float)blue / 255.0;
|
|
|
|
FloatRGBA color(f_red, f_green, f_blue, 1.0);
|
|
|
|
this->PrintMessage(message, &color);
|
|
|
|
}
|