display only one (current) hint
This commit is contained in:
parent
3dda2bfd6e
commit
e08d91d495
4 changed files with 22 additions and 5 deletions
13
build/app.js
13
build/app.js
|
|
@ -2524,6 +2524,7 @@ var HK = {
|
||||||
hints: {
|
hints: {
|
||||||
h2: "My friend Elderbug once told me about...",
|
h2: "My friend Elderbug once told me about...",
|
||||||
id: "hk-hints",
|
id: "hk-hints",
|
||||||
|
current: "fireballLevel",
|
||||||
entries: {
|
entries: {
|
||||||
fireballLevel: {
|
fireballLevel: {
|
||||||
spoiler: "...a mysterious shaman living in a dwelling below the town of Dirtmouth"
|
spoiler: "...a mysterious shaman living in a dwelling below the town of Dirtmouth"
|
||||||
|
|
@ -4890,8 +4891,16 @@ function GenerateInnerHTML(sections) {
|
||||||
textFill += CompletionFill(sections[section]);
|
textFill += CompletionFill(sections[section]);
|
||||||
/* create all main entries */
|
/* create all main entries */
|
||||||
|
|
||||||
for (var entry in entries) {
|
switch (section) {
|
||||||
textFill += SingleEntryFill(section, entries[entry]);
|
case "hints":
|
||||||
|
textFill += SingleEntryFill(section, entries[sections[section].current]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
for (var entry in entries) {
|
||||||
|
textFill += SingleEntryFill(section, entries[entry]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/* Cumulate all section texts into one variable for final HTML filling. End section div tag */
|
/* Cumulate all section texts into one variable for final HTML filling. End section div tag */
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -65,6 +65,7 @@ const HK = {
|
||||||
hints: {
|
hints: {
|
||||||
h2: "My friend Elderbug once told me about...",
|
h2: "My friend Elderbug once told me about...",
|
||||||
id: "hk-hints",
|
id: "hk-hints",
|
||||||
|
current: "fireballLevel",
|
||||||
entries: {
|
entries: {
|
||||||
fireballLevel: {
|
fireballLevel: {
|
||||||
spoiler: "...a mysterious shaman living in a dwelling below the town of Dirtmouth"
|
spoiler: "...a mysterious shaman living in a dwelling below the town of Dirtmouth"
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,15 @@ function GenerateInnerHTML(sections) {
|
||||||
textFill += CompletionFill(sections[section]);
|
textFill += CompletionFill(sections[section]);
|
||||||
|
|
||||||
/* create all main entries */
|
/* create all main entries */
|
||||||
for (let entry in entries) {
|
switch (section) {
|
||||||
textFill += SingleEntryFill(section, entries[entry]);
|
case "hints":
|
||||||
|
textFill += SingleEntryFill(section, entries[sections[section].current]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
for (let entry in entries) {
|
||||||
|
textFill += SingleEntryFill(section, entries[entry]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cumulate all section texts into one variable for final HTML filling. End section div tag */
|
/* Cumulate all section texts into one variable for final HTML filling. End section div tag */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue