help with a Fon.Draw workaround
Author |
Message |
n00b.skillz
|
Posted: Sat Jan 13, 2007 3:11 pm Post subject: help with a Fon.Draw workaround |
|
|
well well any help is appreciated i'm workin on my isp and it is due this tuesday Here's the problem i have put a counter into my trivia program but throughout the program i am using Font.Draw, So to be consistent i would like it to say something like Font.Draw("you have scored ",count," out of 20", 75, 570, fontID, green) but the thing is i cannot put the count variable into a Font.Draw like in a put statement so if anyone knows some kind of workaround it would be greatly appreciated. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Ultrahex
|
Posted: Sat Jan 13, 2007 3:43 pm Post subject: Re: help with a Fon.Draw workaround |
|
|
Convert the Integer to type String
code: | var font : int := Font.New ("serif:12")
var score:=10
Font.Draw("you have scored " + intstr(score) + " out of 20", 0, 100, font, red) |
|
|
|
|
|
![](images/spacer.gif) |
n00b.skillz
|
Posted: Sat Jan 13, 2007 4:27 pm Post subject: Re: help with a Fon.Draw workaround |
|
|
omg honestly u are my hero!!!!!! that was buggin me so long i thought i wouldn't find out in time but thx alot!!!! |
|
|
|
|
![](images/spacer.gif) |
|
|