Quote:
Originally Posted by Sammyz
Incorrect.
Here you go,
WndField.cpp:
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
int seconds = (int)(ct.GetTotalSeconds());
CD3DFont* pOldFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontText );
if( seconds >= 3600 ){
seconds = (int)(ct.GetTotalHours());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"h", dwColor, 0xFF000000);//hours
}
else if( seconds >= 60 ){
seconds = (int)(ct.GetTotalMinutes());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"m", dwColor, 0xFF000000);///minutes
}
else {
seconds = (int)(ct.GetTotalSeconds());
if( seconds < 10 )
dwColor = D3DCOLOR_XRGB( 190, 0, 0 );
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+20, str+"s", dwColor, 0xFF000000);//seconds
}
p2DRender->SetFont( pOldFont );
}
}
|
this is code how it is now. I think 0xFF000000 is white color? BTW the second part where it checks is the seconds are under 3600 at your code, is this the beter notation like 19m and not seconds only
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
int seconds = (int)(ct.GetTotalSeconds());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+22, str, dwColor, 0xFF000000);
}
}
Quote:
Originally Posted by Dr. Peacock
In Function ~
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
Change it two Times....
Code:
#ifdef __NEW_FONT_COLOR
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 0, 0 ) );
#else
str.AddString(strTemp, D3DCOLOR_XRGB( 0, 0, 255 ) );
#endif
-----
Neuz -> VC.h
Code:
#define __NEW_FONT_COLOR
-----
255, 0, 0 = RED
|
This is the full void, 255, 255, 255 rgb is white? ingame it's blue
Code:
void CWndMgr::PutDestParam( DWORD dwDst1, DWORD dwDst2, DWORD dwAdj1, DWORD dwAdj2, CEditString &str )
{
CString strTemp;
CString strSignAdj;
#if __VER >= 10 // __LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
if( dwDst1 != NULL_ID && dwDst1 != 0 && dwDst1 != DST_CHRSTATE )
#else
if( dwDst1 != NULL_ID && dwDst1 != 0 )
#endif //__LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
{
int nAdj = dwAdj1;
if(nAdj < 0)
strSignAdj = "";
else
strSignAdj = "+";
if( IsDst_Rate(dwDst1) )
{
if( dwDst1 == DST_ATTACKSPEED )
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst1), strSignAdj, static_cast< int >( dwAdj1 ) / 2 / 10 );
else
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst1), strSignAdj, dwAdj1 );
}
else
{
strTemp.Format( "\n%s%s%d", FindDstString(dwDst1), strSignAdj, dwAdj1 );
}
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 255, 255 ) );
}
#if __VER >= 10 // __LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
if( dwDst2 != NULL_ID && dwDst2 != 0 && dwDst2 != DST_CHRSTATE )
#else
if( dwDst2 != NULL_ID && dwDst2 != 0 )
#endif //__LEGEND // 10Â÷ Àü½Â½Ã½ºÅÛ Neuz, World, Trans
{
int nAdj = dwAdj2;
if(nAdj < 0)
strSignAdj = "";
else
strSignAdj = "+";
if( IsDst_Rate(dwDst2) )
{
if( dwDst2 == DST_ATTACKSPEED )
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst2), strSignAdj, static_cast< int >( dwAdj2 ) / 2 / 10 );
else
strTemp.Format( "\n%s%s%d%%", FindDstString(dwDst2), strSignAdj, dwAdj2 );
}
else
{
strTemp.Format( "\n%s%s%d", FindDstString(dwDst2), strSignAdj, dwAdj2 );
}
str.AddString(strTemp, D3DCOLOR_XRGB( 255, 255, 255 ) );
}
}