add icon nail binding
This commit is contained in:
parent
391037be88
commit
546d4697fc
7 changed files with 62 additions and 24 deletions
36
build/app.js
36
build/app.js
|
|
@ -1796,7 +1796,14 @@ function CheckPantheon(db, sectionName, playerData) {
|
||||||
|
|
||||||
for (var entry in entries) {
|
for (var entry in entries) {
|
||||||
if (playerData[property][entry] === true) {
|
if (playerData[property][entry] === true) {
|
||||||
|
switch (entry) {
|
||||||
|
case "boundNail":
|
||||||
|
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIcon)(section, entry, "bindingNail");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, entry);
|
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconGreen)(section, entry);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, entry);
|
(0,_hk_functions_js__WEBPACK_IMPORTED_MODULE_2__.SetIconRed)(section, entry);
|
||||||
}
|
}
|
||||||
|
|
@ -6851,6 +6858,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/* harmony export */ "SetIconPartialJournal": () => (/* binding */ SetIconPartialJournal),
|
/* harmony export */ "SetIconPartialJournal": () => (/* binding */ SetIconPartialJournal),
|
||||||
/* harmony export */ "SetIconRed": () => (/* binding */ SetIconRed),
|
/* harmony export */ "SetIconRed": () => (/* binding */ SetIconRed),
|
||||||
/* harmony export */ "SetIconNone": () => (/* binding */ SetIconNone),
|
/* harmony export */ "SetIconNone": () => (/* binding */ SetIconNone),
|
||||||
|
/* harmony export */ "SetIcon": () => (/* binding */ SetIcon),
|
||||||
/* harmony export */ "ObjectLength": () => (/* binding */ ObjectLength),
|
/* harmony export */ "ObjectLength": () => (/* binding */ ObjectLength),
|
||||||
/* harmony export */ "TranslateMapName": () => (/* binding */ TranslateMapName)
|
/* harmony export */ "TranslateMapName": () => (/* binding */ TranslateMapName)
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
|
|
@ -6914,14 +6922,6 @@ function SetIconRed() {
|
||||||
var entry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
var entry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
||||||
section.entries[entry].icon = "red";
|
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)
|
* Switches global variable to no symbol (span with left padding)
|
||||||
*/
|
*/
|
||||||
|
|
@ -6932,6 +6932,17 @@ function SetIconNone() {
|
||||||
var entry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
var entry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
||||||
section.entries[entry].icon = "none";
|
section.entries[entry].icon = "none";
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Switches global variable to a chosen symbol
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function SetIcon() {
|
||||||
|
var section = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||||
|
var entry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
||||||
|
var icon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
||||||
|
section.entries[entry].icon = icon;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Checks the length of a JavaScript Object like Array.length
|
* Checks the length of a JavaScript Object like Array.length
|
||||||
* @param {object} object JavaScript Object
|
* @param {object} object JavaScript Object
|
||||||
|
|
@ -7025,6 +7036,8 @@ var SYMBOL_CLOCK = "<i class='icon-clock'></i>"; // "🕑 "
|
||||||
|
|
||||||
var SYMBOL_FILE = "<i class='icon-doc-text-inv'></i>"; // "📁"
|
var SYMBOL_FILE = "<i class='icon-doc-text-inv'></i>"; // "📁"
|
||||||
|
|
||||||
|
var SYMBOL_BINDING_NAIL = "<i class='reznoricon-binding-nail'></i>"; // Nail Binding
|
||||||
|
|
||||||
var SYMBOL_EMPTY = "<span class='padding-left'></span>";
|
var SYMBOL_EMPTY = "<span class='padding-left'></span>";
|
||||||
var FLEUR_DIVIDE = "<div class='horizontal-line'></div>";
|
var FLEUR_DIVIDE = "<div class='horizontal-line'></div>";
|
||||||
var WIKI_LINK = "https://hollowknight.fandom.com/wiki/";
|
var WIKI_LINK = "https://hollowknight.fandom.com/wiki/";
|
||||||
|
|
@ -7189,6 +7202,7 @@ function GenerateInnerHTML(db) {
|
||||||
var iconPartial = SYMBOL_PARTIAL;
|
var iconPartial = SYMBOL_PARTIAL;
|
||||||
var iconClock = SYMBOL_CLOCK;
|
var iconClock = SYMBOL_CLOCK;
|
||||||
var iconNull = SYMBOL_EMPTY;
|
var iconNull = SYMBOL_EMPTY;
|
||||||
|
var iconBindingNail = SYMBOL_BINDING_NAIL;
|
||||||
var finalHTMLFill = "";
|
var finalHTMLFill = "";
|
||||||
var textFill = "";
|
var textFill = "";
|
||||||
var Img = "";
|
var Img = "";
|
||||||
|
|
@ -7395,7 +7409,7 @@ function GenerateInnerHTML(db) {
|
||||||
textFill += SingleEntryFill(obj);
|
textFill += SingleEntryFill(obj);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* ###################### Create all other sections ##################### */
|
/* ######################### Create all other sections ################################################################## */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* ###################### Create section descriptions under each H2 title ##################### */
|
/* ###################### Create section descriptions under each H2 title ##################### */
|
||||||
|
|
@ -7440,6 +7454,10 @@ function GenerateInnerHTML(db) {
|
||||||
obj.span[0] = "<span class='spoiler-span-green'>";
|
obj.span[0] = "<span class='spoiler-span-green'>";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "bindingNail":
|
||||||
|
obj.icon = iconBindingNail;
|
||||||
|
break;
|
||||||
|
|
||||||
case "red":
|
case "red":
|
||||||
obj.icon = iconRed;
|
obj.icon = iconRed;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
||||||
[class^="reznoricon-"],
|
[class^="reznoricon-"],
|
||||||
[class*=" reznoricon-"] {
|
[class*=" reznoricon-"] {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 1.6em;
|
padding-left: 1.48em;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class^="reznoricon-"]:before,
|
[class^="reznoricon-"]:before,
|
||||||
|
|
@ -12,13 +12,16 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 1.2em;
|
width: 1.2em;
|
||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
margin-right: .2em;
|
padding: 0.1em 0 0.1em 0.1em;
|
||||||
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
margin-left: .2em;
|
content: "";
|
||||||
padding-top: 0.1em;
|
background-size: auto 100%;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reznoricon-binding-nail:before {
|
.reznoricon-binding-nail:before {
|
||||||
content: url("../img/binding-nail.png");
|
background-image: url("../img/binding-nail.png");
|
||||||
}
|
}
|
||||||
|
|
@ -1970,7 +1970,16 @@ function CheckPantheon(db, sectionName, playerData) {
|
||||||
for (let entry in entries) {
|
for (let entry in entries) {
|
||||||
|
|
||||||
if (playerData[property][entry] === true) {
|
if (playerData[property][entry] === true) {
|
||||||
|
|
||||||
|
switch(entry) {
|
||||||
|
|
||||||
|
case "boundNail":
|
||||||
|
SetIcon(section, entry, "bindingNail");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
SetIconGreen(section, entry);
|
SetIconGreen(section, entry);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
SetIconRed(section, entry);
|
SetIconRed(section, entry);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,7 @@ function GenerateInnerHTML(db) {
|
||||||
let iconPartial = SYMBOL_PARTIAL;
|
let iconPartial = SYMBOL_PARTIAL;
|
||||||
let iconClock = SYMBOL_CLOCK;
|
let iconClock = SYMBOL_CLOCK;
|
||||||
let iconNull = SYMBOL_EMPTY;
|
let iconNull = SYMBOL_EMPTY;
|
||||||
|
let iconBindingNail = SYMBOL_BINDING_NAIL;
|
||||||
|
|
||||||
let finalHTMLFill = "";
|
let finalHTMLFill = "";
|
||||||
let textFill = "";
|
let textFill = "";
|
||||||
|
|
@ -457,7 +458,7 @@ function GenerateInnerHTML(db) {
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* ###################### Create all other sections ##################### */
|
/* ######################### Create all other sections ################################################################## */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
|
@ -507,6 +508,10 @@ function GenerateInnerHTML(db) {
|
||||||
obj.span[0] = "<span class='spoiler-span-green'>";
|
obj.span[0] = "<span class='spoiler-span-green'>";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "bindingNail":
|
||||||
|
obj.icon = iconBindingNail;
|
||||||
|
break;
|
||||||
|
|
||||||
case "red":
|
case "red":
|
||||||
obj.icon = iconRed;
|
obj.icon = iconRed;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue