StandardTextTags

Utilities View source
StandardTextTags

Functions and constants

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

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

public function texttag.setText(string text)

Set the text with the standard font size.

public function standardTextTag() returns texttag

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

public function standardTextTag(vec2 pos, string text) returns texttag
public function createCriticalStrikeTextTag(unit u, int damage) returns texttag

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

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.

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

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

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.

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

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

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

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

public function createMissTextTag(unit u) returns texttag

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

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.