add icon nail binding

This commit is contained in:
ReznoRMichael 2021-08-05 00:16:13 +02:00
commit 546d4697fc
7 changed files with 61 additions and 23 deletions

View file

@ -1,7 +1,7 @@
[class^="reznoricon-"],
[class*=" reznoricon-"] {
position: relative;
padding-left: 1.6em;
padding-left: 1.48em;
}
[class^="reznoricon-"]:before,
@ -12,13 +12,16 @@
top: 0;
width: 1.2em;
height: 1.2em;
margin-right: .2em;
padding: 0.1em 0 0.1em 0.1em;
margin: 0;
text-align: center;
line-height: 0;
margin-left: .2em;
padding-top: 0.1em;
content: "";
background-size: auto 100%;
background-position: center;
background-repeat: no-repeat;
}
.reznoricon-binding-nail:before {
content: url("../img/binding-nail.png");
background-image: url("../img/binding-nail.png");
}

View file

@ -1970,7 +1970,16 @@ function CheckPantheon(db, sectionName, playerData) {
for (let entry in entries) {
if (playerData[property][entry] === true) {
SetIconGreen(section, entry);
switch(entry) {
case "boundNail":
SetIcon(section, entry, "bindingNail");
break;
default:
SetIconGreen(section, entry);
}
} else {
SetIconRed(section, entry);
}

View file

@ -208,6 +208,7 @@ function GenerateInnerHTML(db) {
let iconPartial = SYMBOL_PARTIAL;
let iconClock = SYMBOL_CLOCK;
let iconNull = SYMBOL_EMPTY;
let iconBindingNail = SYMBOL_BINDING_NAIL;
let finalHTMLFill = "";
let textFill = "";
@ -457,7 +458,7 @@ function GenerateInnerHTML(db) {
break;
/* ###################### Create all other sections ##################### */
/* ######################### Create all other sections ################################################################## */
default:
@ -507,6 +508,10 @@ function GenerateInnerHTML(db) {
obj.span[0] = "<span class='spoiler-span-green'>";
break;
case "bindingNail":
obj.icon = iconBindingNail;
break;
case "red":
obj.icon = iconRed;
break;