add SetIcon

This commit is contained in:
ReznoRMichael 2021-08-04 23:09:35 +02:00
parent c975e5c660
commit 391037be88
3 changed files with 11 additions and 7 deletions

View file

@ -22,6 +22,7 @@ import {
SetIconPartialJournal,
SetIconRed,
SetIconNone,
SetIcon,
ObjectLength,
TranslateMapName
} from "./hk-functions.js";

View file

@ -53,13 +53,6 @@ function SetIconRed(section = {}, entry = "") {
section.entries[entry].icon = "red";
}
/**
* Switches global variable to an "information" symbol
*/
/* function CurrentDataInfo() {
completionSymbol = SYMBOL_INFO;
} */
/**
* Switches global variable to no symbol (span with left padding)
*/
@ -68,6 +61,14 @@ function SetIconNone(section = {}, entry = "") {
section.entries[entry].icon = "none";
}
/**
* Switches global variable to a chosen symbol
*/
function SetIcon(section = {}, entry = "", icon = "") {
section.entries[entry].icon = icon;
}
/**
* Checks the length of a JavaScript Object like Array.length
* @param {object} object JavaScript Object
@ -104,6 +105,7 @@ export {
SetIconPartialJournal,
SetIconRed,
SetIconNone,
SetIcon,
ObjectLength,
TranslateMapName
};

View file

@ -22,6 +22,7 @@ const SYMBOL_PARTIAL = "<i class='icon-ok-squared partial'></i>"; // "✔ "
// const SYMBOL_INFO = "<i class='icon-info-circled'></i>"; // " "
const SYMBOL_CLOCK = "<i class='icon-clock'></i>"; // "🕑 "
const SYMBOL_FILE = "<i class='icon-doc-text-inv'></i>"; // "📁"
const SYMBOL_BINDING_NAIL = "<i class='reznoricon-binding-nail'></i>"; // Nail Binding
const SYMBOL_EMPTY = "<span class='padding-left'></span>";
const FLEUR_DIVIDE = "<div class='horizontal-line'></div>";
const WIKI_LINK = "https://hollowknight.fandom.com/wiki/";