You are not logged in.

1

Tuesday, January 7th 2014, 2:41pm

Need help loading virtual tour with "skin_btn" in hide state

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"

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Tuesday, January 7th 2014, 2:56pm

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 *thumbsup*

3

Tuesday, January 7th 2014, 6:44pm

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. *smile*

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Tuesday, January 7th 2014, 6:58pm

hehe we all are..

i suppose your 'startup' action in the tour.xml looks like:

Source code

1
2
3
4
	<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:

Source code

1
2
3
4
5
<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 *thumbsup*

5

Tuesday, January 7th 2014, 7:55pm

Thanks!

Thanks!! I've been trying to modify the "actions" all morning and nothing worked. Your fix worked instantly!!


Thanks again. *thumbup*
Garrett