Found the thread but just cant get it right.
The post is a few years old and maybe something changed? The documentation is still the same but cant get it right.
My issue is a image. I want it 1.0 on desketop and 0.5 on mobile because otherwise the image is way outside mobilewindow.
I also tried to set numbers like: scale.normal="300" and scale.mobile="150" this ic actually changing the mobile but its proportions are weird so that not good either..also tride % nothing works. Any solutions?
This is my code:
<plugin
name="intro"
url="img/intro.png"
align="center"
keep="true"
onloaded="showintro();"
onclick="hideintro();"
zorder="4000"
scale.normal="1.0"
scale.mobile="0.5"
handcursor="false"
/>
<plugin
name="buttonToShowIntroAgain"
url="img/question-info.svg"
keep="true"
onclick="showintro();"
align="top-right"
width="50"
height="50"
x="30"
y="30"
/>
<action name="showintro">
set(plugin[intro].enabled,true);
tween(plugin[intro].alpha, 1, 0.5, default);
</action>
<action name="hideintro">
if(plugin[intro].enabled,
set(plugin[intro].enabled,false);
tween(plugin[intro].alpha, 0.0, 0.5, default);
);
</action>
also in my vtourskin.xml I have this line:
<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />