Feature In-Game Compass #27

Merged
balazs merged 11 commits from feature/in-game-compass into develop 2021-04-29 19:15:44 +02:00
Member

Compass
Added a new icon, which shows the direction to north. The direction information is coming from POV heading variable.

**Compass** Added a new icon, which shows the direction to north. The direction information is coming from POV heading variable.
balazs added 6 commits 2021-04-28 20:54:23 +02:00
balazs requested review from bence 2021-04-28 20:56:13 +02:00
bence reviewed 2021-04-29 00:43:09 +02:00
@ -857,1 +864,4 @@
Game.rewriteGoogleLink();
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";
Owner

I would give the id compass to the compass img itself so only the compass graphic would rotate. But then this line should look like this to keep the default translate of the image:

        document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)";
I would give the id `compass` to the compass `img` itself so only the compass graphic would rotate. But then this line should look like this to keep the default translate of the image: ```js document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)"; ```
bence reviewed 2021-04-29 00:45:30 +02:00
@ -62,0 +62,4 @@
<div id="navigation">
<div id="compass" class="navigationItem">
<span>
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="circleBackground" />
Owner

So I meant here that this should have the id: <img id="compass" ...

It is not a practical issue but for me it seems to be better if not the whole parent div rotates.

So I meant [here](https://gitea.e5tv.hu/esoko/mapguesser/pulls/27/files#issuecomment-201) that this should have the id: `<img id="compass" ...` It is not a practical issue but for me it seems to be better if not the whole parent div rotates.
Owner

Most of the changes comes from #26 so I would merge that first. But this new feature really looks cool, it is like our competitor :D

Most of the changes comes from #26 so I would merge that first. But this new feature really looks cool, it is like our competitor :D
balazs changed title from Features Return to Start & In-Game Compass to Feature In-Game Compass 2021-04-29 08:27:50 +02:00
balazs added 8 commits 2021-04-29 09:18:41 +02:00
balazs added 3 commits 2021-04-29 12:12:31 +02:00
balazs added 1 commit 2021-04-29 12:39:53 +02:00
clicking on compass sets the heading direction to north
All checks were successful
default-pipeline default-pipeline #144
b22f13887f
bence reviewed 2021-04-29 18:54:37 +02:00
@ -174,1 +208,4 @@
}
#navigation {
bottom: 25px;
left: 5px;
Owner

This should be 10px as in the other PR: 8f0cfd4489/public/static/css/game.css (L211) Otherwise the buttons will be very close to the left side of a mobile device.

This should be 10px as in the other PR: https://gitea.e5tv.hu/esoko/mapguesser/src/commit/8f0cfd4489f049ee7ced9fcb483bd310d084bfa8/public/static/css/game.css#L211 Otherwise the buttons will be very close to the left side of a mobile device.
Owner

Looks good, I had one more finding. But I think #26 can be merged first then the conflicts should solved and this can be also merged. Or what do you prefer, merge the both changes in this PR?

I was too slow again, I see that you merged the other one :D

~~Looks good, I had one more finding. But I think #26 can be merged first then the conflicts should solved and this can be also merged. Or what do you prefer, merge the both changes in this PR?~~ I was too slow again, I see that you merged the other one :D
balazs added 1 commit 2021-04-29 18:59:44 +02:00
increased the left margin for mobile view
All checks were successful
default-pipeline default-pipeline #150
6d3f74f911
balazs added 1 commit 2021-04-29 19:00:14 +02:00
Merge branch 'develop' into feature/in-game-compass
All checks were successful
default-pipeline default-pipeline #151
145cb5f637
bence approved these changes 2021-04-29 19:13:57 +02:00
balazs merged commit 8218883faf into develop 2021-04-29 19:15:44 +02:00
bence deleted branch feature/in-game-compass 2021-04-29 20:03:42 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: esoko/mapguesser#27
No description provided.