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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!) w; Z1 k0 F/ k) f9 _
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"6 D( s- c5 v) N. P$ ^
                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />
- {1 D: i6 p* Z* Y
1 ~$ _/ A- l% I
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:# z( d( s# p$ C$ b; M5 ]
: ?! j# f$ ?7 g) {' k0 J. t
<skin_settings maps="false"4 r# Y5 U5 t' o" Y% M0 i
                       maps_type="bing"1 @- s( U: ^9 |7 J: q2 [9 Z
                       maps_bing_api_key=""$ X* _8 R: j! w. A: F. r
                       maps_zoombuttons="false"
0 ?3 N4 K. ^2 f! n. {3 a                       gyro="true"
; b" |$ r+ B2 u( Z# J                       title="true"
8 M, o; T9 Z8 \( L1 z( i) `9 W                       thumbs="true"" A7 s2 c2 D8 u
                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"1 D6 N) m  O' C8 b0 W
                       thumbs_opened="false"
; N  i8 ?) ^, h1 s                       thumbs_text="false"
) |4 k# M9 o' T3 g8 q! k8 D                       thumbs_dragging="true"
5 `8 u: l; O% o! C                       thumbs_onhoverscrolling="false"3 p0 E6 f) Z" r) w
                       thumbs_scrollbuttons="false"
& r' f) `/ z8 [& L  Y                       thumbs_scrollindicator="false"
7 P7 R) R- C8 h7 ?* ]/ z: H8 f% v                       thumbs_loop="false"
" M1 A* J# B! ?( E5 c0 L                       tooltips_thumbs="false"   缩略图上的文字提示
" Z0 H& p1 t7 g& A0 u                       tooltips_hotspots="false"  热点上的文字提示/ S5 y$ A; ?3 Z+ \: C& d- i
                       tooltips_mapspots="false"  地图上的文字提示
" Z  }5 `$ S* b! o4 f                       loadscene_flags="MERGE"
$ E( X1 S- n0 C' \$ D* L  h, ~                       loadscene_blend="BLEND(0.5)"7 l* y* s! a, i+ ]
                       controlbar_offset="20"4 a# {. ^* Q" J3 H/ A! u) L- x
                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
. r$ L9 c- p7 X2 k5 ^! x8 N1 w) N; @# R  p  D. t. S
继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14
! a  m) M; m3 }$ S9 i) Q仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。( \! O$ o) ?+ U, s& m9 o
4 I. `' C( M3 c4 J! \
继续研究中。。。。。。。。。。

, P& R0 U; k* ~7 {/ }如果要在热点或layer上显示自定义文字,应该怎样弄呢1 }6 P; ?3 Y; I- g! C/ H
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">6 |! m7 v' F: f- j  X/ M
    txtadd(tooltipname, 'tooltip_', get(name));4 E. B9 V' m+ P+ C
    addplugin(get(tooltipname));' K; x- T; }, \+ I6 ^: ?- |/ f
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');; @" T0 ~0 Z! L
    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
' }# u/ u; g& @) Y) @- \9 l9 T/ X    set(plugin[get(tooltipname)].align,top);
* j$ K4 i/ o, \2 r. t: b7 B5 x    set(plugin[get(tooltipname)].edge,bottom);
# \) c& p1 L* q7 g) t    set(plugin[get(tooltipname)].x,0);, O- z" d# j; {
    set(plugin[get(tooltipname)].y,0);  a: r) m# j7 S0 E
    set(plugin[get(tooltipname)].width,100);
4 S, T0 O, d+ E' [    set(plugin[get(tooltipname)].autoheight,true);
. w* t+ A; }; J3 O$ Z    set(plugin[get(tooltipname)].background,true);( S, s7 @! v8 P! H
    set(plugin[get(tooltipname)].backgroundcolor,0x000000);, c* f8 `  ]+ X1 s
    set(plugin[get(tooltipname)].roundedge,15);5 i$ s1 i7 `" U% m- U
    set(plugin[get(tooltipname)].backgroundalpha,0.5);) ?# O1 U" y5 h) C. ~, |
    set(plugin[get(tooltipname)].border,true);9 `7 m) g& v/ }; W
    set(plugin[get(tooltipname)].glow,4);
8 |" B* K2 \; E! U+ S    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);$ V2 X. K! |0 Y! x9 I3 H( q1 O
    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');- [/ y3 m/ W" ~1 G% [
    set(plugin[get(tooltipname)].textshadow,1);% ~3 p# w5 d8 y! Q6 G0 w
    set(plugin[get(tooltipname)].textshadowrange,6.0);  L2 a- [  B: X4 S
    set(plugin[get(tooltipname)].textshadowangle,90);
+ W5 B7 I8 w9 z! ^    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
$ o7 Q- l3 s2 D    set(plugin[get(tooltipname)].enabled,false);        + R9 I# X7 U" c  u9 c
</action>8 Q: S/ t6 \+ R0 Z* f8 _0 n% q" T1 B
把这一段代码复制到vtourksin.xml中就可以了。
: A/ r( p0 Z" i" e2 O! x- M  Y然后找到下面这段代码,复制这个替换就可以了。
<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();"
               />
* ?. k" Q" g7 x4 r  d' d7 p
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:52
7 _6 g0 j0 N: c$ \txtadd(tooltipname, 'tooltip_', get(name));2 y6 s3 J- |+ x: B' A
    addplugin(get(tooltipname));
) i7 l5 I1 Y& ]0 x& ]    txtadd(plu ...

( q( E6 E: _3 C. N- ]大神来啦,鼓掌欢迎
* y& Q* J" X, ?
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:52& Z; G) N- d  `, X
大神来啦,鼓掌欢迎
2 k' D' _5 [% W, W1 G' j
不敢不敢,明海兄抬举,小白一枚,还在学习中~
" D$ G$ }. L; d6 z
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则