HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Centering Text

09-06-2008, 07:10 PM#1
Joker
Is there some formula for it?
09-06-2008, 07:16 PM#2
chobibo
Try looking at cohadar's texttag script on the scripts section, I'm not sure, but it's worth a try to use the formula he used to center texttags.
09-15-2008, 10:54 PM#3
Joker
But DisplayText scale is different than texttag
09-15-2008, 10:57 PM#4
Anitarf
Wait, do you mean game messages?
09-15-2008, 11:42 PM#5
Joker
yeah
Collapse JASS:
DisplayTextToPlayer
09-16-2008, 08:11 PM#6
Bobo_The_Kodo
0.5, 0.5 is the middle of the screen, increase the first value depending on the length
09-16-2008, 11:37 PM#7
Joker
1 character = 0.1?
09-17-2008, 12:37 AM#8
Ammorth
assuming game texts and multiboard text are interchangable (size, font, etc.) the data from my String Parse library w ould suffice for character widths (which is how it works).
09-17-2008, 01:27 AM#9
Anitarf
Quote:
Originally Posted by Litany
It might be useful for someone to get the sizes of the printable characters for the default font and write a little calculator that gives you the the position a given string should be printed at.
Been there, done that.
I realise now I should have made this a resource long ago, I was originally going to release it as a part of the next version of my cinematic system but then that got delayed indefinitely because I didn't feel like directing a new sample for it. Anyway, here it is as a proper vJass library now: AText