You are not logged in.

Stoney

Trainee

  • "Stoney" started this thread

Posts: 119

Location: Portland, Oregon

  • Send private message

1

Wednesday, October 6th 2010, 7:54am

plugin button, zorder invalid syntax, 1 or 2 buttons disappear when bitmap

1. I was using the skin/ buttons example as a template for adding a custom set of buttons via the "plugin" along with usage of "button" and "crop".
a. Using a plugin to display an image of a bar behind the buttons will conceal some of the buttons and the mouse events. If I disable the bar image then all of the buttons are displayed and work well.
b. I tried using the attribute "zorder=2" for the button plugins, but krpano throws a syntax error.
c. The buttons concealed seems arbitrary.

Example ( with the plugin instance "rodape" keep=false so that the buttons do not disappear. plugin splash is kept )
http://stoneyphoto.com/shots360/coral/

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 <!-- some default buttons (zooming, direction, hotspots on/off, fullscreen) -->
 87     <plugin name="in"  keep="true"     align="bottom" x="-280" y="10" style="button" crop="145|113|35|35" onovercrop="142|38|35|30"                             ondowncrop="142|38|35|35" 
 88             ondown="set(fov_moveforce,-1);"  onup="set(fov_moveforce,0);" />
 89     <plugin name="out" keep="true"     align="bottom" x="-240" y="10" style="button" crop="178|113|35|35" onovercrop="178|38|35|35"                             ondowncrop="178|38|35|35" 
 90             ondown="set(fov_moveforce,+1);"  onup="set(fov_moveforce,0);" />
 91     <plugin name="left" keep="true"    align="bottom" x="-200"  y="10" style="button" crop=  "0|113|35|35" onovercrop=  "0|38|35|35" ondowncrop=                "0|38|35|35" 
 92             ondown="set(hlookat_moveforce,-1);"  onup="set(hlookat_moveforce,0);" />
 93     <plugin name="right" keep="true"   align="bottom" x="-160"  y="10" style="button" crop= "39|113|35|35" onovercrop= "39|38|35|35" ondowncrop=                "39|38|35|35" 
 94             ondown="set(hlookat_moveforce,+1)"  onup="set(hlookat_moveforce,0);" />
 95     <plugin name="up"  keep="true"     align="bottom" x="-120"   y="10" style="button" crop= "74|113|35|35" onovercrop= "74|38|35|35" ondowncrop=               "74|38|35|35" 
 96             ondown="set(vlookat_moveforce,-1)"  onup="set(vlookat_moveforce,0);" />
 97     <plugin name="down" keep="true"    align="bottom" x="-80"  y="10" style="button" crop="109|113|35|35" onovercrop="109|38|35|35"                             ondowncrop="109|38|35|35" 
 98             ondown="set(vlookat_moveforce,+1);"  onup="set(vlookat_moveforce,0);" />
 99 
100     <plugin name="girar" keep="true"    align="bottom" x="-40"  y="10" style="button" crop="212|113|35|35" onovercrop="212|38|35|35"                            ondowncrop="212|38|35|35" 
101             ondown="toggleRotate();"  onup=""  />
102     <plugin name="info" keep="true"    align="bottom" x="+0"  y="10" style="button" crop="250|113|35|35" onovercrop="250|38|35|35"                              ondowncrop="250|38|35|35" 
103             ondown="toggleIntroImage();"  onup=""  />
104     <plugin name="pantalla" keep="true"    align="bottom" x="+40"  y="10" style="button" crop="287|113|35|35" onovercrop="287|38|35|35"                         ondowncrop="287|38|35|35" 
105             ondown="toggleFullScreen();"  onup=""  />
106 
107     <plugin name="twitter" keep="true"    align="bottom" x="+100"  y="10" style="button" crop="336|113|60|35" onovercrop="336|38|60|35"                         ondowncrop="336|38|60|35" 
108             ondown="openurl(http://www.twitter.com/#!/TintasCoral,_blank)"  onup=""  />
109     <plugin name="facebook" keep="true"    align="bottom" x="+160"  y="10" style="button" crop="399|113|60|35" onovercrop="399|38|60|35"                        ondowncrop="287|38|60|35" 
110             ondown="openurl(http://www.facebook.com/TintasCoral,_blank)"  onup=""  />
111 
112     <plugin name="lataCom" keep="true"    align="bottom" x="+300"  y="8" style="button" crop="463|75|180|70" onovercrop="463|75|180|70"                         ondowncrop="463|75|180|70" 
113             ondown="toggleDecora();"  onup="set(visible,false);set(plugin[lataSem].visible,true);" visible="false" />
114     <plugin name="lataSem" keep="false"    align="bottom" x="+300"  y="8" style="button" crop="463|4|180|70" onovercrop="463|4|180|70"                          ondowncrop="463|4|180|70" 
115             ondown="toggleDecora();"  onup="set(visible,false);set(plugin[lataCom].visible,true);" visible="true" />
116



2. Also two problems with image hotspots in polygon hotspots. Sometimes a image hotspot that is made visible by a "onhover" event will not be visible. Other times it will not be visible unless you hover over precise sub region of the polygon hotspot.

3. I find it necessary to project the image hotspots on the cube faces by using "distorted=true". Otherwise the image hotspots will move in a different trajectory than the sphere which I am trying to tag.

This post has been edited 1 times, last edit by "Stoney" (Oct 6th 2010, 9:37am)


rbackhaus

Trainee

Posts: 66

Location: connecticut usa

  • Send private message

2

Wednesday, October 6th 2010, 2:30pm

I tried using the attribute "zorder=2" for the button plugins, but krpano throws a syntax error.
Stoney,

the above may be giving you the error. try

zorder="2"

Rob

Stoney

Trainee

  • "Stoney" started this thread

Posts: 119

Location: Portland, Oregon

  • Send private message

3

Wednesday, October 13th 2010, 10:17am

Ok, I added the zorder to the plugins again and I did not get a syntax error and the buttons displayed on top of the rectangular graphic. Then, I removed the "editor" plugin which is displayed at the same vertical level as the graphic and all of the buttons disappeared. What is happening?

http://stoneyphoto.com/shots360/coral/

Also, the image hotspot was a silly typo. Though it is necessary at times to move the mouse to the edge of a polygon in order to trigger the onover event. Often the onhover will not occur until as I pass from one edge of the polygon to the center. I must continue moving the mouse to the other edge of the polygon. Then the onhover action is triggered.

This post has been edited 1 times, last edit by "Stoney" (Oct 13th 2010, 10:53am)


Stoney

Trainee

  • "Stoney" started this thread

Posts: 119

Location: Portland, Oregon

  • Send private message

4

Thursday, October 14th 2010, 5:09am

I resolved the zorder problem. I must have used incorrect syntax.