Dota 2 Workshop Tools/Scripting/API/Global.UTIL MessageText WithContext

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 17:08, 15 September 2014 by RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Note.png Note:  This page is automatically generated. Any changes may be overwritten

Function Description

void UTIL_MessageText_WithContext(int playerId, string message, int r, int g, int b, int a, table context)

Sends a message to a specific player in the message box with a context table

UTIL_MessageText_WithContext( 1, "#ScoreboardRow", 255, 255, 255, 255, { team_name = "Team", value = 50 } )

--Where #ScoreboardRow is defined in the langauge files as
-- "ScoreboardRow"         "%value% %team_name%"

-- %value% would be replaced by the 'value' entry in the table, %team_name% would be replaced by team_name entry


Type Name Description
int playerId player to write to
string message Message to write
int r red color
int g green color
int b blue color
int a transparency
table context Table with context values