I have a client that wants the virtual tour to start with the menu bar hidden. I see the action to open/close it with the icons - but how can we set the load with it hidden?? Can there be something like this created as a setting??
skin_btn_hide="true"
Need help loading virtual tour with "skin_btn" in hide state
-
-
the most easy thing would be calling the hide action in the onstart i think.. or in the startup action.
But you can also adapt the code itself.Tuur
-
Would that be on the tour.xml or the vtourskin.xml in skin folder? My guest would be the skin folder - but I'm still learning.
-
hehe we all are..
i suppose your 'startup' action in the tour.xml looks like:
Code<action name="startup"> if(startscene === null, copy(startscene,scene[0].name)); loadscene(get(startscene), null, MERGE); </action>
add this line:
skin_hideskin();
so your startup action looks like:
Code<action name="startup"> skin_hideskin(); if(startscene === null, copy(startscene,scene[0].name)); loadscene(get(startscene), null, MERGE); </action>
off course there are other ways to do this but i think the should work..
hope it helps,
Tuur
-
Thanks!! I've been trying to modify the "actions" all morning and nothing worked. Your fix worked instantly!!
Thanks again.
Garrett
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!