[Source] Logs Responsive e Title Center for MuEMU

 

# Logs Responsive e Title Center
- ConnectServer
- DataServer
- JoinServer


ServerDisplayer.cpp

BUSCA: CServerDisplayer::CServerDisplayer() // OK

strcpy_s(this->m_DisplayerText[0],"STANDBY MODE");
strcpy_s(this->m_DisplayerText[1],"ACTIVE MODE");

TO:

strcpy_s(this->m_DisplayerText[0],"");
strcpy_s(this->m_DisplayerText[1],"");


BUSCA: void CServerDisplayer::PaintAllInfo() // OK

if(gServerList.CheckJoinServerState() == 0)
{
SetTextColor(hdc,RGB(220,220,220));
FillRect(hdc,&rect,this->m_brush[0]);
TextOut(hdc,115,50,this->m_DisplayerText[0],strlen(this->m_DisplayerText[0]));
}
else
{
SetTextColor(hdc,RGB(250,250,250));
FillRect(hdc,&rect,this->m_brush[1]);
TextOut(hdc,130,50,this->m_DisplayerText[1],strlen(this->m_DisplayerText[1]));
}

TO:

if(gServerList.CheckJoinServerState() == 0)
{
SetTextColor(hdc,RGB(220,220,220));
FillRect(hdc,&rect,this->m_brush[0]);
TextOut(hdc,115,50,this->m_DisplayerText[0],strlen(this->m_DisplayerText[0]));
DrawText(hdc, "STANDBY MODE", sizeof("STANDBY MODE"), &rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
}
else
{
SetTextColor(hdc,RGB(250,250,250));
FillRect(hdc,&rect,this->m_brush[1]);
TextOut(hdc,130,50,this->m_DisplayerText[1],strlen(this->m_DisplayerText[1]));
DrawText(hdc, "ACTIVE MODE", sizeof("ACTIVE MODE"), &rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
}


BUSCA: void CServerDisplayer::LogTextPaint() // OK

TextOut(hdc, 0, (65 + (line * 15)), this->m_log[count].text, size);

TO:

TextOut(hdc,10,(rect.bottom - 440 + (line * 15)), this->m_log[count].text, size);


Créditos:
Kayito
Ailson Costa

Postar um comentário

0 Comentários
* Por favor, não spam aqui. Todos os comentários são revisados ​​pelo administrador.