left-aligned font in polygon hotspot

Q&A about the latest versions
Post Reply
wiso
Posts: 281
Joined: Wed Oct 26, 2016 6:52 pm

i have the following problem. all fonts should be made left-aligned. i did this work years ago can't remember exactly how i defined these fields but can't find a link from the polygon to a container or similar. how can i make the text in all polygons left-aligned in the easiest way?everything else (font, size etc) can stay as is.

thx,
wiso
K1600_schrift1.JPG
K1600_schrift1.JPG (51.57 KiB) Viewed 20744 times
K1600_schrift2.jpg.JPG
K1600_schrift2.jpg.JPG (58.6 KiB) Viewed 20744 times
User avatar
Hopki
Gnome
Posts: 13019
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi wiso,
If you use a floating tooltip, so using a text box in the skin that tracks the mouse pointer, then you have all the attributes of the skin text box.
Including left aligned.
Please see the attached project.
Regards,
Attachments
tooltip.zip
(13.81 KiB) Downloaded 334 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
wiso
Posts: 281
Joined: Wed Oct 26, 2016 6:52 pm

thank you, now you have helped me along. especially with the writing of the hotspotproxy id #Poly.*

(the "*" I understand, but why the "." and why the "#" sign)

thx,
wiso
User avatar
3DV
Posts: 146
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

As I understand, the # refers to the ID of an element in the panorama, not in the skin.
The .* part is a RegEx expression: . (period) matches any single character except for a newline. * (asterisk) is a quantifier that means "zero or more occurrences of the preceding character or group".
Ruud van Reenen
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Pico and Cardboard VR headsets
wiso
Posts: 281
Joined: Wed Oct 26, 2016 6:52 pm

thx!
wiso
Posts: 281
Joined: Wed Oct 26, 2016 6:52 pm

hello hopki,
i used your approach. it works to some extent. i still have to get the textbox under the pointer, but i can do it. i will also find out why the old textbox is still there and why i have two boxes. but what really puzzles me is that i have too much space between the top and bottom of the textboxes. i don't know why, but it's not because of the "inside space" which i have already set to 0 for top/bottom (minus doesn't work). it also doesn't matter whether the vertical alignment is in the middle or at the top. the space is too big.
oldnew.png
oldnew.png (458.83 KiB) Viewed 20700 times
spacing.ggsk - Skin Editor.png
spacing.ggsk - Skin Editor.png (18.13 KiB) Viewed 20700 times
wiso
Posts: 281
Joined: Wed Oct 26, 2016 6:52 pm

think i found a solution, or a workaround.

i define a css class and apply ise directly in the text field.
this is ok for a manageable amount of text fields.
but i can't get rid of the margins/spacing at the top of the box to the text?!
neu.png
neu.png (165.81 KiB) Viewed 20690 times
neu2.png
neu2.png (7.88 KiB) Viewed 20690 times
neu3.png
neu3.png (17.37 KiB) Viewed 20690 times
User avatar
Hopki
Gnome
Posts: 13019
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Wiso,
To turn off the system tool tips you need to deselect them in the Web output properties

Screenshot 2023-04-19 at 13.32.57.png
Screenshot 2023-04-19 at 13.32.57.png (73.8 KiB) Viewed 20687 times

For the space around the text, that would be the padding which is adjusted in the text box properties:

Screenshot 2023-04-19 at 13.37.04.png
Screenshot 2023-04-19 at 13.37.04.png (27.21 KiB) Viewed 20687 times

Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply