Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon on Map tab #5

Closed
hodlinn opened this issue Aug 13, 2020 · 1 comment
Closed

Icon on Map tab #5

hodlinn opened this issue Aug 13, 2020 · 1 comment

Comments

@hodlinn
Copy link

hodlinn commented Aug 13, 2020

I was able to work everything fine but when opened, the coins on the navigation map still that of Spheroid even after all was changed. @SpheroidUniverse

@SpheroidUniverse
Copy link
Owner

We've solved this in the latest version of XRHub.

We've added the "icon" parameter to the "MapMarker" constructor which allows you to control the coin appearance on the map. Here is an example use case:

val marker = MapMarker(location = coin.location, icon = mapIcon)

We've also updated the Quickstart tutorial and its source code.

Please, follow these steps to upgrade your app:

  • update XRHub to the latest version 5.0.2 on your mobile phone
  • download the latest source code of the CoinQuest example
  • replace the old "Client.spheroid" file in your app by the new one from the latest source code
  • reupload all files from the "asses" folder to your app
  • note, that in the "Client.spheroid" file we've added "notificationIcon" and "mapIcon" variables in the lines 4 and 6
  • note, that in the "assets" folder we've added "map_icon_gold.png" and "notification_icon_gold.png" representing the appearance of the coins on the map and in the popup notification

Thanks for the feedback and please let us know if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants