Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/EndGameManager.js
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | cmpGuiInterface.PushNotification({ | ||||
"allies" : allies, | "allies" : allies, | ||||
"message": markForPluralTranslation( | "message": markForPluralTranslation( | ||||
"%(lastPlayer)s has won (last player alive).", | "%(lastPlayer)s has won (last player alive).", | ||||
"%(players)s and %(lastPlayer)s have won (last players alive).", | "%(players)s and %(lastPlayer)s have won (last players alive).", | ||||
allies.length) | allies.length) | ||||
}); | }); | ||||
} | } | ||||
else | else | ||||
this.lastManStandingMessage = cmpGuiInterface.AddTimeNotification({ | this.lastManStandingMessage = cmpGuiInterface.PushTimeNotification({ | ||||
"message": markForTranslation("Last remaining player wins."), | "message": markForTranslation("Last remaining player wins.") | ||||
"translateMessage": true, | }, Infinity); | ||||
}, 12 * 60 * 60 * 1000); // 12 hours | |||||
}; | }; | ||||
EndGameManager.prototype.OnInitGame = function(msg) | EndGameManager.prototype.OnInitGame = function(msg) | ||||
{ | { | ||||
this.AlliedVictoryCheck(); | this.AlliedVictoryCheck(); | ||||
}; | }; | ||||
EndGameManager.prototype.OnGlobalDiplomacyChanged = function(msg) | EndGameManager.prototype.OnGlobalDiplomacyChanged = function(msg) | ||||
Show All 10 Lines |
Wildfire Games · Phabricator