Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 841 Lines • ▼ Show 20 Lines | function updateGUIObjects() | ||||
if (!g_IsObserver) | if (!g_IsObserver) | ||||
{ | { | ||||
// Update music state on basis of battle state. | // Update music state on basis of battle state. | ||||
let battleState = Engine.GuiInterfaceCall("GetBattleState", g_ViewedPlayer); | let battleState = Engine.GuiInterfaceCall("GetBattleState", g_ViewedPlayer); | ||||
if (battleState) | if (battleState) | ||||
global.music.setState(global.music.states[battleState]); | global.music.setState(global.music.states[battleState]); | ||||
} | } | ||||
updateDiplomacyPanel(); | |||||
elexis: **TODO: **Remove unneeded duplicate check (that you added as an early return to that function) | |||||
Not Done Inline Actionsok mimo: ok | |||||
} | } | ||||
function onReplayFinished() | function onReplayFinished() | ||||
{ | { | ||||
closeOpenDialogs(); | closeOpenDialogs(); | ||||
pauseGame(); | pauseGame(); | ||||
messageBox(400, 200, | messageBox(400, 200, | ||||
▲ Show 20 Lines • Show All 679 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
TODO: Remove unneeded duplicate check (that you added as an early return to that function)