Skip to content

Commit

Permalink
Adjust maptip for single player
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque committed Jan 16, 2024
1 parent 46710d9 commit 5234e9f
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions index.twee
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,9 @@ $(document).one(":passagedisplay", function() {
map.setPaintProperty( location.id, 'fill-color', '#9CF299');

map.on('click', location.id, (e) => {
State.variables.enteredLocations.push(location.id);
State.variables.enteredLocations.push(location.id);
$.wiki('<<set $hotspot to $hotspot + 1>>');
if (State.variables.isStoryteller) {
if (State.variables.isStoryteller) {
$.wiki('<<goto "hotspot.splash">>');
} else {
$.wiki('<<goto "hotspot.frequence">>');
Expand Down Expand Up @@ -836,18 +836,28 @@ $(document).one(":passagedisplay", function() {
<div class="btn-group">
<<if $showMaptip>>
<span id="mapTip">
<h2><<txt>></h2>
<<button "OK">>
<<replace "#mapTip">>
<h2><<txt>></h2>
<<button "OK">>
<<replace "#mapTip">>
<h2><<txt>></h2>
<</replace>>
<</button>>
<</replace>>
<<set $showMaptip to false>>
<</button>>
<<if $playerCount === 1>>
<h2><<txt 2>></h2>
<<button "OK">>
<<replace "#mapTip">>
<h2><<txt 3>></h2>
<</replace>>
<<set $showMaptip to false>>
<</button>>
<<else>>
<h2><<txt>></h2>
<<button "OK">>
<<replace "#mapTip">>
<h2><<txt>></h2>
<<button "OK">>
<<replace "#mapTip">>
<h2><<txt>></h2>
<</replace>>
<</button>>
<</replace>>
<<set $showMaptip to false>>
<</button>>
<</if>>
</span>
<<else>>
<<button "?">>
Expand Down Expand Up @@ -2134,7 +2144,7 @@ border: 2px solid var(--secondary-color);
}

/* Macht den Geolocate-Button unsichtbar */
.mapboxgl-ctrl-group button.mapboxgl-ctrl-geolocate {
.mapboxgl-ctrl-group button.mapboxgl-ctrl-geolocate ,.mapboxgl-ctrl-bottom-right{
display: none;
}

Expand Down

0 comments on commit 5234e9f

Please sign in to comment.