Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/chat/ChatHistory.js
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | this.chatHistoryText.caption = | ||||
}) : | }) : | ||||
msg.txt).join("\n"); | msg.txt).join("\n"); | ||||
} | } | ||||
onChatMessage(msg, formatted) | onChatMessage(msg, formatted) | ||||
{ | { | ||||
// Save to chat history | // Save to chat history | ||||
let historical = { | let historical = { | ||||
"txt": formatted, | "txt": formatted.text, | ||||
"timePrefix": sprintf(translate("\\[%(time)s]"), { | "timePrefix": sprintf(translate("\\[%(time)s]"), { | ||||
"time": Engine.FormatMillisecondsIntoDateStringLocal(Date.now(), translate("HH:mm")) | "time": Engine.FormatMillisecondsIntoDateStringLocal(Date.now(), translate("HH:mm")) | ||||
}), | }), | ||||
"filter": {} | "filter": {} | ||||
}; | }; | ||||
// Apply the filters now before diplomacies or playerstates change | // Apply the filters now before diplomacies or playerstates change | ||||
let senderID = msg.guid && g_PlayerAssignments[msg.guid] ? g_PlayerAssignments[msg.guid].player : 0; | let senderID = msg.guid && g_PlayerAssignments[msg.guid] ? g_PlayerAssignments[msg.guid].player : 0; | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator