Different images in arrows using one syle

  • Hi!
    I want to use different arrows in addition to standart vtourskin_hotspot.png
    But I want to do it witout making separate style for each different arrow image, because all code displayed dynamically and I want to use vtourskin.xml without php changing it.

    In vtourskin.xml I wrote this code:

    Code
    <style name="skin_hotspotstyle" 
    url="get(hotspotimageurl)"	 
    scale="0.5"
    edge="top" oy="0" 
    distorted="false"
    tooltip=""		
    onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );" 
    />

    where I need to get image file name into url - url="get(hotspotimageurl)"
    In scene I adding new parametr to hotspot - hotspotimageirl

    Code
    <hotspot hotspotimageurl="skin/left.png" tooltip="test text 1" name="spot1" style="skin_hotspotstyle" ath="92" atv="5" linkedscene="scene_2" />
    <hotspot hotspotimageurl="skin/right.png" tooltip="test text 2" name="spot2" style="skin_hotspotstyle" ath="-30" atv="11" linkedscene="scene_1" />


    But function "get" doesn't work inside style url. I also tried such as - url="[get(hotspotimageurl)]"
    In krpano I have such error - ERROR: download of "skin/[get(hotspotimageurl)]" failed

    How properly and correctly implement it?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!