function DrawSpree( Canvas C, int X, int Y, int Row, int Col, string Label, string Str )
{
local float Size, DummyY ,DummyY2;
local string Temp ,SpreeType[5];
local int i ,p ,j ,Count;
SpreeType[0] = "KS";
SpreeType[1] = "RA";
SpreeType[2] = "Do";
SpreeType[3] = "UN";
SpreeType[4] = "GD";
X += StatIndent + ( ( StatWidth + StatsHorSpacing ) * ( Col - 1 ) );
Y += ( StatLineHeight * ( Row - 1 ) );
Temp = "";
i = 2;
C.DrawColor = StatsColor;
C.SetPos( X, Y );
C.StrLen( "TEST", Size, DummyY2 );
C.DrawText( Label );
C.Font = TinyInfoFont;
while( i <= 6 )
{
p = int( SelElem( Str ,i++ ) );
if( p != 0 )
Temp = Temp@SpreeType[j]$":"$p;
Count += p;
j++;
}
C.StrLen( Temp, Size, DummyY );
C.SetPos( X + StatsTextWidth , Y + DummyY2 - DummyY - 3 );//I dont know.The trick should have worked
.3 is the hit and trial
C.DrawText( Temp ); //text
C.Font = StatFont;
C.StrLen( Count, Size, DummyY );
C.SetPos( X + StatsTextWidth - Size, Y );
C.DrawText( Count ); //text
}