Re: [Source] Season 6 EP 3 # SCFMT 12.0.0.1+ Custom Wings, Jewel, HONOR RANK TITLE, H
// ----------------------------------------------------------------------------------------------
void Interface:
rawTime()
{
if (!this->Data[eTIME].OnShow)
{
return;
}
// ----
if (this->CheckWindow(ObjWindow::ChatWindow) || this->CheckWindow(ObjWindow::CashShop)
|| this->CheckWindow(ObjWindow::FullMap) || this->CheckWindow(ObjWindow::SkillTree)
|| this->CheckWindow(ObjWindow::MoveList) || gObjUser.m_MapNumber == 34 || gObjUser.m_MapNumber == 30)
{
return;
}
// ----
this->DrawGUI(eTIME, this->Data[eTIME].X, this->Data[eTIME].Y);
// -----
time_t TimeServer, TimeLocal;
struct tm * ServerT, *LocalT;
time(&TimeServer);
time(&TimeLocal);
// ----
ServerT = gmtime(&TimeServer);
// ----
char ServerTimeName[25] = "Server:";
char ServerTime[30];
sprintf(ServerTime, "%2d:%02d:%02d", (ServerT->tm_hour + 3) % 24, ServerT->tm_min, ServerT->tm_sec);
// -----
LocalT = localtime(&TimeLocal);
// -----
char LocalTimeName[25] = "Local:";
char LocalTime[30];
sprintf(LocalTime, "%2d:%02d:%02d", LocalT->tm_hour, LocalT->tm_min, LocalT->tm_sec);
// -----
this->DrawFormat(eGold, 5, 391, 50, 1, ServerTimeName);
CHANGE COLOR?
this->DrawFormat(eWhite, 55, 391, 100, 1, ServerTime);
CHANGE COLOR?
// ----
this->DrawFormat(eGold, 5, 413, 50, 1, LocalTimeName);
CHANGE COLOR?
this->DrawFormat(eWhite, 55, 413, 100, 1, LocalTime); CHANGE COLOR?
}
// ----------------------------------------------------------------------------------------------
COMO LE CAMBIO EL COLOR AL RELOJ