Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/NetworkDialogManager.js
- This file was added.
function NetworkDialogManager() | |||||
{ | |||||
this.guiPage = undefined; | |||||
} | |||||
NetworkDialogManager.prototype.open = function() | |||||
{ | |||||
this.guiPage = Engine.PushGuiPage("page_networkreport.xml", { | |||||
"gameAttributes": g_GameAttributes, | |||||
"playerAssignments": g_PlayerAssignments, | |||||
"callback": "closePageHack" // TODO: should use D1684 | |||||
}); | |||||
}; | |||||
function closePageHack() | |||||
lyv: Somehow I didn't quite catch this when I posted those...
And I suppose the line below is that… | |||||
elexisAuthorUnsubmitted Done Inline Actionselexis: D1684 | |||||
{ | |||||
if (typeof g_NetworkDialogManager != "undefined") | |||||
g_NetworkDialogManager.guiPage = undefined; | |||||
} | |||||
NetworkDialogManager.prototype.refresh = function() | |||||
{ | |||||
if (this.guiPage) | |||||
this.guiPage.updatePage({ | |||||
"gameAttributes": g_GameAttributes, | |||||
"playerAssignments": g_PlayerAssignments, | |||||
}); | |||||
}; |
Wildfire Games · Phabricator
Somehow I didn't quite catch this when I posted those...
And I suppose the line below is that way to avoid a double negation.