Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »wishbone« (29. Oktober 2012, 15:52)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »wishbone« (29. Oktober 2012, 16:37)
|
|
Quellcode |
1 |
<layer name="staticimage" url="flatpano1.jpg" height="100%" width="prop" enabled="false" zorder="0" devices="html5" /> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<action name="updateorientation"> if(isHTML5, copy(plugin[image1-landscape].visible, plugin[orientation].landscape); copy(plugin[image1-portrait].visible, plugin[orientation].portrait); trace(get(plugin[orientation].orientation)); , set(plugin[unknown-ui].visible, true); copy(plugin[image1-landscape].visible, false); copy(plugin[image1-portrait].visible, false); ); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<layer name="bg" url="image.jpg" align="center" enabled="false" onloaded="bg_automatic_fit_inside()" />
<events name="bg_scale" onresize="bg_automatic_fit_inside();" />
<action name="bg_automatic_fit_inside">
if(layer[bg].loaded,
div(screenaspect, stagewidth, stageheight);
div(imageaspect, layer[bg].imagewidth, layer[bg].imageheight);
if(imageaspect GT screenaspect,
set(layer[bg].width,100%); set(layer[bg].height,prop);
,
set(layer[bg].width,prop); set(layer[bg].height,100%);
);
);
</action>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<action name="automatic_fit_inside">
if(layer[%1].loaded,
div(screenaspect, stagewidth, stageheight);
div(imageaspect, layer[%1].imagewidth, layer[%1].imageheight);
if(imageaspect GT screenaspect,
set(layer[%1].width,100%); set(layer[%1].height,prop);
,
set(layer[%1].width,prop); set(layer[%1].height,100%);
);
);
</action>
|
|
|
Quellcode |
1 2 |
<layer name="bg" url="image.jpg" align="center" enabled="false" zorder="0" onloaded="automatic_fit_inside(bg);" devices="html5" /> <events name="bg" onresize="automatic_fit_inside(bg);" devices="html5" /> |
look into the vtourksin.xml - there is at top the declaration of the 'skin_scroll_window' element - there add zorder="1",the zorder still doesn't work...
|
|
Quellcode |
1 2 3 |
<!-- Skin Layout --> <layer name="skin_scroll_window" type="container" keep="true" align="leftbottom" width="100%" height="100%" x="0" y="60" y_opened="60" y_closed="-2" maskchildren="true"> |