Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

1

Freitag, 15. September 2023, 06:54

How to hide scrolling textfield on pano load

Hello,

I am trying to have the scrolling textfield hidden on pano load. I am testing using the tour_testingserver and what I tried was in this part of the code:


<action name="CheckTxt">
if(scene[get(xml.scene)].txt,
scene[get(xml.scene)].txt();
set(layer[showtext].visible, true);
,
set(layer[showtext].visible, false);

);
</action>

I tried changing the "set(layer[showtext].visible, true);" to "false", but it still shows when the pano loads.

Thanks for any help!

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

2

Montag, 18. September 2023, 06:15

No one on this?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Montag, 18. September 2023, 08:11

Please get us some more info, a link or a bare bone example to look into.. so we could help.

Tuur *thumbsup*

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

4

Montag, 18. September 2023, 20:23

Hi Tuur,

Thank you so much for your response. Long time no talk. I hope you’ve been well.

Here is the link to my tour:

https://www.jeremyfukunaga.com/360-degre…house/tour.html


I would like the scrolling text window to appear after one clicks on the intro screen and enters the tour, or just be hidden on load, and then one could click on the info button to open it. The first option would be the best one think.

Thank you again for your response and help.

5

Montag, 18. September 2023, 21:24

Just set the boxes visibility to false in the xml and let it come back with onclick(set(layer[layername].visible, true));

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

6

Dienstag, 19. September 2023, 00:20

I already tried to set the visibility to false and it still shows up on pano load.

7

Dienstag, 19. September 2023, 08:28

jeremyfukunaga-san.

I hope this will give you a hint. *squint*

Quellcode

1
2
3
4
5
6
7
<layer xxx onclick="open_scroll();" />
	<action name="open_scroll">		set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true);	</action>
<scene xxx onstart="set(layer[scroll_text_1].html,data:html_test1)" >
		<layer name="scroll_text_back" type="container" bgcolor="0xEA574D" bgalpha="0.3" width="100%" height="30px" keep="true" visible="false" />		<layer name="scroll_text_1" type="text" style="scroll_text" html="" keep="true"  visible="false" />		<style name="scroll_text" type="text" align="top" x="" y="-2" width="100%" bg="false" enabled="false" />
		<data name="html_test1">				<style type="text/css">				.scroll {				  margin     : auto;				  width      : 100%;				  font-size  : 120%;				  line-height: 2.4em;				  text-align : center;				  border     :  ;				  color      : #ffffff;				  background-color: rgba(2, 0, 5, 0);				  overflow   : hidden;				}				.scroll span{				  display     : inline-block;				  padding-left: 100%;				  white-space : nowrap;				  line-height : 1em;				  animation   : scrollAnime 30s linear infinite;				}				@keyframes scrollAnime{				    0% { transform: translateX(0)}				  100% { transform: translateX(-100%)}				}				</style>
				<div class="scroll">				  <span>[img src="./image/xxx.svg" height=17px ]<bold>test1.test1.test1.test1</bold></span>				</div>		</data>
</scene>

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

8

Dienstag, 19. September 2023, 12:28

Hi,

I think (?) the problem is here in the onnewscene event.. which is also called on the first pano (!).

Quellcode

1
<events name="scrolltxt" keep="true" onnewscene="CheckTxt"/>


perhaps first change that to:

Quellcode

1
<events name="scrolltxt" keep="true" onnewscene=""/>


then maybe try in hide_introscreen action to add:

CheckTxt();
events[scrolltxt].onnewscene = 'CheckTxt();';

or so..

Tuur *thumbsup*

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

9

Dienstag, 19. September 2023, 21:28

jeremyfukunaga-san.

I hope this will give you a hint. *squint*

Quellcode

1
2
3
4
			set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true);	

						
								  [img src="./image/xxx.svg" height=17px ]test1.test1.test1.test1
jeremyfukunaga-san.

I hope this will give you a hint. *squint*

Quellcode

1
2
3
4
			set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true);	

						
								  [img src="./image/xxx.svg" height=17px ]test1.test1.test1.test1
Thank you for this. It's a little over my head, but I will spend some time experimenting with how to incorporate it and see if it works. Thank you again!


  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

10

Dienstag, 19. September 2023, 21:33

Hi,

I think (?) the problem is here in the onnewscene event.. which is also called on the first pano (!).

Quellcode

1

				


perhaps first change that to:

Quellcode

1

				


then maybe try in hide_introscreen action to add:

CheckTxt();
events[scrolltxt].onnewscene = 'CheckTxt();';

or so..

Tuur *thumbsup*
Thank you,Tuur. I did try removing the CheckTxt already and it does remove it, but I am unable to open it again with the button I have to open and close it. I click the button and it does nothing.

I tried to incorporate the other code into the hide_introscreem, but I was unsuccessful. Could you provide a little more guidance?


<action name="hide_introscreen">
if(device.mobilevr AND webvr.isavailable,
<!-- on vr-devices like the Oculus Go or Oculus Quest directly enter the VR mode -->
removeplugin(blur);
stoptween(layer[introscreen].bgalpha);
removelayer(introscreen,true);
set(layer[tour_ui].alpha,1.0);
webvr.enterVR();
,
set(layer[introscreen].enabled,false);
tween(layer[introscreen].bgalpha|layer[introscreen].alpha|plugin[blur].range, 0.33|0.0|0.0, 1.0, default,
removeplugin(blur);
removelayer(introscreen,true);
);
tween(layer[tour_ui].alpha,1);
);
</action>


Thank you again!

  • »jeremyfukunaga« ist der Autor dieses Themas

Beiträge: 43

Wohnort: Oakland, CA

Beruf: Photographer

  • Nachricht senden

11

Sonntag, 24. September 2023, 01:05

Thanks, Tuur. I was able to get that to work and everything seems to be working fine now.

The working updated code:


<action name="hide_introscreen">
if(device.mobilevr AND webvr.isavailable,
<!-- on vr-devices like the Oculus Go or Oculus Quest directly enter the VR mode -->
removeplugin(blur);
stoptween(layer[introscreen].bgalpha);
removelayer(introscreen,true);
set(layer[tour_ui].alpha,1.0);
webvr.enterVR();
,
set(layer[introscreen].enabled,false);
tween(layer[introscreen].bgalpha|layer[introscreen].alpha|plugin[blur].range, 0.33|0.0|0.0, 1.0, default,
removeplugin(blur);
removelayer(introscreen,true);
);
tween(layer[tour_ui].alpha,1);
);

CheckTxt(); // Add this line to call CheckTxt();
events[scrolltxt].onnewscene = 'CheckTxt();'; // Add this line to set the event handler
</action>