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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!
$ [$ h& a. e( I1 V9 T
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"
8 }: [; V+ S" s  h7 I                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />* `, r+ _. ], B: {6 @

( i' ?6 {0 V. K# z# X. ~
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:( `& c8 o: \- h6 ?, _8 k; N, F) A

, I) F/ _0 \8 t: O" |) T( T<skin_settings maps="false"
& \1 c7 f2 G# }; Q) d( e8 K2 P                       maps_type="bing"8 a$ f/ c0 o8 G/ O
                       maps_bing_api_key="") j/ `" ?6 L6 C: q8 Y6 H) }
                       maps_zoombuttons="false"# n; y( S) ?4 R4 J; T
                       gyro="true"
% j1 ~9 d! \5 D- a& g  N/ I. `                       title="true"# P: D- F4 o2 m" @3 J
                       thumbs="true"
7 A7 N  ~: ]' T& a7 K- A3 [                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160", g, r- |* v& i( q1 P+ s! I# D! L
                       thumbs_opened="false"8 L' v, }) D$ E( s( Y
                       thumbs_text="false"
0 X, s4 F4 f& V7 U  ^                       thumbs_dragging="true"
. A1 k5 `0 [' n8 A# E3 c: ?: e, d                       thumbs_onhoverscrolling="false"
7 @- H( p8 X$ o3 J6 N# B- t                       thumbs_scrollbuttons="false"8 U  ^, {- b$ r3 S, Q; r
                       thumbs_scrollindicator="false"
4 ^  e7 d, n% G8 @2 M; Q/ n" G3 G                       thumbs_loop="false"
1 J  a/ u  j* s& i$ F                       tooltips_thumbs="false"   缩略图上的文字提示, f: R6 ?0 ~. U; L
                       tooltips_hotspots="false"  热点上的文字提示
% ^8 M' h( q8 [( Q                       tooltips_mapspots="false"  地图上的文字提示$ D' l) u6 a# B* C: z% {8 W
                       loadscene_flags="MERGE"7 z1 h5 V. _( I$ V( H- T. C
                       loadscene_blend="BLEND(0.5)"
  w' j+ }, x. ~, Q                       controlbar_offset="20"" ~- j8 N! X: ?' Z
                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
/ F3 p0 d* w% O# ^
( E; B4 {' s$ q% e, i, Y继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14( Z/ P. N  P  \! k+ T" N
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
/ p) }' r$ }& _- a9 q1 {9 x, G
8 Z  o' I4 B7 V/ I# t& a1 j1 u继续研究中。。。。。。。。。。
# E8 t: e- v7 }' u$ ~* j8 L
如果要在热点或layer上显示自定义文字,应该怎样弄呢
* H2 }4 b# x" W+ _1 G
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">2 a% w9 H* i# k0 J1 k! c/ E
    txtadd(tooltipname, 'tooltip_', get(name));; O# m) _7 ~* [5 v. m( ]; P
    addplugin(get(tooltipname));% N- M. H8 h* V9 b; @/ O( ]* B
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');' ]% @% V- h9 I# m" [' T
    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');0 c& Y% g+ ?( c" ], u9 N$ {, T
    set(plugin[get(tooltipname)].align,top);# h' L9 l- I, l; L) P1 J3 _+ \
    set(plugin[get(tooltipname)].edge,bottom);9 U8 E3 ~4 s. i0 k' r9 L
    set(plugin[get(tooltipname)].x,0);) R5 c3 L  R" G2 @* u
    set(plugin[get(tooltipname)].y,0);! n  w7 ?+ \3 F& _/ ?2 \  \
    set(plugin[get(tooltipname)].width,100);
+ O6 x- \" A4 \# j    set(plugin[get(tooltipname)].autoheight,true);7 U+ }3 N% k% J( l9 `- `# v: z/ [
    set(plugin[get(tooltipname)].background,true);
  @6 b& i* y7 w% {9 f" Q    set(plugin[get(tooltipname)].backgroundcolor,0x000000);. R/ r4 @+ D8 `5 d+ D2 U
    set(plugin[get(tooltipname)].roundedge,15);1 o% s4 K6 I6 s' I& F
    set(plugin[get(tooltipname)].backgroundalpha,0.5);7 h8 ^3 T2 w9 z/ F# J
    set(plugin[get(tooltipname)].border,true);
! H7 [7 ^$ k$ W* P2 e( I2 Q    set(plugin[get(tooltipname)].glow,4);
; Z+ W; `; U' a- `$ H; I    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
/ k& E( K3 @1 {, j    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');& I' L1 D) h! r
    set(plugin[get(tooltipname)].textshadow,1);8 p0 y7 s7 a9 `! y0 h0 U
    set(plugin[get(tooltipname)].textshadowrange,6.0);3 u5 V4 v4 A& ]5 Z8 F6 D
    set(plugin[get(tooltipname)].textshadowangle,90);$ ]# ~+ t4 Y2 x( \. R" g* [) |7 A
    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
# H, [4 N, F7 @- u    set(plugin[get(tooltipname)].enabled,false);        , D# ^4 K8 r) j! l9 Q* Z7 X
</action>* I* b2 r% @( K
把这一段代码复制到vtourksin.xml中就可以了。
8 h8 k2 `4 b; S0 t* r1 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();"
               />
" ?9 ]" B$ O. u1 r
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:525 I' P- ]8 ~9 F7 d1 w: s/ X
txtadd(tooltipname, 'tooltip_', get(name));
# I, {# w8 y, Z0 A; W) q  g    addplugin(get(tooltipname));
8 u( C. G: q, G- ]9 U1 c* }    txtadd(plu ...

. u  m9 V* M) Y* s+ q大神来啦,鼓掌欢迎
- f* j( N. x& g: x1 w  s9 M% l
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:52  s/ l' W1 A$ y0 S& c* F
大神来啦,鼓掌欢迎
1 @9 F4 E2 L  [! n- X7 t, P
不敢不敢,明海兄抬举,小白一枚,还在学习中~( i0 U$ u; ~5 @: v
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则