Picture of BUFF display time
Neuz versioncommon.h
Quote:
#define __BUFF_ANZEIGE_SMHJ
Search on WndField.cpp: "void CWndBuffStatus::RenderOptBuffTime"
Exchange the full function with,
Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
if(g_Option.m_bVisibleBuffTimeRender)
{
CString str;
#ifdef __BUFF_ANZEIGE_SMHJ
int nTime[3];
nTime[0] = (int)(ct.GetTotalSeconds());
nTime[1] = (int)(ct.GetTotalMinutes());
nTime[2] = (int)(ct.GetTotalHours());
if( nTime[0] > 0 && nTime[0] <= 59 )
str.Format( "%ds", nTime[0] );
else if( nTime[1] > 0 && nTime[1] <= 59 )
str.Format( "%dm", nTime[1] );
else if( nTime[2] > 0 && nTime[2] <= 23 )
str.Format( "%dh", nTime[2] );
else if( nTime[2] > 23 )
str.Format( "%dj", nTime[2]/24 );
CD3DFont* pOldFont = p2DRender->GetFont();
p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitle );
p2DRender->TextOut( point.x+12, point.y+20, str, dwColor );
p2DRender->SetFont( pOldFont );
#else // __BUFF_ANZEIGE_SMHJ
int seconds = (int)(ct.GetTotalSeconds());
str.Format( "%d" , seconds );
p2DRender->TextOut(point.x+2, point.y+22, str, dwColor, 0xFF000000);
#endif // __BUFF_ANZEIGE_SMHJ
}
}
Have fun with it






