You are not logged in.

1

Friday, February 4th 2022, 6:30pm

Documentation

Hi, I'm returning to the community after many years away. I'm working on updating a website comprised 100% with krpano. Wow, lots has changed. Well done Klaus!

Looking at this documentation (https://krpano.com/docu/xml/#top), I don't see the skin_settings element listed in the clickable krpano XML structure. Where is the documentation for skin_settings?

Thank you!

2

Friday, February 4th 2022, 7:24pm

Hi,

the <skin_settings> element is not a part of the viewer.
It is a custom xml structure defined in the vtourskin.xml and evaluated by the elements and actions defined there.

Best regards,
Klaus

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Saturday, February 5th 2022, 4:52pm

Hi godrifle,

I made a quick simple example for you.
https://www.virtualtuur.com/krpano/120/h…ml_structure/1/
xml
https://www.virtualtuur.com/krpano/120/h…ture/1/tour.xml

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    <fruit
           strawberry="0xff0000"
           lemon="0xffff00"
           apple="0x00ff00"
    />

        <hotspot name="spot1" 
            type="text" 
            ath="0" atv="0" 
            width="50" height="50" bgroundedge="25" 
            bgcolor="get:fruit.strawberry" 
            onover="calc(bgcolor, fruit.lemon);" 
            onout="calc(bgcolor, fruit.strawberry)" 
            onclick="calc(bgcolor, fruit.apple)" 
        />


in this case you could compare the use of <skin_settings> width <fruit>
This methode can be quite comfortable to use.

I tried to keep it simple but there is much possible this way.
You could leave for example the 0x in the fruit away (which you could also call colors) and then do calc(bgcolor, '0x'+ colors.lemon)
For texts in css you could then pick up the same but prefix with #

Hope it helps,
Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Feb 5th 2022, 5:35pm)