Sie sind nicht angemeldet.

1

Dienstag, 10. März 2020, 19:18

Scale of layers according to diplay size

Hi guys! Explain me please how to make the scale of marked layers correct. To see them on mobile display like on pc display. layers in mobile to big and overlap each other. thanks

Sergey74

Fortgeschrittener

Beiträge: 193

Wohnort: Russia, Chelyabinsk

Beruf: professional noob

  • Nachricht senden

2

Dienstag, 10. März 2020, 19:43

Different sizes can be set for different devices. https://krpano.com/docu/xml/#devicechecksforattributes
translation difficulties *huh*

3

Mittwoch, 11. März 2020, 12:59

Different sizes can be set for different devices. https://krpano.com/docu/xml/#devicechecksforattributes
yeah! it works. thank you! but now new problem was appered. mapspots and "+" "-" lost their position in mobile. i have no idea how to correct it.

Quellcode

1
2
3
	<layer name="maps" keep="true" state="closed" type="container" bgcolor="0x000000" bgalpha="0" align="leftbottom" scalechildren="true"  width="825" height="625" x="0" y="0"> 

		<layer name="map_1" url="images/map_ext_e.png" keep="true" align="leftbottom" x="0" y="0" scale.normal="1" scale.mobile="0.5" visible="false" handcursor="false">  <layer name="mapspot_1_6" style="mapspot|tooltip" x="198" y="60" zorder="8"  onclick="closeMap(map_1); wait(0.5); loadscene(scene__DSC4617-HDR_Panorama1, null, MERGE, BLEND(1));"/></layer></layer> <plugin name="plus"  keep="true" url="images/plus.png" align="lefttop" scale.mobile="0.5" x="20" y="65" alpha="0.6" onover="tween(alpha, 0.9)" onout="tween(alpha, 0.6)" ondown="set(fov_moveforce,-1);"  onup="set(fov_moveforce,0);" />  <plugin name="minus"  keep="true" url="images/minus.png" align="lefttop" scale.mobile="0.5" x="20" y="105" alpha="0.6" onover="tween(alpha, 0.9)" onout="tween(alpha, 0.6)" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />

4

Mittwoch, 11. März 2020, 14:38

Hi try to put scalechildren ="true" If the points belong to this layer