Differential D2412 Diff 10323 binaries/data/mods/public/gui/lobby/LobbyPage/Chat/ChatMessageFormat/ChatMessageFormatMe.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/lobby/LobbyPage/Chat/ChatMessageFormat/ChatMessageFormatMe.js
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* This class formats a chat message that was sent using the /me format command. | |||||
* For example "/me goes away". | |||||
*/ | |||||
class ChatMessageFormatMe | |||||
{ | |||||
constructor() | |||||
{ | |||||
this.args = {}; | |||||
} | |||||
// TODO: EscapeText | |||||
format(sender, text) | |||||
{ | |||||
this.args.sender = setStringTags(sender, this.SenderTags); | |||||
this.args.message = text; | |||||
return sprintf(this.Format, this.args); | |||||
} | |||||
} | |||||
// Translation: Chat message issued using the ‘/me’ command. | |||||
ChatMessageFormatMe.prototype.Format = translate("* %(sender)s %(message)s"); | |||||
/** | |||||
* Used for highlighting the sender of chat messages. | |||||
*/ | |||||
ChatMessageFormatMe.prototype.SenderTags = { "font": "sans-bold-13" }; |
Wildfire Games · Phabricator