[Release] V19 taskbar EXP tooltip

01/30/2013 12:28 max982#1
Hi there, this is the v19 taskbar tooltip:

Search for
Code:
void YourTaskBar::OnMouseWndSurface( CPoint point )
And after this:
Code:
  LPWNDCTRL wndCtrl[10];
  wndCtrl[0] = GetWndCtrl( WIDC_CUSTOM1 );
  wndCtrl[1] = GetWndCtrl( WIDC_CUSTOM2 );
  wndCtrl[2] = GetWndCtrl( WIDC_CUSTOM3 );
	wndCtrl[3] = GetWndCtrl( WIDC_CUSTOM4 );
	wndCtrl[4] = GetWndCtrl( WIDC_CUSTOM5 );
	wndCtrl[5] = GetWndCtrl( WIDC_CUSTOM6 );
	wndCtrl[6] = GetWndCtrl( WIDC_CUSTOM7 );
	wndCtrl[7] = GetWndCtrl( WIDC_CUSTOM8 );
	wndCtrl[8] = GetWndCtrl( WIDC_CUSTOM9 );
	wndCtrl[9] = GetWndCtrl( WIDC_CUSTOM10 );
Add this:
Code:
	CString strEdit;

	LPWNDCTRL wndCtrlexp = GetWndCtrl( WIDC_CUSTOM14 );
  char cbufExp[16] = {0,};
  
  CMover* pMover = CMover::GetActiveMover();
  EXPINTEGER	nExpResult = pMover->GetExp1() * (EXPINTEGER)10000 / pMover->GetMaxExp1();
	float fExp = (float)nExpResult / 100.0f;

  CRect therect = wndCtrlexp->rect;
  if( therect.PtInRect( point ) )
	{
	   CPoint point3 = GetMousePoint();;
	   ClientToScreen( &point3 );
		 ClientToScreen( &therect );
		 	
		if( fExp >= 99.99f )
		    strEdit.Format( "LV: %d \nEXP: %d / 9999 (99.99%%)", pMover->GetLevel(), nExpResult, sprintf( cbufExp, "99.99%%" ) );
		else
		    strEdit.Format( "LV: %d \nEXP: %d / 9999 (%.2f%%)", pMover->GetLevel(), nExpResult, sprintf( cbufExp, "%.2f%%", fExp ) );
			
	  g_toolTip.PutToolTip( 10000, strEdit, therect, point3, 0 );
	}
01/30/2013 17:47 yanami99#2
max982 can you post the 6 Newskilltask resdata.inc fix
01/30/2013 22:35 xMootie#3
Does this really require a release...?
01/30/2013 23:36 max982#4
Quote:
Originally Posted by XorLethal View Post
Does this really require a release...?
Just released it for leechers ..
01/31/2013 02:40 sakalasmpk#5
I wish all of you a taskbar v19.
If possible, I will credit you, thanks.

Please, I really need it.

I can not have you.
So I ask you, please.
01/31/2013 07:09 xMootie#6
Quote:
Originally Posted by max982 View Post
Just released it for leechers ..
And why did you release it for leechers...? You're just hurting them in the end by releasing stuff like this lol.
01/31/2013 11:40 max982#7
Quote:
Originally Posted by XorLethal View Post
And why did you release it for leechers...? You're just hurting them in the end by releasing stuff like this lol.
Well i don't really care dude, the one who will use, he will know him self that he is a leecher.
01/31/2013 12:35 sakalasmpk#8
Help me please.
[Only registered and activated users can see links. Click Here To Register...]