Different button size for mobile version

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
jimsalabim
Posts: 55
Joined: Fri Apr 21, 2017 12:51 pm

Hey guys,

my customer is asking me if I can enlarge the hotspot button size for the mobile version. They should also not have mouse over. Hopki showed me how to hide objects in the mobile version but I have no idea how to do this. Is it possible?

Thanks,
Daniel
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Daniel,
enlarge the hotspot button size for the mobile version
1. Add a logic block to the the rectangle with the icon. Use the Is Mobile trigger and change the height and width.

mobile-1.jpg
mobile-1.jpg (1.14 MiB) Viewed 15948 times

2. Change the icon dimensions from pixels to percentage so it scales when the rectangle scales

mobile-2.jpg
mobile-2.jpg (1.5 MiB) Viewed 15948 times

3. The difference between desktop and mobile

compare.jpg
compare.jpg (735.85 KiB) Viewed 15948 times

Note: the background looks like a round rectangle rather than a circle. To fix this you would use the same logic on the Rectangle Radius and increase it to something like 99.

They should also not have mouse over.
4. Add the Is Mobile trigger to the text box so nothing happens on a mobile

mobile-3.jpg
mobile-3.jpg (1.13 MiB) Viewed 15948 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
jimsalabim
Posts: 55
Joined: Fri Apr 21, 2017 12:51 pm

Thnaks so much Tony!

I tried it out but I can´t see any changes on the mobile button size. Can you see whether I did something wrong?
(sorry...its German...)
Attachments
Bildschirmfoto 2023-10-19 um 11.55.03.png
Bildschirmfoto 2023-10-19 um 11.55.03.png (161.67 KiB) Viewed 15944 times
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Daniel,

What skin are you using?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
jimsalabim
Posts: 55
Joined: Fri Apr 21, 2017 12:51 pm

I think it originally was feather box. I messed aroud with it quite a lot (attached).
The tour is here:
https://lueneburger-strasse.360.inakindergarten.de/
Attachments
Ina_Map2_Lueneburger_02.ggsk
(98.4 KiB) Downloaded 285 times
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Okay, forget the other way, here is the simple way.

1. Output

RPGT_6.png
RPGT_6.png (1.82 MiB) Viewed 15898 times

2. Select ht_info_bg and create a Scale logic block that sets the scale to 200% on mobile

2.set scale.png
2.set scale.png (804.66 KiB) Viewed 15898 times

3. If you want to have the tooltip visible create a Position logic block that offsets the tooltip by -34 on mobile

3 set offset.png
3 set offset.png (846.02 KiB) Viewed 15898 times

4. To compensate for the original scale set a Scale logic block that sets the scale to 50% on mobile

4 reverse scale.png
4 reverse scale.png (823.32 KiB) Viewed 15898 times

5. To show the tooltip on mobile modify the Alpha logic block

5.alpha.png
5.alpha.png (838.39 KiB) Viewed 15898 times
Tony
Last edited by Tony on Sun Oct 22, 2023 2:25 am, edited 1 time in total.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

For some reason I couldn't attach the skin to the other post so here it is.

feather_box_orig_mobile.ggsk
(98.94 KiB) Downloaded 357 times

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
jimsalabim
Posts: 55
Joined: Fri Apr 21, 2017 12:51 pm

Thank you so much Tony, we´re working on it to modify all skins now.

One last question:
I know how to hide an objekt only for mobile.
Would you be so kind to let me know how I do it the other way around, meaning how to change the setting that the object is ONLY visible mobile?

Thank you!!
jimsalabim
Posts: 55
Joined: Fri Apr 21, 2017 12:51 pm

Actually, I think I found out: its the same command you have showed in your scrrenshots, I just need to apply it for visablity, correct?
Post Reply