Skip to content

Commit

Permalink
Update map and inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
gparant committed Aug 22, 2024
1 parent 0675941 commit ef5934f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/shaka-contest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ abstract class Enigme{
WA.player.state.saveVariable(this.key, true);
}
onEnter(){
WA.controls.disablePlayerControls();
discussion.openDiscussionWebsite(this.key, () => {
this.resolve();
this.onLeave();
});
}
onLeave(){
discussion.closeDiscussionWebsite();
WA.controls.restorePlayerControls();
}
}

Expand Down
6 changes: 3 additions & 3 deletions views/inventory/inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
<div id="inventoryContent" class="d-flex align-items-center justify-content-center">
<div class="inventoryItem">
<img id="treasureEnigma-ko" src="./avatar.webp" alt="Treasure Enigma Avatar" />
<img id="treasureEnigma-ok" src="../treasureEnigma/avatar.webp" alt="Treasure Enigma Avatar" style="display: none;" />
<img id="treasureEnigma-ok" src="../treasureEnigma/avatar.webp" alt="Treasure Enigma Avatar" style="display: none; border: solid 4px yellow;" />
</div>
<div class="inventoryItem">
<img id="surfEnigma-ko" src="./avatar.webp" alt="Surf Enigma Avatar" />
<img id="surfEnigma-ok" src="../surfEnigma/avatar.webp" alt="Surf Enigma Avatar" style="display: none;" />
<img id="surfEnigma-ok" src="../surfEnigma/avatar.webp" alt="Surf Enigma Avatar" style="display: none; border: solid 4px yellow;" />
</div>
<div class="inventoryItem">
<img id="waveEnigma-ko" src="./avatar.webp" alt="Wave Enigma Avatar" />
<img id="waveEnigma-ok" src="../waveEnigma/avatar.webp" alt="Wave Enigma Avatar" style="display: none;" />
<img id="waveEnigma-ok" src="../waveEnigma/avatar.webp" alt="Wave Enigma Avatar" style="display: none; border: solid 4px yellow;" />
</div>
</div>
</main>
Expand Down

0 comments on commit ef5934f

Please sign in to comment.