From 2030ce871dbab8d7dabad7f3e26961b221646481 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 29 Nov 2020 15:04:54 -0500 Subject: [PATCH] closing link --- src/events/intro/pcBodyIntro.js | 34 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/src/events/intro/pcBodyIntro.js b/src/events/intro/pcBodyIntro.js index ecfd284ea0a..efb896259cf 100644 --- a/src/events/intro/pcBodyIntro.js +++ b/src/events/intro/pcBodyIntro.js @@ -13,6 +13,7 @@ App.Intro.PCBodyIntro = function() { el.append(body()); el.append(age()); el.append(nameIndulgence()); + el.append(endScene()); return el; @@ -150,7 +151,7 @@ App.Intro.PCBodyIntro = function() { App.UI.DOM.appendNewElement("div", el, `What is your name and alternate indulgence?`, ["intro", "question"]); options.addOption(`Name your character: `, "slaveName", V.PC).showTextBox().addComment(`As with all text boxes in FC, press the enter key to commit your changes.`); - options.addOption(`Surname: `, "slaveSurname", V.PC).showTextBox(); + options.addOption(`Surname: `, "slaveSurname", V.PC).showTextBox().addComment("Optional"); if (V.PC.slaveSurname) { options.addOption("Go by a single name") @@ -185,7 +186,6 @@ App.Intro.PCBodyIntro = function() { .addValueList(Array.from(App.Data.player.refreshmentType, (v, i) => [v, i])) .addComment(`Flavor only; no mechanical effect. If entering a custom refreshment, please assign proper usage.`); - el.append(options.render()); if (V.PC.refreshmentType === 0) { App.UI.DOM.appendNewElement("div", el, `"Smoke" must fit into the following sentence: "I smoked a ${V.PC.refreshment}" to fit events properly`); @@ -197,25 +197,15 @@ App.Intro.PCBodyIntro = function() { return el; } -}; - - - -/* -<p> - if (V.PC.vagina !== -1) { - [[Confirm player character customization|PC Preg Intro]] - } else { - [[Confirm player character customization|PC Appearance Intro]] + function endScene() { + const el = document.createElement("p"); + const linkTitle = "Confirm player character customization"; + if (V.PC.vagina !== -1) { + el.append(App.UI.DOM.passageLink(linkTitle, "PC Preg Intro")); + } else { + el.append(App.UI.DOM.passageLink(linkTitle, "PC Appearance Intro")); + } + return el; } -</p> - - - return el; -} - - - - -*/ +}; -- GitLab