You are not logged in.

pdxvr

Beginner

  • "pdxvr" started this thread

Posts: 14

Location: Portland

  • Send private message

1

Thursday, January 24th 2013, 10:14am

Dismiss introimage by clicking anywhere on pano?

The subject just about says it all. I would like to be able to "click anywhere to dismiss this image", not just on the actual introimage.

I've looked a bunch, can't find it, can anyone help?

Thanks

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

2

Thursday, January 24th 2013, 2:17pm

Hi,

There are more options but a simple option could be to put a textfield width and height 100% background false behind the intro image, = lower zorder value and with onclick the same action you have now with onclick or ondown..

Tuur *thumbsup*

3

Thursday, January 24th 2013, 4:59pm

check out onmousedown event

pdxvr

Beginner

  • "pdxvr" started this thread

Posts: 14

Location: Portland

  • Send private message

4

Thursday, January 24th 2013, 8:42pm

I just created a second introimage of a clear png and then scaled it up to fit any modern monitor.

edit: which isn't quite working right yet...

Taurus

Trainee

Posts: 140

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

5

Thursday, January 24th 2013, 9:22pm

this is not quite right, you must set him size "100%" in width and "100%" height
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

pdxvr

Beginner

  • "pdxvr" started this thread

Posts: 14

Location: Portland

  • Send private message

6

Friday, January 25th 2013, 1:30am

Source code

1
2
3
4
5
6
7
8
	<plugin name="introclear"
			url="clear.png"
			scale="40"
			align="center"
			onloaded="delayedcall(1,tween(alpha,1.0));" 
			onclick="hideintroimage(); hideintroclear()"
			devices="desktop"
			/>


Seems to work just fine. Scale 40 is 40x larger

7

Friday, January 25th 2013, 10:36am

try:

<events onmousedown="set(hotspot[hsID].visible,false);set(events.onmousedown,null);" />

much more clean solution than loading a png and scaling it

regards

pdxvr

Beginner

  • "pdxvr" started this thread

Posts: 14

Location: Portland

  • Send private message

8

Friday, January 25th 2013, 10:59pm

Thanks for that code, but I don't have the skills to implement it.

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

9

Saturday, January 26th 2013, 12:05am

Hi!
onmousedown - is the right way :)



Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

pdxvr

Beginner

  • "pdxvr" started this thread

Posts: 14

Location: Portland

  • Send private message

10

Saturday, January 26th 2013, 12:08am

Thanks, but as I said before, I don't have the scripting skills to do this with the info provided. If someone could post the whole code snippet it would help me greatly.

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

11

Saturday, January 26th 2013, 12:28am

Do a search for onmousedown at the righttop of this page. In the 4h post you will see already your answere partialy.

Set events onmousedown remove plugin intro image or so, and set events onmousedown to nothing after that probably.

Tuur *thumbsup*

12

Monday, January 28th 2013, 10:41am

here's the full code!

paste this line in your xml

<events onmousedown="set(hotspot[hsID].visible,false);set(events.onmousedown,null);" />

just replace hsID with your hotspot name

you got it

;)