Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

1

Samstag, 21. März 2015, 18:52

BGBORDER problem

Hi,

i was trying and playing with the bgborder of a container.

when i like to change the bgborder it took me some time to find out that when you set it, it is like this:
bgborder="10,5,10,5 0xff0000 1"

but when you want to change it, you should leave the comma's out
like:
set(layer[test].bgborder, 20 20 20 20 0xffffff 1);

so i made an example to test it but it is not working good i think. Maybe i do something wrong..
http://www.virtualtuur.com/krpano/bgborder/
click the yellow button to switch

so the first change is ok but the change back skips the color change of the border.

i also tried:
switch(layer[test].bgborder, 20 20 20 20 0xffffff 1, 10 5 10 5 0xff0000 1); <=== DOESN'T WORK
switch(layer[test].bgroundedge, 200, 20);

roundedge works ok, border not.

xml http://www.virtualtuur.com/krpano/bgborder/tour.xml

*question*

EDIT: example changed after answer Klaus

Tuur *thumbsup*

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Tuur« (22. März 2015, 08:29)


2

Sonntag, 22. März 2015, 08:19

Hi,

you need to use 'quotes' to escape the ',' characters - e.g.

Quellcode

1
set(layer[test].bgborder, '10,5,10,5 0xff0000 1');


See also here:
http://krpano.com/docu/actions/#syntaxandusage

Zitat

To be able to use white-spaces and commas in a parameter, the parameter must be enclosed by
single ' or double quotes ".


Best regards,
Klaus

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Sonntag, 22. März 2015, 08:25

*wacko*
*whistling*

of course..Thanks!
I could have think about that myself.. haha
Tuur *thumbsup*