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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!
+ i/ O5 w" m) ^( i; t
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"* K+ _9 `! i" H# ]& s
                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />, D, o* Z4 D4 ?5 M: x
0 Z2 A: T/ x* |# S/ ]3 M
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:
. R3 B/ e  C6 K: U: f* Z
$ F9 f8 l1 ~1 W* d5 P  @$ ?<skin_settings maps="false"- {' O, z9 _& B& ~8 ^' Q
                       maps_type="bing"  E- }! s; m9 m" k
                       maps_bing_api_key=""! `+ c, `/ s. Q4 h1 @
                       maps_zoombuttons="false"
' r% p( g" f3 L# l4 s2 f                       gyro="true"+ A0 T. a: e0 ^# a
                       title="true"
' d6 F7 O: h2 a; S9 S+ `, ^% J                       thumbs="true"
# Z) S4 i! C- u2 D" m                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
  p2 d6 Z7 P3 e* Y. m2 T+ a                       thumbs_opened="false": j+ i# V3 ^) [: y: b; N) a
                       thumbs_text="false"
  ?' W7 F) D, e) n) @, q                       thumbs_dragging="true"
+ Q& s' z6 s" V* p. K  h                       thumbs_onhoverscrolling="false") \4 ^% H6 h/ D; j% N( E" d0 K
                       thumbs_scrollbuttons="false"
; p8 W1 i" A  O                       thumbs_scrollindicator="false"' @0 {) e' H* L$ R, R7 i
                       thumbs_loop="false"/ b! P+ P1 ]( A2 w* U7 ~4 z/ u% C
                       tooltips_thumbs="false"   缩略图上的文字提示! I( A8 {6 U. K
                       tooltips_hotspots="false"  热点上的文字提示1 z9 i* F% L0 b" {
                       tooltips_mapspots="false"  地图上的文字提示
7 V- g; F/ n: H5 j; S* ^                       loadscene_flags="MERGE"
6 `  ~! Q  N% Y# h  G! J, h4 K( Z0 T                       loadscene_blend="BLEND(0.5)"' c, w. H* k# u+ P" \
                       controlbar_offset="20"
$ x! q3 P1 P6 Q0 ?8 F' Q8 b" t                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。, t/ U' M7 O( q% g1 Z
- E( D9 a3 B2 B, |: t- n' E: h! l
继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14$ L" ~7 E/ G. @# F1 h1 P
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。1 X$ }; _9 _) z+ A0 V

$ E1 O) ?* S- \+ Y; B: h) s继续研究中。。。。。。。。。。
; r5 b# i/ G2 O2 P  ^& A: k$ O
如果要在热点或layer上显示自定义文字,应该怎样弄呢
# V' R% c% s# L) D3 i' W/ Y
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">
7 J; ^* ^4 x( Y! Y    txtadd(tooltipname, 'tooltip_', get(name));" U- ~* N' U' f; B7 F4 q
    addplugin(get(tooltipname));: A: p6 ]" R5 F8 A% X$ ]
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');' D4 m% V8 {$ j' T$ g6 d
    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
. N0 d4 s% [3 w* W2 D) C* ]( {    set(plugin[get(tooltipname)].align,top);
( j0 F% t. {) g$ I: ~    set(plugin[get(tooltipname)].edge,bottom);
2 y- E8 ]: l0 }5 k    set(plugin[get(tooltipname)].x,0);
8 e5 {" V9 x& g1 [. \1 _    set(plugin[get(tooltipname)].y,0);
$ B" G! ]% v  z    set(plugin[get(tooltipname)].width,100);
) h% G! ~" U9 h8 T$ C( k    set(plugin[get(tooltipname)].autoheight,true);. O4 W% J+ _1 c! ^
    set(plugin[get(tooltipname)].background,true);+ i: P& A5 [# ~! v
    set(plugin[get(tooltipname)].backgroundcolor,0x000000);
" O  U. i. `& x  z( U& h& c+ U; D4 E    set(plugin[get(tooltipname)].roundedge,15);% |+ b' S# y+ m9 O- L: f2 ]5 D
    set(plugin[get(tooltipname)].backgroundalpha,0.5);' C: _" X3 u% f
    set(plugin[get(tooltipname)].border,true);
3 G+ {+ \8 M3 T, U5 _7 I    set(plugin[get(tooltipname)].glow,4);
$ \0 h' K: D, Q+ W8 [    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
" D& h+ _$ j/ x0 B    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');
- B, K2 {& M8 m0 j    set(plugin[get(tooltipname)].textshadow,1);
. c0 Q( d9 b9 D  J    set(plugin[get(tooltipname)].textshadowrange,6.0);' }9 A( x5 i. a0 x5 p
    set(plugin[get(tooltipname)].textshadowangle,90);
, T- Q* Z0 x) J+ N- g# u5 I$ z    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);3 p" ], O) T* M- B6 S+ e
    set(plugin[get(tooltipname)].enabled,false);        
1 X1 v2 i4 f" Z! W( \. ~) w9 D! U</action>& ^" Q2 L  v! _. s* i, q. i
把这一段代码复制到vtourksin.xml中就可以了。# y: c4 `* X) _+ T* _+ {
然后找到下面这段代码,复制这个替换就可以了。
<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();"
               />5 U; j: E, L! ]
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:52
) l3 h+ O$ L6 W! A1 atxtadd(tooltipname, 'tooltip_', get(name));' O3 A% v7 d% y* d4 W7 r
    addplugin(get(tooltipname));
$ g8 f& |9 q# a  M, V+ P0 ~" f    txtadd(plu ...

& g* I' }$ `1 d# p/ b大神来啦,鼓掌欢迎# t8 q/ k, T: }( [$ P
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:529 S8 E4 K. b& O
大神来啦,鼓掌欢迎

4 u! P5 q& b/ e  q不敢不敢,明海兄抬举,小白一枚,还在学习中~
- _* |( q' z; K; n1 e
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则