Differential D2483 Diff 10979 binaries/data/mods/public/gui/gamesetup/Panels/Chat/StatusMessageFormat.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Panels/Chat/StatusMessageFormat.js
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* Status messages are textual event notifications triggered by multi-user chat room actions. | |||||
*/ | |||||
class StatusMessageFormat | |||||
{ | |||||
constructor() | |||||
{ | |||||
this.args = {}; | |||||
} | |||||
/** | |||||
* escapeText is the responsibility of the caller. | |||||
*/ | |||||
format(text) | |||||
{ | |||||
this.args.message = text; | |||||
return setStringTags( | |||||
sprintf(this.MessageFormat, this.args), | |||||
this.MessageTags); | |||||
} | |||||
} | |||||
StatusMessageFormat.prototype.MessageFormat = | |||||
translate("== %(message)s"); | |||||
StatusMessageFormat.prototype.MessageTags = { | |||||
"font": "sans-bold-13" | |||||
}; |
Wildfire Games · Phabricator