Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | var g_NotificationsTypes = | ||||
}, | }, | ||||
"won": function(notification, player) | "won": function(notification, player) | ||||
{ | { | ||||
playersFinished(notification.allies, notification.message, true); | playersFinished(notification.allies, notification.message, true); | ||||
}, | }, | ||||
"diplomacy": function(notification, player) | "diplomacy": function(notification, player) | ||||
{ | { | ||||
addChatMessage({ | addChatMessage({ | ||||
"type": "diplomacy", | "type": "diplomacy", | ||||
temple: Probably only needed if diplo colors are toggled (here and below). | |||||
"sourcePlayer": player, | "sourcePlayer": player, | ||||
"targetPlayer": notification.targetPlayer, | "targetPlayer": notification.targetPlayer, | ||||
"status": notification.status | "status": notification.status | ||||
}); | }); | ||||
updatePlayerData(); | updatePlayerData(); | ||||
setDiplomacyColors(); | |||||
}, | }, | ||||
"ceasefire-ended": function(notification, player) | "ceasefire-ended": function(notification, player) | ||||
{ | { | ||||
updatePlayerData(); | updatePlayerData(); | ||||
}, | }, | ||||
"tutorial": function(notification, player) | "tutorial": function(notification, player) | ||||
{ | { | ||||
updateTutorial(notification); | updateTutorial(notification); | ||||
▲ Show 20 Lines • Show All 934 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Probably only needed if diplo colors are toggled (here and below).