Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | function updateTutorial(notification) | ||||
if (notification.readyButton) | if (notification.readyButton) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("tutorialReady").hidden = false; | Engine.GetGUIObjectByName("tutorialReady").hidden = false; | ||||
if (notification.leave) | if (notification.leave) | ||||
{ | { | ||||
Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Click to quit this tutorial."); | Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Click to quit this tutorial."); | ||||
Engine.GetGUIObjectByName("tutorialReady").caption = translate("Quit"); | Engine.GetGUIObjectByName("tutorialReady").caption = translate("Quit"); | ||||
Engine.GetGUIObjectByName("tutorialReady").onPress = endGame; | Engine.GetGUIObjectByName("tutorialReady").onPress = () => { endGame(true); }; | ||||
} | } | ||||
else | else | ||||
Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Click when ready."); | Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Click when ready."); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Follow the instructions."); | Engine.GetGUIObjectByName("tutorialWarning").caption = translate("Follow the instructions."); | ||||
Engine.GetGUIObjectByName("tutorialReady").hidden = true; | Engine.GetGUIObjectByName("tutorialReady").hidden = true; | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator