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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!! S9 j0 `0 a3 N# F; M
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"
2 L+ ^- ]# s5 ~6 Q9 P                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />) j7 f& S. {5 m* T

8 o9 u! L( t# O( O1 W: T: P
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:
- @" Z! O- |* n) }  Z; e9 m
  t- a3 _4 ~# v* d. K8 |<skin_settings maps="false"
6 T- N1 G% j$ [6 F- Z2 f7 ]; e                       maps_type="bing": u  D6 Z3 k- C1 W6 g0 {
                       maps_bing_api_key=""
/ z2 c7 t2 O' ]1 E1 M' x0 \                       maps_zoombuttons="false"* Z2 a, t+ S4 }9 c( t; p) a, d
                       gyro="true"& H9 q4 s0 ?" N6 d
                       title="true"
8 h1 W! o2 h7 f) V                       thumbs="true"
. z) `  E- m1 I0 g" g. _                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
( _$ ?% G( w; }8 m- z9 g' B1 E                       thumbs_opened="false"% R( H1 \# {5 t) E
                       thumbs_text="false"
; R+ a. F1 y1 F                       thumbs_dragging="true"& ]% h0 M8 G& R. ]" |: X! z) A) S
                       thumbs_onhoverscrolling="false"" R5 V0 l% [- x/ @( m
                       thumbs_scrollbuttons="false"8 D$ ]9 w) |3 p( T
                       thumbs_scrollindicator="false": H* _; S" b; a: [( x# @) w
                       thumbs_loop="false"
. g0 r4 T# F& k& @- {5 I$ e# A                       tooltips_thumbs="false"   缩略图上的文字提示
( E5 d; E/ f2 G; u# X* m7 k                       tooltips_hotspots="false"  热点上的文字提示
9 w# e: |* I# o! Z' t' ^/ L                       tooltips_mapspots="false"  地图上的文字提示
# U# j# ~' b" k4 [                       loadscene_flags="MERGE"
; b7 }) E3 C% ^" S( I# \                       loadscene_blend="BLEND(0.5)"  C+ m3 u7 J) Z9 g+ i  ?
                       controlbar_offset="20") F1 ?! C, [  N3 k
                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
( `( x" i; y% v- M; a# g
2 |, l( ]) x. a  b继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14
% |1 @: x% ?+ w仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。! @: D4 C6 I0 n
6 X7 }% ?, ]# A6 L
继续研究中。。。。。。。。。。

# V- _. [! N1 V0 J- A如果要在热点或layer上显示自定义文字,应该怎样弄呢
* W. A8 U; G% H' v
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">
' O& p$ ]( v# t    txtadd(tooltipname, 'tooltip_', get(name));
( O* {, q( [! O    addplugin(get(tooltipname));' f$ e3 h& a! F0 `1 ^" W
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
, Y5 F7 _8 ~: Q/ y- ^9 M9 D    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');) F) N' z8 p( I% J
    set(plugin[get(tooltipname)].align,top);3 Z( Y' y* |7 \2 ]# J4 Y% ?
    set(plugin[get(tooltipname)].edge,bottom);; Z- c: ~. V! g& I
    set(plugin[get(tooltipname)].x,0);: Y! |/ _! y2 \! K
    set(plugin[get(tooltipname)].y,0);
6 X8 O9 C& x* H" K% u  `    set(plugin[get(tooltipname)].width,100);
; M% S4 l. k( L( Y    set(plugin[get(tooltipname)].autoheight,true);
" s' K6 ?0 m0 R$ x' f" p' R    set(plugin[get(tooltipname)].background,true);8 P- X9 j  L! b7 o4 s6 a" y
    set(plugin[get(tooltipname)].backgroundcolor,0x000000);
7 O4 S& Q. O, ?6 O% h    set(plugin[get(tooltipname)].roundedge,15);
# D0 b) E: P* h. y1 z7 F    set(plugin[get(tooltipname)].backgroundalpha,0.5);
2 c9 o$ S' \$ T    set(plugin[get(tooltipname)].border,true);
* R4 p9 n- A# i7 u8 u% C$ k& c    set(plugin[get(tooltipname)].glow,4);
0 S9 h' j. h& p6 G. g* e9 p- l    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
* c. F. X3 O+ I5 F* r* J. f$ m    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');
; g/ Y- q  Z% I; [6 O8 ^8 |2 ~; w    set(plugin[get(tooltipname)].textshadow,1);/ q" x6 W* r( B; Z1 C
    set(plugin[get(tooltipname)].textshadowrange,6.0);; w1 H7 e- {: i: q  W, O
    set(plugin[get(tooltipname)].textshadowangle,90);
  D* y( `- c( K% e# V: G    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);) x4 z% k1 y. Z7 e% G
    set(plugin[get(tooltipname)].enabled,false);        
8 K3 g8 y# [# s+ G, a$ H8 N6 W</action>) T8 u2 E: p. w. Z& m0 ^# R
把这一段代码复制到vtourksin.xml中就可以了。, h7 I0 j- f& G* A( f+ R# \
然后找到下面这段代码,复制这个替换就可以了。
<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();"
               />
' I1 \3 A/ h/ e3 b3 s4 x- ?# A
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:522 T- @6 ?1 ^8 c2 H8 y  g2 L9 N5 @: V
txtadd(tooltipname, 'tooltip_', get(name));
7 `! {4 |) F8 o9 ~( r% [    addplugin(get(tooltipname));
2 Y1 m# x$ |9 N8 l" E    txtadd(plu ...
3 m8 s0 T; N+ W0 U9 g5 m" L& X
大神来啦,鼓掌欢迎4 H7 Q" g' o! {( k
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:52
! q/ w7 E5 ^$ d+ \/ n大神来啦,鼓掌欢迎

8 T3 j9 [3 ^) O不敢不敢,明海兄抬举,小白一枚,还在学习中~, `3 @# P$ v9 @7 A! ^, f
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则