Different text and images for each entry in the "Game Status" section
This commit is contained in:
parent
00edbd9ea3
commit
7730b5a3d0
4 changed files with 34 additions and 3 deletions
19
build/app.js
19
build/app.js
|
|
@ -2478,6 +2478,7 @@ var HK = {
|
||||||
maxPercent: 112,
|
maxPercent: 112,
|
||||||
entries: {
|
entries: {
|
||||||
timePlayed: {
|
timePlayed: {
|
||||||
|
id: "timePlayed",
|
||||||
icon: "clock",
|
icon: "clock",
|
||||||
name: "Time Played:",
|
name: "Time Played:",
|
||||||
spoiler: "0 h 0 min 0 sec",
|
spoiler: "0 h 0 min 0 sec",
|
||||||
|
|
@ -2486,35 +2487,41 @@ var HK = {
|
||||||
timeS: 0
|
timeS: 0
|
||||||
},
|
},
|
||||||
gameCompletion: {
|
gameCompletion: {
|
||||||
|
id: "gameCompletion",
|
||||||
icon: "red",
|
icon: "red",
|
||||||
name: "Game Completion:",
|
name: "Game Completion:",
|
||||||
spoiler: 0,
|
spoiler: 0,
|
||||||
spoilerAfter: "(out of 112 %)"
|
spoilerAfter: "(out of 112 %)"
|
||||||
},
|
},
|
||||||
saveVersion: {
|
saveVersion: {
|
||||||
|
id: "saveVersion",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Save Version:",
|
name: "Save Version:",
|
||||||
spoiler: "0.0.0.0"
|
spoiler: "0.0.0.0"
|
||||||
},
|
},
|
||||||
health: {
|
health: {
|
||||||
|
id: "health",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Health:",
|
name: "Health:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
masks: 5
|
masks: 5
|
||||||
},
|
},
|
||||||
soul: {
|
soul: {
|
||||||
|
id: "soul",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Soul:",
|
name: "Soul:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
amount: 99
|
amount: 99
|
||||||
},
|
},
|
||||||
notches: {
|
notches: {
|
||||||
|
id: "notches",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Notches:",
|
name: "Notches:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
amount: 3
|
amount: 3
|
||||||
},
|
},
|
||||||
geo: {
|
geo: {
|
||||||
|
id: "geo",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Geo:",
|
name: "Geo:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
|
|
@ -5027,7 +5034,17 @@ function SingleEntryFill(section, entry) {
|
||||||
case "intro":
|
case "intro":
|
||||||
b = ["", ""];
|
b = ["", ""];
|
||||||
span = ["<b>", "</b>"];
|
span = ["<b>", "</b>"];
|
||||||
if (entry.name === "Game Completion:") textSuffix = "".concat(entry.spoiler, " %");
|
/* Different text and images for each entry in the "Game Status" section */
|
||||||
|
|
||||||
|
switch (entry.id) {
|
||||||
|
case "gameCompletion":
|
||||||
|
textSuffix = "".concat(entry.spoiler, " %");
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
/* Optimized only for the "intro" section! */
|
||||||
|
|
||||||
|
|
||||||
if (entry.hasOwnProperty("spoilerAfter")) {
|
if (entry.hasOwnProperty("spoilerAfter")) {
|
||||||
spoilerAfter = "</b> ".concat(entry.spoilerAfter);
|
spoilerAfter = "</b> ".concat(entry.spoilerAfter);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -16,6 +16,7 @@ const HK = {
|
||||||
maxPercent: 112,
|
maxPercent: 112,
|
||||||
entries: {
|
entries: {
|
||||||
timePlayed: {
|
timePlayed: {
|
||||||
|
id: "timePlayed",
|
||||||
icon: "clock",
|
icon: "clock",
|
||||||
name: "Time Played:",
|
name: "Time Played:",
|
||||||
spoiler: "0 h 0 min 0 sec",
|
spoiler: "0 h 0 min 0 sec",
|
||||||
|
|
@ -24,35 +25,41 @@ const HK = {
|
||||||
timeS: 0,
|
timeS: 0,
|
||||||
},
|
},
|
||||||
gameCompletion: {
|
gameCompletion: {
|
||||||
|
id: "gameCompletion",
|
||||||
icon: "red",
|
icon: "red",
|
||||||
name: "Game Completion:",
|
name: "Game Completion:",
|
||||||
spoiler: 0,
|
spoiler: 0,
|
||||||
spoilerAfter: "(out of 112 %)",
|
spoilerAfter: "(out of 112 %)",
|
||||||
},
|
},
|
||||||
saveVersion: {
|
saveVersion: {
|
||||||
|
id: "saveVersion",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Save Version:",
|
name: "Save Version:",
|
||||||
spoiler: "0.0.0.0"
|
spoiler: "0.0.0.0"
|
||||||
},
|
},
|
||||||
health: {
|
health: {
|
||||||
|
id: "health",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Health:",
|
name: "Health:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
masks: 5
|
masks: 5
|
||||||
},
|
},
|
||||||
soul: {
|
soul: {
|
||||||
|
id: "soul",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Soul:",
|
name: "Soul:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
amount: 99
|
amount: 99
|
||||||
},
|
},
|
||||||
notches: {
|
notches: {
|
||||||
|
id: "notches",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Notches:",
|
name: "Notches:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
amount: 3
|
amount: 3
|
||||||
},
|
},
|
||||||
geo: {
|
geo: {
|
||||||
|
id: "geo",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
name: "Geo:",
|
name: "Geo:",
|
||||||
spoiler: "",
|
spoiler: "",
|
||||||
|
|
|
||||||
|
|
@ -327,7 +327,14 @@ function SingleEntryFill(section, entry) {
|
||||||
b = ["", ""];
|
b = ["", ""];
|
||||||
span = ["<b>", "</b>"];
|
span = ["<b>", "</b>"];
|
||||||
|
|
||||||
if (entry.name === "Game Completion:") textSuffix = `${entry.spoiler} %`;
|
/* Different text and images for each entry in the "Game Status" section */
|
||||||
|
switch (entry.id) {
|
||||||
|
case "gameCompletion":
|
||||||
|
textSuffix = `${entry.spoiler} %`;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
|
||||||
/* Optimized only for the "intro" section! */
|
/* Optimized only for the "intro" section! */
|
||||||
if (entry.hasOwnProperty("spoilerAfter")) {
|
if (entry.hasOwnProperty("spoilerAfter")) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue