HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How can i do this text?

06-03-2008, 01:17 PM#1
Leopard
>>Well, i try this for sometimes but i can't make this kind of text, though it looks simple, can someone please help me out?
-A demo map would be good, thank you and sorry for bothering

06-03-2008, 01:42 PM#2
rulerofiron99
|cffaaaa40T H E D E A D H I L L S|r
With lots of spaces in front of it.
06-03-2008, 01:46 PM#3
Silvenon
It is just a color code, there are plenty of tools for generating color codes on this site and on the hive workshop.
06-03-2008, 04:41 PM#4
Vestras
It's JASS.

Collapse JASS:
call DisplayTextToPlayer(Player(0), 0.5, 0.5, "myText")

It's what I got in my map.
06-03-2008, 05:54 PM#5
Gwypaas
He wants to know how to generate the text in the pic he showed not how to generate a normal text message.
06-03-2008, 06:10 PM#6
Vestras
Quote:
Originally Posted by Gwypaas
He wants to know how to generate the text in the pic he showed not how to generate a normal text message.

Yes. That's what it does.

Collapse JASS:
call DisplayTextToPlayer(Player(0), 0.5<-- Real, 0.5<-- Real, "myText")

The reals determines where on the screen the text are displayed.
06-04-2008, 02:40 AM#7
Leopard
Eh, well, kind sir...i am a GUI user
Can you explain more detail? is it just that simply adding "bar tab" ?
How about the size?, how can i center it?
06-04-2008, 02:49 AM#8
darkwulfv
Just use the custom script action and plug in the line RoD I gave you (the first one).
06-04-2008, 05:38 AM#9
rulerofiron99
If your text isn't too long, just use a normal game message. However, if it gets past the point of moveovertonextline, use the call that function they gave you.
06-05-2008, 07:46 AM#10
Vestras
Quote:
Originally Posted by Leopard
Eh, well, kind sir...i am a GUI user
Can you explain more detail? is it just that simply adding "bar tab" ?
How about the size?, how can i center it?

A custom script cannot damage.
Just create a custom script, press in that line and write the text you want. The first real, is normaly when should be centered, 0.7. The second one should be 0.
It is centered, if you read my post.
06-06-2008, 04:04 AM#11
Leopard
Ok, thx my friend, i will try...
06-09-2008, 03:12 AM#12
PurgeandFire111
Yeah, DisplayTextToPlayer() takes the Player, then the reals x and y, then the text.

The Player is who you want to display the text to.

The real X is the X coordinate (left to right) on the screen where you want to place the text. Values go from 0-2, if you go past about 2.4-2.6 then it will go off screen.

The real Y is the Y coordinate (down to up) on the screen where you want to place the text. The values... erm... I forgot, they might be the same as the X coordinate but I'm not sure. I forgot what it was. :P Anyway, inputing too large of a value will make it go off screen.

Finally, it is the text you want to display. If you want to display it in color, read a tutorial on hexadecimals, also known as "color codes". Wc3 uses |c to start it, then the next pair is for transparency which doesn't work, so you can put 00 or ff or whatever. (But you can also denote hexadecimals with 0x)