Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | addChatMessage({ | ||||
"amountsSold": notification.amountsSold, | "amountsSold": notification.amountsSold, | ||||
"amountsBought": notification.amountsBought, | "amountsBought": notification.amountsBought, | ||||
"resourceSold": notification.resourceSold, | "resourceSold": notification.resourceSold, | ||||
"resourceBought": notification.resourceBought | "resourceBought": notification.resourceBought | ||||
}); | }); | ||||
}, | }, | ||||
"spy-response": function(notification, player) | "spy-response": function(notification, player) | ||||
{ | { | ||||
if (g_ViewedPlayer == player) | if (g_BribeButtonsWaiting[player]) | ||||
g_BribeButtonsWaiting[player] = g_BribeButtonsWaiting[player].filter(p => p != notification.target); | |||||
if (notification.entity && g_ViewedPlayer == player) | |||||
{ | |||||
closeDiplomacy(); | |||||
setCameraFollow(notification.entity); | setCameraFollow(notification.entity); | ||||
} | |||||
}, | }, | ||||
"attack": function(notification, player) | "attack": function(notification, player) | ||||
{ | { | ||||
if (player != g_ViewedPlayer) | if (player != g_ViewedPlayer) | ||||
return; | return; | ||||
// Focus camera on attacks | // Focus camera on attacks | ||||
if (g_FollowPlayer) | if (g_FollowPlayer) | ||||
▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator