Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/menu.js
Context not available. | |||||
*/ | */ | ||||
var g_BribeButtonsWaiting = {}; | var g_BribeButtonsWaiting = {}; | ||||
/** | |||||
bb: no lets for globals => var | |||||
Not Done Inline Actionsone could also ste the jsDocs comments on every decleration bb: one could also ste the jsDocs comments on every decleration | |||||
* Remember the name of the currently opened view panel. | |||||
Not Done Inline Actionsperiod bb: period | |||||
Not Done Inline Actionscurrently viewed panel elexis: currently viewed panel | |||||
*/ | |||||
var g_SummaryViewPanel = ""; | |||||
Not Done Inline Actionsg_SelectedSummaryPanel or g_SummarySelectedPanel? elexis: `g_SelectedSummaryPanel` or `g_SummarySelectedPanel`? | |||||
// Redefined every time someone makes a tribute (so we can save some data in a closure). Called in input.js handleInputBeforeGui. | // Redefined every time someone makes a tribute (so we can save some data in a closure). Called in input.js handleInputBeforeGui. | ||||
var g_FlushTributing = function() {}; | var g_FlushTributing = function() {}; | ||||
Context not available. | |||||
"gui": { | "gui": { | ||||
"isInGame": true | "isInGame": true | ||||
}, | }, | ||||
"callback": "resumeGame" | "viewPanel": g_SummaryViewPanel, | ||||
"callback": "resumeGameAndSaveSummaryViewPanel" | |||||
}); | }); | ||||
} | } | ||||
Context not available. | |||||
pauseGame(false, explicit); | pauseGame(false, explicit); | ||||
} | } | ||||
function resumeGameAndSaveSummaryViewPanel(data) | |||||
{ | |||||
g_SummaryViewPanel = data.viewPanel; | |||||
resumeGame(data.explicitResume); | |||||
} | |||||
/** | /** | ||||
* Called when the current player toggles a pause button. | * Called when the current player toggles a pause button. | ||||
*/ | */ | ||||
Context not available. |
Wildfire Games · Phabricator
no lets for globals => var