Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Samstag, 18. Juli 2020, 12:22

Changing skins

I have tried to change skin to the new different skins available in the skinfolder like for example
<include url="skin/vtourskin_design_117round.xml" />

As far as I understand you should only change the include url.

But none of the XML I have in my skin folder works.
I actually just get no skin at all when I change it.

When I look at the alternative skin.xmls they are not at all real skins but only have a couple of actions-

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

2

Samstag, 18. Juli 2020, 13:09

Ok I found out.
But really it needs more information than what the tour.xml says to do it.

!. you should keep the standard skin.
Just ad the new include below it.

2. Remove all the settings under design (in tour.xml) except the png which you need to change to the light version for the light designs.


design_skin_images="vtourskin_light.png"
design_bgcolor="0x2D3E50"
design_bgalpha="0.8"
design_bgborder="0"
design_bgroundedge="1"
design_bgshadow="0 4 10 0x000000 0.3"
design_thumbborder_bgborder="3 0xFFFFFF 1.0"
design_thumbborder_padding="2"
design_thumbborder_bgroundedge="0"
design_text_css="color:#FFFFFF; font-family:Arial;"
design_text_shadow="1"


/>

<!--
For an alternative skin design either change the <skin_settings> values
from above or optionally include one of the predefined designs from below.
-->
<!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_glass.xml" /> -->
<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_117.xml" /> -->
<!-- <include url="skin/vtourskin_design_117round.xml" /> -->
<!-- <include url="skin/vtourskin_design_black.xml" /> -->

3

Samstag, 18. Juli 2020, 14:06

#2 is not necessary, the skin includes work by overwriting existing xml
including the skin AFTER the skin_settings definition will overwrite the relevant skin_settings

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

4

Samstag, 18. Juli 2020, 14:10

including the skin AFTER the skin_settings definition,
will overwrite the relevant skin_settings


Well thats not what it says. Would be nice to know.
Do you really beleave that the average KRpano user knows that?

I feel pretty advanced after 10 years using it.

5

Samstag, 18. Juli 2020, 18:46

its one concept to understand...
by including an xml the source gets included at the position of the include tag
in the end all nested files / includes result in a final xml
this gets parsed and what is defined later overwrites whats defined earlier

the skin_settings in your tour.xml for example
is an overwrite of the skin_settings defined in vtourskin.xml

all of this happens by merging, so you dont have to redefine everything
just <skin_settings design_bgroundedge="5" /> is be enough to change the attribute

Ähnliche Themen