You are not logged in.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 120

Occupation: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Send private message

1

Wednesday, April 20th 2016, 8:05pm

style property for user xml-tag elements

I have noticed that if i define some custom xml tag, i.e.

Source code

1
2
3
<gallery
    name="gallery1"
/>


I can't use a style property for it:

Source code

1
2
3
4
<gallery
    name="gallery1"
    style="gallery_prototype"
/>


And making custom style for some kind of inheritance:

Source code

1
2
3
4
<style
    name="gallery_prototype"
    ...
/>


Don't know whether this feature is high demanded but let it be here. :)

2

Wednesday, April 20th 2016, 8:24pm

Hi,

that should already be possible - see:
http://krpano.com/docu/xml/#style

Best regards,
Klaus

a.pu

Trainee

  • "a.pu" started this thread

Posts: 120

Occupation: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Send private message

3

Wednesday, April 20th 2016, 10:35pm

Hi,

that should already be possible - see:
http://krpano.com/docu/xml/#style

Best regards,
Klaus


hmmm, i found this feature not working...
perhaps should to some more testing.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 120

Occupation: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Send private message

4

Sunday, August 21st 2016, 10:33am

Hi,

that should already be possible - see:
http://krpano.com/docu/xml/#style

Best regards,
Klaus


I got the poblem: one can not apply style to custom tag or layer that is created by action.
If it's hardcoded everything is OK.

Up. found loadstyle function. :)

This post has been edited 1 times, last edit by "a.pu" (Aug 21st 2016, 11:53am)


5

Monday, August 22nd 2016, 7:17am

Hi,

for assigning styles (that means coping attributes from style elements to another elements) dynamically there is also the assignstyle action:
http://krpano.com/docu/actions/#assignstyle

It can be used for all elements, also custom ones (loadstyle is only a layer/hotspot action).

Best regards,
Klaus