HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game text in the middle of the screen?

04-17-2005, 09:02 AM#1
vile
hi
if anyone yet played tides of blood, in the beginning, u see a text in the middle of the screen
how can u do this?
it was a normal text not floating
04-19-2005, 10:02 PM#2
iNfraNe
there is a function for putting text at an offset. its not build-in WE, but WEU has it ithink. I just dont really know the exact numbers for it, u can just try that yourself ;)
04-20-2005, 12:17 AM#3
Raptor--
its pretty much like me putting text in the middle of this screen...
Code:
                                                MIDDLE TEXT
04-20-2005, 05:14 AM#4
vile
oh.. LOL
ok ill try that one..
04-20-2005, 01:11 PM#5
Tommi
I do it with one of these functions:

native DisplayTextToPlayer takes player toPlayer, real x, real y, string message returns nothing
native DisplayTimedTextFromPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing
native DisplayTimedTextToPlayer player toPlayer, real x, real y, real duration, string message returns nothing

See the real x and real y arguments there? They change the location of the text box on the screen. No need to use spaces or anything. Use values 0 < x < 1.00 and 0 < y < 1.00.
04-20-2005, 05:35 PM#6
Vexorian
Just a note, when you do it , it will move the position of all the text in the screen, so it is better if you clean the current text messages before using those natives.

Also the UMSWE(U) and the native solution are the same thing
04-20-2005, 11:15 PM#7
vile
your jass worked, thanks genius