From 07bc6974774bdb0fc115b11b3b773242d202d7ed Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sat, 25 Sep 2021 14:21:34 -0400 Subject: [PATCH] remove uneeded part of the tutorial --- src/InteractiveTutorial.ts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/InteractiveTutorial.ts b/src/InteractiveTutorial.ts index be67f422c..7093763a9 100644 --- a/src/InteractiveTutorial.ts +++ b/src/InteractiveTutorial.ts @@ -4,10 +4,6 @@ import { LiteratureNames } from "./Literature/data/LiteratureNames"; import { ITutorialEvents } from "./ui/InteractiveTutorial/ITutorialEvents"; -import { createElement } from "../utils/uiHelpers/createElement"; -import { createPopup } from "../utils/uiHelpers/createPopup"; -import { removeElementById } from "../utils/uiHelpers/removeElementById"; - // Ordered array of keys to Interactive Tutorial Steps enum iTutorialSteps { Start, @@ -141,28 +137,6 @@ function iTutorialPrevStep(): void { function iTutorialEnd(): void { ITutorial.isRunning = false; - // Create a popup with final introductory stuff - const popupId = "interactive-tutorial-ending-popup"; - const txt = createElement("p", { - innerHTML: - "If you are new to the game, the following links may be useful for you!

" + - "Getting Started Guide" + - "Documentation

" + - "The Beginner's Guide to Hacking was added to your home computer! It contains some tips/pointers for starting out with the game. " + - "To read it, go to Terminal and enter

cat " + - LiteratureNames.HackersStartingHandbook, - }); - const gotitBtn = createElement("a", { - class: "a-link-button", - float: "right", - padding: "6px", - innerText: "Got it!", - clickListener: () => { - removeElementById(popupId); - }, - }); - createPopup(popupId, [txt, gotitBtn]); - Player.getHomeComputer().messages.push(LiteratureNames.HackersStartingHandbook); ITutorialEvents.emit(); }