From 90f7190f382560b236d1e5a03d08a19b5bb0b1ee Mon Sep 17 00:00:00 2001 From: ReznoRMichael Date: Tue, 7 Dec 2021 11:03:05 +0100 Subject: [PATCH] add class ItemListBox --- src/js/HKCheckCompletion.js | 6 ++++++ src/js/page.js | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/js/HKCheckCompletion.js b/src/js/HKCheckCompletion.js index 893cc7f..54167fa 100644 --- a/src/js/HKCheckCompletion.js +++ b/src/js/HKCheckCompletion.js @@ -1749,6 +1749,12 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene let itemsLog = []; if (mode === "notActivated") { + + /* + let list = new ItemListBox(worldData); + + */ + for (let i = 0; i < arrayLength; i++) { if (worldData[i].activated === false && worldData[i].semiPersistent === false) { diff --git a/src/js/page.js b/src/js/page.js index 4a5a4cb..e57cfeb 100644 --- a/src/js/page.js +++ b/src/js/page.js @@ -1,6 +1,12 @@ /* This file will contain all classes and functions for creating things on the page */ -class ItemListBox { +export class ItemListBox { + constructor() { - console.log("ItemListBox is being created"); + console.log("ItemListBox is created"); } + + assignElements(worldData) { + this.worldData = worldData; /* array of .id */ + } + } \ No newline at end of file