BlzFrameSetText

Parameters
frame framehandle
text string
comment

Supports Warcraft 3 formatting codes:

  • Colors (|cffffcc00)
  • Multiple lines (|n, \n)

Should work with the following frame types: TEXT, TEXTBUTTON, EDITBOX, TEXTAREA, SIMPLEBUTTON, SIMPLEFONTSTRING.

bug

Applying this native to ORIGIN_FRAME_PORTRAIT_HP_TEXT or ORIGIN_FRAME_PORTRAIT_MANA_TEXT (likely a SIMPLEFONTSTRING) crashes the game.

patch

1.31.0.11889

Source
common.j (suggest an edit or discuss on Github)
return type
nothing
Source code
native BlzFrameSetText                             takes framehandle frame, string text returns nothing