• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Simple Question About tooltips

Status
Not open for further replies.
Level 4
Joined
Jan 14, 2005
Messages
73
Is there a List of all the modifiers you can use in a tooltip (Like |n and |r)? Im trying to line up some text with the line above it but, Its always misplaced (only in game its misplaced, In the editor its all lined up) Is there anyway to change the WE font to the In game Font?.
 
I can give you example, maybe it can help!
Example:

(Code)

Shalis strikes with such force that 12% of their damage strikes through to enemies near the primary attacked unit. |n|n|cffc3dbffCast Range:|r / |n|cffc3dbffCooldown:|r / |n|cffc3dbffTarget:|r / |n|cffc3dbffAoe:|r 250

(Result)


Shalis strikes with such force that 12% of their damage strikes through to enemies near the primary attacked unit.

Cast Range: /
Cooldown: /
Target: /
Aoe: 250


You can use JNGP! Check Grimoire -> Enable Colorizer

That should help!
 
Level 4
Joined
Jan 14, 2005
Messages
73
Thanks.. Got a little confused with that but i kinda get it Are there more then those 2 codes though? cause i got the layout right but they dont line up heres my Exact Text

"|cff7DBEF1The Basic|r Male Wizard|n|cffFF0000Stat|r - |cffFE890DBase|r - |cff32CD32Per level|n|cffFF0000MaxHP|r |cff7DBEF1: |r |cffFE890D450|r |cff32CD32 (+150)|n|cffFF0000MaxMP|cff7DBEF1:|r |cffFE890D550|r |cff32CD32(+550)|n|r |cffFF0000STR|r |cff7DBEF1: |r |cffFE890D5|r |cff32CD32(+1)|n|r |cffFF0000AGI|cff7DBEF1 : |r |cffFE890D 5 |r |cff32CD32 (+1)|n|r |cffFF0000 INT|cff7DBEF1 : |r |cffFE890D 10|r |cff32CD32 (+2)"

If you got any idea how i should line this up let me know... (i just pasted it from WE :\)
 
Level 13
Joined
Mar 24, 2010
Messages
950
wow old 2005 member with 23 posts?

seems like your code should be right u just need to measure out where stuff cuts off in the wc3 window in-game and then know how long 1 line can be max before needing to use |n
 
(Code)

|cff7dbef1The Basic|r |n(Male Wizard)|n|n|cffff0000Stat|r - |cfffe890dBase|r - Per level|n|n|cffff0000MaxHP|r|cff7dbef1: |r|cfffe890d450|r |cff32cd32(+150)|r|nMaxMP|cff7dbef1:|r |cfffe890d550|r |cff32cd32(+550)|n|r|cffff0000Strength|r|cff7dbef1:|r|cfffe890d5|r |cff32cd32(+1)|n|rAgility|cff7dbef1:|r|cfffe890d 5 |r|cff32cd32(+1)|n|rIntelligence|cff7dbef1: |r|cfffe890d10|r |cff32cd32(+2)|r

(Result)

The Basic
(Male Wizard)

Stat - Base - Per level

MaxHP: 450 (+150)
MaxMP: 550 (+550)
Strength:5 (+1)
Agility: 5 (+1)
Intelligence: 10 (+2)

But if you want something like:
Stat ------ Base ------ Per level
MaxHP: -- 450 ------ (+150)
MaxMP:--- 550 ------ (+550)
Strength:---- 5 ------ (+1)

That will be pain in the ass to create, you will need to calculate how many characters you have to add so many spaces!
There is no code for that!
Sry
 
Level 4
Joined
Jan 14, 2005
Messages
73
K that sucks :\, thanks for your help. and ya the 2nd one is what i wanted. I might just attempt to make a gui script to set the text up for me :\.. if i cant il go learn some jass to do it >:| lol.
 
K that sucks :\, thanks for your help. and ya the 2nd one is what i wanted. I might just attempt to make a gui script to set the text up for me :\.. if i cant il go learn some jass to do it >:| lol.

You can always use formatted string!
So it is possible with even GUI but text will be displayed on screen to all or single payer...
 
Status
Not open for further replies.
Top