|
|
Source code |
1 |
<element attributes ... /> |
|
|
Source code |
1 2 |
<element attributes ...> </element> |
|
|
Source code |
1 2 3 |
<element attributes ...> <childelement attributes /> </element> |
|
|
Source code |
1 2 3 |
<layer ...> ... </layer> |
|
|
Source code |
1 |
<layer ... /> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<layer name="skin_scroll_window" type="container" keep="true" align="leftbottom" width="100%" height="100%" x="0" y="60" y_shown="60" y_hidden="-2" maskchildren="true"> <layer name="skin_scroll_layer" type="container" align="leftbottom" width="100%" height="100%" x="0" y="-100%"> <layer name="skin_topborder" url="vtourskin.png" crop="2|0|60|12" align="topleft" edge="bottomleft" width="100%" height="12" x="0" y="0" enabled="false" /> <layer name="skin_title" url="%SWFPATH%/plugins/textfield.swf" align="lefttop" edge="leftbottom" width="95%" height="32" autoheight="true" x="5" y="-3" zorder="4" enabled="false" background="false" border="false" css="text-align:left; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;" textshadow="1" visible="false" /> <layer name="skin_scroll_container" type="container" bgcolor="0x000000" bgalpha="0.5" align="lefttop" width="100%" height="100%" x="0" y="0" maskchildren="true"> <layer name="skin_thumbs" state="hidden" url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js" direction="h" visible="false" align="top" width="100%" height="100" onloaded="skin_updatescroll();" /> <layer name="skin_map" state="hidden" url="" flash_url="%SWFPATH%/plugins/bingmaps.swf" html5_url="%SWFPATH%/plugins/bingmaps.js" visible="false" align="lefttop" width="100%" height="50%" x="0" y="0" zorder="1" lat="" lng="" zoom="12" bgalpha="0" maptype="satellite" onmapready="skin_addmapspots();"> <maptypecontrol visible="true" align="righttop" x="5" y="5" buttonalign="v" /> <spotstyle name="DEFAULT" url="vtourskin_mapspot.png" activeurl="vtourskin_mapspotactive.png" edge="bottom" x="-5" y="-8" scale="0.5" /> <layer name="skin_map_androidzoom_in" url="vtourskin.png" effect="glow(0,0.5);" crop="9|512|46|64" align="right" x="0" y="-40" zorder="2" ondown="layer[skin_map].zoomin(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> <layer name="skin_map_androidzoom_out" url="vtourskin.png" effect="glow(0,0.5);" crop="73|512|46|64" align="right" x="0" y="+40" zorder="2" ondown="layer[skin_map].zoomout(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> </layer> </layer> </layer> </layer> |
This post has been edited 4 times, last edit by "HansNyb" (Sep 22nd 2012, 12:39pm)
|
|
Source code |
1 2 3 4 5 6 |
<layer name="skin_map" state="hidden" url="" flash_url="%SWFPATH%/plugins/bingmaps.swf" html5_url="%SWFPATH%/plugins/bingmaps.js" visible="false" align="lefttop" width="100%" height="50%" x="0" y="0" zorder="1" lat="" lng="" zoom="12" bgalpha="0" maptype="satellite" onmapready="skin_addmapspots();"> <maptypecontrol visible="true" align="righttop" x="5" y="5" buttonalign="v" /> <spotstyle name="DEFAULT" url="vtourskin_mapspot.png" activeurl="vtourskin_mapspotactive.png" edge="bottom" x="-5" y="-8" scale="0.5" /> <layer name="skin_map_androidzoom_in" url="vtourskin.png" effect="glow(0,0.5);" crop="9|512|46|64" align="right" x="0" y="-40" zorder="2" ondown="layer[skin_map].zoomin(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> <layer name="skin_map_androidzoom_out" url="vtourskin.png" effect="glow(0,0.5);" crop="73|512|46|64" align="right" x="0" y="+40" zorder="2" ondown="layer[skin_map].zoomout(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> </layer> |
|
|
Source code |
1 2 3 4 5 |
<plugin name="skin_map" state="hidden" url="" flash_url="%SWFPATH%/plugins/bingmaps.swf" html5_url="%SWFPATH%/plugins/bingmaps.js" visible="false" align="lefttop" width="100%" height="50%" x="0" y="0" zorder="1" lat="" lng="" zoom="12" bgalpha="0" maptype="satellite" onmapready="skin_addmapspots();"> <maptypecontrol parent="skin_map" visible="true" align="righttop" x="5" y="5" buttonalign="v" /> <spotstyle name="DEFAULT" url="vtourskin_mapspot.png" activeurl="vtourskin_mapspotactive.png" edge="bottom" x="-5" y="-8" scale="0.5" /> <plugin name="skin_map_androidzoom_in" parent="skin_map" url="vtourskin.png" effect="glow(0,0.5);" crop="9|512|46|64" align="right" x="0" y="-40" zorder="2" ondown="layer[skin_map].zoomin(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> <plugin name="skin_map_androidzoom_out" parent="skin_map" url="vtourskin.png" effect="glow(0,0.5);" crop="73|512|46|64" align="right" x="0" y="+40" zorder="2" ondown="layer[skin_map].zoomout(); skin_buttonglow(get(name));" onup="skin_buttonglow(null);" devices="Android+Tablet+Flash" /> |
Sorry Sacha but now you are talking in riddles. Indention means space,
.......may be used for what looks like a space in front of this line.
What does that have to do with the 4 layer endtags which seems to have no real reference to anything above them.
I can see now that if I count the numbers without end tag above them it make sense but it is confusing as you have a mix of layers with and without endtags.
As far as I understand it is layers within layers which is not a good way I think.
I can see that it makes sence in some of the layers later in the skin.
Its the same as what I said about the container for maps and thumbs are mixed together instead of making them separate. It is very confusing and makes it difficult to edit them. Also the idea with children that have no parent tag is confusing.
When you are doing codes for Photographers of which 90% have no idea of what is going on in the xml you have to do things much simpler.
As someone said on the Facebook Panoramic Photographers . Coders has ha different brain then most of us photographers have. They can do great things with coding but have very difficult to see how difficult it is for most of us to understand it.
Hans
That's more a 'trick', <krpano> xml elements were ignored when mapping the xml structure to the working data structure.
Quoted
Another thing I found in the skin.- Klaus uses a <Krpano> </krpano> division within the xml that actually starts and ends with <krpano>
|
|
Source code |
1 2 3 4 5 6 7 |
<krpano xyz="123">
<abc xyz="123" />
<krpano fgh="123" />
<stuff>
<node name="n1" val="123" />
</stuff>
</krpano>
|
|
|
Source code |
1 2 3 4 |
xyz=123 abc.xyz=123 fgh=123 stuff.node[n1].val=123 |