Wenn ihr mehr von solchen kleinen dingen haben wollt schreibt eure wünsche hier.
[Only registered and activated users can see links. Click Here To Register...]
File: WndField
Sucht nach:
ersetzt:
mit :
Credits: 100% meeeee
[Only registered and activated users can see links. Click Here To Register...]
File: WndField
Sucht nach:
Code:
void CWndStatus::OnDraw(C2DRender* p2DRender)
Code:
else
{
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
Code:
else
{
if ( pMover->GetHitPoint() >= 10000)
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000);
else if ( pMover->GetHitPoint() >= 1000000)
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 100000);
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
int x = lpHP->rect.right - 82;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
if ( pMover->GetMaxHitPoint() >= 10000)
nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000);
else if ( pMover->GetMaxHitPoint() >= 1000000)
nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 100000);
else
nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());
x = lpHP->rect.right - 30;
p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );
LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
int nWidthCustom = lpHP->rect.Width();
int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );
p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
}
Credits: 100% meeeee