• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Tooltip] How to format texts in a tooltip

Status
Not open for further replies.
Level 3
Joined
Jun 24, 2019
Messages
24
Hello everyone, I wonder for those tooltips in game (like ability description, shop unit/item description), how could we format the text?
So far, I only know we can use |n to start a newline.
I would like to how to:
(1) Indentation (tried |t or \t, neither works :()
(2) Alignment (for example, make one line text align centre instead of align left)
(3) Variant (bold, italic, etc. <= is this even possible?)

Thanks so much in advance :)
 
For identation you can try colouring dots or underscore with the same colour as the background. Other than that, there's not much to do.
Thanks for your reply. But I think since the game font is not monospace (which means the fonts' width are not identical), so even we use dots, underscore or just space cannot achieve the goal tho. <= for example, it doesn't imply if we put same amount of dots after preceding texts A, B on two different line can make the position of pointers are identical on x-axis. In reality, something for line A, you need put 1.5 dots, while B lines put 2 dots, but 0.5 dot is not available tho.

I am not sure if you understand what I mean :))
 
Status
Not open for further replies.
Back
Top