Beiträge von takacsi

    Hi,

    First of all Karlo thanks for your work!

    I used it in my project and I did some change, and I would like share it with others.

    So in my project I have multiple sound spots, now I can start the playback via parameters.
    I am not a programmer, so my code should be better, but working...

    so the sound interface xml (should be included to the main xml):sound_param.xml

    In my main xml I have this

    Code
    <action name="startup"> set(activesound, none); 	</action>




    And this is my hotspot example:

    Code
    <hotspot name="hs09_9_sound"				style="myhotspotstyle"				url="img/sound.png"				edge="lefttop"				ath="175"				atv="28"				onclick="onclickA();"				onclickA="					if( activesound !== name,						set(hotspot[get(activesound)].onclick,onclickA());					);					play_sound_1(sound1, mysound.mp3,get(name));					set(hotspot[get(name)].onclick,onclickB()); 					"				onclickB="pause_sound_1(sound1);set(hotspot[get(name)].onclick,onclickA());"										   								>	</hotspot>


    where "sound1" param should be different for every hotspot.

    You can change between the spots ( active sound will stop, onclick behavior will set back to default), volume controll will work with the active sound.
    I hope I didn't forget anything.

    Regards
    I.

    Dear all,

    I have a project what is working on desktop and android device but I have problem on iDevice (up:iDevice down: desktop)

    It is seem like a "crop" problem, but I cant find the solution. My code is based on the krpano's vtour skin xml.

    Code
    <layer name="skin_control_bar" keep="true" type="container" bgcolor="0x000000" bgalpha="0.5" align="leftbottom" width="100%" height="40" x="0" y="20" y_opened="20" y_closed="-42" zorder="3" >		<layer name="skin_btmborder"  url="vtourskin.png" crop="2|52|60|12"   align="bottomleft" edge="topleft" width="100%" height="12" x="0" y="0" enabled="false" />		<layer name="skin_btn_prev"   url="vtourskin.png" crop="0|64|64|64"   align="left"        x="5"    y="0"   scale="0.5" alpha="0.5" onclick="skin_nextscene(-1);" ondown="skin_buttonglow(get(name));" onup="skin_buttonglow(null);" />		<layer name="skin_btn_next"   url="vtourskin.png" crop="64|64|64|64"  align="right"       x="5"    y="0"   scale="0.5" alpha="0.5" onclick="skin_nextscene(+1);" ondown="skin_buttonglow(get(name));" onup="skin_buttonglow(null);" />		<layer name="skin_btn_thumbs" url="vtourskin.png" crop="0|128|64|64"  align="leftbottom"  x="50"   y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); skin_showmap(false); skin_showthumbs();" onup="skin_buttonglow(null);" />		<layer name="skin_btn_uzenet" url="text.png" crop="0|0|200|64"      align="leftbottom"  x="100"   y="7"   scale="0.45" ondown="skin_hideskin();set(plugin[uzenetbgmask].visible,true);set(plugin[uzenetbg].visible,true);set(plugin[uzenettxt].visible,true);set(plugin[uzenetx].visible,true);set(plugin[blurw].visible,true);" onup="skin_buttonglow(null);" />		<layer name="skin_btn_eletrajz" url="text.png" crop="200|0|230|64"  align="leftbottom"  x="200"   y="7"   scale="0.45" ondown="skin_hideskin();set(plugin[eletrajzbgmask].visible,true);set(plugin[eletrajzbg].visible,true);set(plugin[eletrajztxt].visible,true);set(plugin[eletrajzx].visible,true);set(plugin[blurw].visible,true);" onup="skin_buttonglow(null);" />		<layer name="skin_btn_c" url="text.png" crop="449|0|200|65"  align="leftbottom"  x="310"   y="4"   scale="0.5" ondown="skin_hideskin();set(plugin[copybgmask].visible,true);set(plugin[copybg].visible,true);set(plugin[copytxt].visible,true);set(plugin[copyx].visible,true); set(plugin[blurw].visible,true);" onup="skin_buttonglow(null);" />		<layer name="skin_btn_map"    url="vtourskin.png" crop="64|128|64|64" align="leftbottom"  x="90"   y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); skin_showthumbs(false); skin_showmap();" onup="skin_buttonglow(null);" visible="false" />		<layer name="skin_btn_feketegy" url="text2.png" crop="0|0|250|64"  align="center" edge="rightbottom"  x="-20"   y="-2"   scale="1" capture="false" handcursor="false" ondown="" onup="" />		<layer name="skin_btn_aranykor" url="text2.png" crop="250|0|467|64"  align="center" edge="leftbottom"  x="20"   y="0"   scale="1" capture="false" handcursor="false" ondown="" onup="" />		<layer name="skin_btn_lt"     url="vtourskin.png" crop="0|192|64|64"  align="bottom"      x="-100" y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(hlookat_moveforce,-1);" onup="skin_buttonglow(null);set(hlookat_moveforce,0);" />		<layer name="skin_btn_rt"     url="vtourskin.png" crop="64|192|64|64" align="bottom"      x="-60"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(hlookat_moveforce,+1);" onup="skin_buttonglow(null);set(hlookat_moveforce,0);" />		<layer name="skin_btn_up"     url="vtourskin.png" crop="0|256|64|64"  align="bottom"      x="-20"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(vlookat_moveforce,-1);" onup="skin_buttonglow(null);set(vlookat_moveforce,0);" />		<layer name="skin_btn_dn"     url="vtourskin.png" crop="64|256|64|64" align="bottom"      x="+20"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(vlookat_moveforce,+1);" onup="skin_buttonglow(null);set(vlookat_moveforce,0);" />		<layer name="skin_btn_in"     url="vtourskin.png" crop="0|320|64|64"  align="bottom"      x="+60"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(fov_moveforce,-1);" onup="skin_buttonglow(null);set(fov_moveforce,0);" />		<layer name="skin_btn_ou"     url="vtourskin.png" crop="64|320|64|64" align="bottom"      x="+100" y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); set(fov_moveforce,+1);" onup="skin_buttonglow(null);set(fov_moveforce,0);" />		<layer name="skin_btn_gyro"   url="vtourskin.png" crop="0|384|64|64"  align="bottom"      x="140"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name)); skin_showmap(false);" onclick="switch(plugin[skin_gyro].enabled);" onup="skin_buttonglow(null);" visible="false" devices="HTML5" />		<layer name="skin_btn_fs"     url="vtourskin.png" crop="0|576|64|64"  align="bottom"      x="140"  y="4"   scale="0.5" ondown="skin_buttonglow(get(name));" onup="skin_buttonglow(null);" onclick="switch(fullscreen);" devices="fullscreensupport" />		<layer name="skin_btn_hide"   url="vtourskin.png" crop="0|448|64|64"  align="right"       x="50"   y="0"   scale="0.5" ondown="skin_buttonglow(get(name));" onup="skin_buttonglow(null);" onclick="skin_hideskin()" />		<layer name="skin_btn_show"   url="vtourskin.png" crop="64|448|64|64" align="right"       x="5"    y="-36" scale="0.5" alpha="0" visible="false" onclick="skin_showskin()" ondown="skin_buttonglow(get(name));" onup="skin_buttonglow(null);" />	</layer>

    this is just the text part of this case:

    Code
    <layer name="skin_btn_feketegy" url="text2.png" crop="0|0|250|64"  align="center" edge="rightbottom"  x="-20"   y="-2"   scale="1" capture="false" handcursor="false" ondown="" onup="" />		<layer name="skin_btn_aranykor" url="text2.png" crop="250|0|467|64"  align="center" edge="leftbottom"  x="20"   y="0"   scale="1" capture="false" handcursor="false" ondown="" onup="" />

    Any idea?
    Thank you!