热点上方如何直接显示文字?

[复制链接]
查看45268 | 回复9 | 2015-4-29 10:43:14 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!+ a# L$ C) S# r
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"
& ^* |1 R2 A. m* B                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />
4 p7 l# s3 a8 G) L- h
+ ^0 l! z5 W! j) ~% u6 c" ?
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

在 tour.xml里面找到这么一堆代码

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:$ p5 W, P. w! m8 e% b; Y$ n

' ^$ q9 S8 k7 M% N* r/ X<skin_settings maps="false"
& i: A, L$ R- c/ F2 G  u) l& L                       maps_type="bing"+ b7 X8 `+ ?! r+ j8 u8 s) H
                       maps_bing_api_key=""1 ^4 a6 h* A$ h1 [" J) V
                       maps_zoombuttons="false". B- p5 n* @* ?& C8 M8 o# }
                       gyro="true"' v  B+ `* x1 a" \
                       title="true"5 ^( Y8 `3 U- W* }* F
                       thumbs="true"- O: T* p6 Y3 K% h+ t2 d& s
                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"* d% e* g2 l- X+ u. T9 W! g7 N; [3 o
                       thumbs_opened="false"
  A0 c# k8 d( v  d                       thumbs_text="false"
3 r! J0 |/ p) W3 f, a                       thumbs_dragging="true"
, b' H7 @$ \# V/ S9 b5 h                       thumbs_onhoverscrolling="false"& D7 H" n3 k2 U5 B* ?1 X
                       thumbs_scrollbuttons="false"2 }) E! q6 ^; Q5 {0 j7 U, b# J/ o
                       thumbs_scrollindicator="false"
6 Q- Q# G  L2 n& T1 d                       thumbs_loop="false"
3 _1 J- O+ B7 p: G: r0 g                       tooltips_thumbs="false"   缩略图上的文字提示" p$ E4 d0 R8 f% F, g- g' Q
                       tooltips_hotspots="false"  热点上的文字提示
0 j+ _# X$ K# ^7 J) z                       tooltips_mapspots="false"  地图上的文字提示
7 f! p1 \' U1 v: V# |                       loadscene_flags="MERGE"
. `- G) b1 K, T; l+ X/ B8 F2 q' @                       loadscene_blend="BLEND(0.5)"
% `' v( }+ d2 B& R                       controlbar_offset="20"
$ E% w9 t  c$ G7 v                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
0 q- B- a! q, ^1 G
. f. T( R1 D! m# z6 Q, w& ^继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14
' Q2 _7 P$ S( O  u5 p& b仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
; d% G  s# h( x# k
0 W1 M& a& e  c; q& O/ O! k继续研究中。。。。。。。。。。
) f7 Q5 Z( h, j1 R6 E6 \
如果要在热点或layer上显示自定义文字,应该怎样弄呢
5 X' ^* S- w+ c4 B; d
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">/ Z6 ~1 j$ n0 z6 F6 p/ s9 O8 C
    txtadd(tooltipname, 'tooltip_', get(name));
$ t5 g% U) _7 \* B! j    addplugin(get(tooltipname));
, f& P3 a) N/ i* R: P5 w/ L* R  _$ {    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
7 ?9 |4 |+ p$ l7 K. v/ W0 w6 z" g    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');0 e  x) I. j% u, U6 J0 h3 ^; T
    set(plugin[get(tooltipname)].align,top);
. E: `/ ~4 n/ g5 u3 X    set(plugin[get(tooltipname)].edge,bottom);9 C5 \, e* D' C( Q0 S
    set(plugin[get(tooltipname)].x,0);3 [: m1 v: B8 O5 A5 s
    set(plugin[get(tooltipname)].y,0);1 l" e9 l  T0 h7 o
    set(plugin[get(tooltipname)].width,100);# c9 K/ q+ H6 T6 Z2 G
    set(plugin[get(tooltipname)].autoheight,true);8 S/ N! }% A, m/ z
    set(plugin[get(tooltipname)].background,true);9 _- u" g# ?$ ^9 I7 A. n0 L
    set(plugin[get(tooltipname)].backgroundcolor,0x000000);% s. d9 W7 m# }6 z# S' t) ]
    set(plugin[get(tooltipname)].roundedge,15);
3 A2 J( F- Z* G! A: `4 f    set(plugin[get(tooltipname)].backgroundalpha,0.5);
- h3 K, O5 c. p! E    set(plugin[get(tooltipname)].border,true);& n( d+ o' o& M9 s: }9 T# @
    set(plugin[get(tooltipname)].glow,4);
) v  Q: Y$ P+ I1 g! u7 L    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
( b8 h) ]/ |' B% V+ w& f3 z    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');* \% H6 r- J7 p4 V
    set(plugin[get(tooltipname)].textshadow,1);
  X1 j5 ]* l5 }! Q# p# W    set(plugin[get(tooltipname)].textshadowrange,6.0);8 }! b/ l( _6 i/ q
    set(plugin[get(tooltipname)].textshadowangle,90);
8 L8 [% `5 I6 Z: \+ A% K  r    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);# [+ ?2 h; ^2 u$ k
    set(plugin[get(tooltipname)].enabled,false);        
. G  `6 c, B8 c; S& A  {6 T1 J</action>
6 b  c" {3 o; |- h4 r把这一段代码复制到vtourksin.xml中就可以了。
. B1 `4 A% _" y& H+ i6 B9 j2 u% d然后找到下面这段代码,复制这个替换就可以了。
<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"
               tooltip=""
               onclick="if(linkedscene,skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5);tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));skin_updatescroll(); );"
               onloaded="add_all_the_time_tooltip();"
               />; z3 l( W3 H% |6 c% J
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:52
; l* h" F, m' I, E* @" V% w3 Ztxtadd(tooltipname, 'tooltip_', get(name));
( _/ v9 i1 [. u4 [    addplugin(get(tooltipname));
: Q9 S; w; W8 \, f    txtadd(plu ...
9 r5 c7 p1 M+ h/ R8 o6 P
大神来啦,鼓掌欢迎
; @; {- B! ~' P% _2 Z; S& ?3 O; p/ \
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:52% p1 M0 Q( x3 A" i: C' M+ X
大神来啦,鼓掌欢迎
3 a  e1 V  A4 n/ L. G
不敢不敢,明海兄抬举,小白一枚,还在学习中~$ p, l0 s1 t4 Y2 n) `' ^3 @4 w
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则