Quote:
Originally Posted by -Valor
BOOL CWndWorld::OnEraseBkgnd
Code:
#ifdef __MESSAGE_SYSTEM
if (lpMessage.GetLength())
{
CRect rect(CPoint(0, 0), CPoint(g_Option.m_nResWidth, 25));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, 5, lpMessage, 0xFFFFFFFF);
if (nxPos <= 0)
{
CSize size = p2DRender->m_pFont->GetTextExtent(lpMessage);
if (nxPos + size.cx <= 0)
nxPos = g_Option.m_nResWidth;
}
}
#endif // __MESSAGE_SYSTEM
[Only registered and activated users can see links. Click Here To Register...]
|
#ifdef __ANNOUNCEMENT_SYSTEM
if (g_pPlayer)
{
if (g_strGlobalMsg.GetLength() && g_Option.m_bGlobalBar)
{
#ifdef __RESOLUTION
if (g_Option.m_nResWidth == 1920 && g_Option.m_nResHeight == 1080)
{
CRect rect(CPoint(0, g_Option.m_nResHeight - 90), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight - 84, lpMessage, 0xFFFFFFFF);
}
else if (g_Option.m_nResWidth == 1600 && g_Option.m_nResHeight == 1200)
{
CRect rect(CPoint(0, g_Option.m_nResHeight - 210), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight - 204, lpMessage, 0xFFFFFFFF);
}
else
#endif // __RESOLUTION
{
CRect rect(CPoint(0, g_Option.m_nResHeight -25), CPoint(g_Option.m_nResWidth, g_Option.m_nResHeight - 20));
p2DRender->RenderFillRect(rect, 0xAA2E2E2E);
p2DRender->TextOut(nxPos--, g_Option.m_nResHeight -84, g_strGlobalMsg, 0xFFFFFFFF);
}
if (nxPos <= 0)
{
CSize size = p2DRender->m_pFont->GetTextExtent(g_strGlobalMsg);
if (nxPos + size.cx <= 0)
nxPos = g_Option.m_nResWidth;
}
}
}
#endif // __ANNOUNCEMENT_SYSTEM
i got different code i try to edit to 25 Height every code but still not working sorry if im asking this another noob question