Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 508 Lines • ▼ Show 20 Lines | function handleNotifications() | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Updates playerdata cache and refresh diplomacy panel. | * Updates playerdata cache and refresh diplomacy panel. | ||||
*/ | */ | ||||
function updateDiplomacy() | function updateDiplomacy() | ||||
{ | { | ||||
updatePlayerData(); | updatePlayerData(); | ||||
if (g_IsDiplomacyOpen) | |||||
openDiplomacy(); | |||||
} | } | ||||
elexis: **TODO: **Remove this as it is unneeded, since it is already called on `updateGUIObjects` which… | |||||
Not Done Inline Actionsok mimo: ok | |||||
/** | /** | ||||
* Displays all active counters (messages showing the remaining time) for wonder-victory, ceasefire etc. | * Displays all active counters (messages showing the remaining time) for wonder-victory, ceasefire etc. | ||||
*/ | */ | ||||
function updateTimeNotifications() | function updateTimeNotifications() | ||||
{ | { | ||||
let notifications = Engine.GuiInterfaceCall("GetTimeNotifications", g_ViewedPlayer); | let notifications = Engine.GuiInterfaceCall("GetTimeNotifications", g_ViewedPlayer); | ||||
let notificationText = ""; | let notificationText = ""; | ||||
▲ Show 20 Lines • Show All 598 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
TODO: Remove this as it is unneeded, since it is already called on updateGUIObjects which is called onSimulationUpdate.
(Nicely that also prevents another merge conflict with D108)