void	CIconSkillClan::GetToolTip( CInfo& ToolTip,  DWORD dwDialogType, DWORD dwType )
{
	CIconSkill::GetToolTip( ToolTip, dwDialogType, dwType );
	CClanSkillSlot* pSkillSlot = CClan::GetInstance().GetClanSkillSlot();
	CSkill* pSkill = pSkillSlot->GetSkill( m_iSkillSlot );

	if( pSkill && pSkill->HasExpiredTime() )
	{
		SYSTEMTIME st;
		DWORD dwExpiredTime = pSkill->GetExpiredTime();
		classTIME::AbsSecondToSystem ( dwExpiredTime, st);
		ToolTip.AddString( 
			CStr::Printf("%s : %d/%d/%d %d:%02d", 
			STR_EXPIRED_TIME, st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute ) );
	}
}
Example #2
0
void CIcon::GetToolTip( CInfo& ToolTip,  DWORD dwDialogType, DWORD dwType )
{
	ToolTip.AddString( "CIcon" );
}