Color buff timer

03/19/2018 13:12 KingKeesie#1
Hi epvpers,

Currently im having timer that is in blue. "buffs timer" I like to go back to normal text color. Were can i change this. I know this is in WndManager or WndTaskmanager but i cant find it
03/19/2018 14:59 Rhea03#2
WdManager.cpp just compare from the official
03/19/2018 15:31 KingKeesie#3
Quote:
Originally Posted by Rhea03 View Post
WdManager.cpp just compare from the official
Unlucky my WndManager.cpp has a lot of difference with the original v19 so this wont help me. Anyone that know the name of this color? like dwColor.....
03/20/2018 16:40 Sammyz#4
It's actually in WndField.cpp, not WndManager lol.
03/21/2018 09:52 KingKeesie#5
Quote:
Originally Posted by Sammyz View Post
It's actually in WndField.cpp, not WndManager lol.
Thanks sir, could you give me more hints to solve the problem. so much color defines
03/21/2018 12:45 Dr. Peacock#6
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
03/21/2018 12:59 KingKeesie#7
Quote:
Originally Posted by Dr. Peacock View Post
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
Thanks for your reply. But i think this is more like the eatable buffs. I ment more like the buffs you get from buff pang. The count down timer is in blue color
03/21/2018 13:13 Dr. Peacock#8
Quote:
Originally Posted by KingKeesie View Post
Thanks for your reply. But i think this is more like the eatable buffs. I ment more like the buffs you get from buff pang. The count down timer is in blue color
This is for the Buffs from the Buff Pang/Peng.

This is R/G/B Color... Try to search for the right one you want? 0, 0, 255 = BLUE
03/21/2018 15:59 Sammyz#9
Quote:
Originally Posted by Dr. Peacock View Post
This is for the Buffs from the Buff Pang/Peng.

This is R/G/B Color... Try to search for the right one you want? 0, 0, 255 = BLUE
Incorrect.

Quote:
Originally Posted by KingKeesie View Post
Thanks sir, could you give me more hints to solve the problem. so much color defines
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 );
	}
}
03/21/2018 17:19 KingKeesie#10
Quote:
Originally Posted by Sammyz View Post
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 View Post
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 ) );
	}	
}
03/21/2018 18:18 Sammyz#11
It is, and 0xFF000000 is black and the shadow. You can change dwColor to your liking and it will change the text color.
03/22/2018 09:54 KingKeesie#12
Quote:
Originally Posted by Sammyz View Post
It is, and 0xFF000000 is black and the shadow. You can change dwColor to your liking and it will change the text color.
Thanks for the help il try this at home. BTW 0xFF000000 is not a hex color. is there some way i can convert this to color. Like an color converter to see what color it wil be. Hex color is alot shorter hex
03/22/2018 12:08 Sammyz#13
000000 is the hex, just like FFFFFF is to ;) Just as long as you don't mess with 0xFF you'll be fine. Or use a tool like [Only registered and activated users can see links. Click Here To Register...]