Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/MenuButtons.js
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | onPress() | ||||
// If they have shared ally vision researched, they are able to see the summary of there allies too. | // If they have shared ally vision researched, they are able to see the summary of there allies too. | ||||
let simState = Engine.GuiInterfaceCall("GetExtendedSimulationState"); | let simState = Engine.GuiInterfaceCall("GetExtendedSimulationState"); | ||||
Engine.PushGuiPage( | Engine.PushGuiPage( | ||||
"page_summary.xml", | "page_summary.xml", | ||||
{ | { | ||||
"sim": { | "sim": { | ||||
"mapSettings": g_GameAttributes.settings, | "mapSettings": g_GameAttributes.settings, | ||||
"playerStates": simState.players.filter((state, player) => | "playerStates": simState.players.filter((state, player) => | ||||
g_IsObserver || player == 0 || player == g_ViewedPlayer || | g_IsObserver || g_ViewedPlayer == 0 || player == 0 || player == g_ViewedPlayer || | ||||
simState.players[g_ViewedPlayer].hasSharedLos && g_Players[player].isMutualAlly[g_ViewedPlayer]), | simState.players[g_ViewedPlayer].hasSharedLos && g_Players[player].isMutualAlly[g_ViewedPlayer]), | ||||
"timeElapsed": simState.timeElapsed | "timeElapsed": simState.timeElapsed | ||||
}, | }, | ||||
"gui": { | "gui": { | ||||
"dialog": true, | "dialog": true, | ||||
"isInGame": true, | "isInGame": true, | ||||
"summarySelection": this.summarySelection | "summarySelection": this.summarySelection | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator