StandardTextTags

Utilities View source
StandardTextTags

Source on GitHub

Functions

standardTextTag

public function standardTextTag() returns texttag

Creates a text tag with default values matching standard built-in text tags

standardTextTag

public function standardTextTag(vec2 pos, string text) returns texttag

createCriticalStrikeTextTag

public function createCriticalStrikeTextTag(unit u, int damage) returns texttag

Create a texttag that matches the style of the standard warcraft 3 Critical Strike ability.

createGoldBountyTextTag

public function createGoldBountyTextTag(unit u, int bounty, player killer) returns texttag

Create a texttag that matches the style of the standard warcraft 3 gold bounty.

createGoldBountyTextTag

public function createGoldBountyTextTag(unit u, int bounty) returns texttag

Create a texttag that matches the style of the standard warcraft 3 gold bounty.

createLumberBountyTextTag

public function createLumberBountyTextTag(unit u, int bounty, player killer) returns texttag

Create a texttag that matches the style of the standard warcraft 3 lumber bounty.

createLumberBountyTextTag

public function createLumberBountyTextTag(unit u, int bounty) returns texttag

Create a texttag that matches the style of the standard warcraft 3 lumber bounty.

createManaBurnTextTag

public function createManaBurnTextTag(unit u, int damage) returns texttag

Create a texttag that matches the style of the standard warcraft 3 Mana Burn ability.

createMissTextTag

public function createMissTextTag(unit u) returns texttag

Create a texttag that matches the style of the standard warcraft 3 attack miss indication.

createShadowStrikeTextTag

public function createShadowStrikeTextTag(unit u, int damage, bool isInitialDamage) returns texttag

Create a texttag that matches the style of the standard warcraft 3 Shadow Strike ability.

Extension Functions

texttag.setScaledText

public function texttag.setScaledText(string text, real scale)

Set the text with the standard font size scaled by a factor.

texttag.setText

public function texttag.setText(string text)

Set the text with the standard font size.