Difference between revisions of "Dota 2 Tooltip Formatting"

From Valve Developer Community
Jump to: navigation, search
(Created page with "[WIP] List of codes used in formatting tooltips. {| class="standard-table" style="width: 100%;" ! Code ! Output ! Example Input ! Example Output |- | + | Shows a + followed by ...")
 
Line 13: Line 13:
 
| +$str
 
| +$str
 
| + 50 Strength
 
| + 50 Strength
|-
+
 
| %+
 
| Shows a + followed by the value and %.
 
| %+$mana_regen
 
| + 30% Mana Regeneration
 
 
|-
 
|-
 
| :
 
| :
Line 23: Line 19:
 
| HEALTH BONUS:
 
| HEALTH BONUS:
 
| HEALTH BONUS: 200
 
| HEALTH BONUS: 200
 +
|-
 +
| %
 +
| Shows the value followed by a %.
 +
| %$mana_regen:
 +
| Mana Regeneration: 30%
 
|}
 
|}
  

Revision as of 13:45, 12 January 2014

[WIP]

List of codes used in formatting tooltips.

Code Output Example Input Example Output
+ Shows a + followed by the value. +$str + 50 Strength
 : Shows the value after the colon. HEALTH BONUS: HEALTH BONUS: 200
 % Shows the value followed by a %.  %$mana_regen: Mana Regeneration: 30%

There are also variables for different value descriptions. Probably used for localization.

Code Output
$health Health
$health Mana
$armor Armor
$damage Damage
$str Strength
$int Intellect
$agi Agility
$all All Attributes
$attack Attack Speed
$hp_regen HP Regeneration
$mana_regen Mana Regeneration
$move_speed Movement Speed
$evasion Evasion
$spell_resist Spell Resistance
$selected_attribute Selected Attribute