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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!, K7 Y* z; N5 G5 i
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"
) f# j7 R  |8 P2 f                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />
& K) k: a6 z# x2 w. U( m- F+ ^) ]. s4 C0 R# w( _
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:* y7 t9 X2 J, ?
, \  R8 p/ h. b2 ^! @
<skin_settings maps="false"$ {- h  y( U: \5 v4 G6 Q
                       maps_type="bing"" Q! L" X7 [" W" c: _7 R3 r8 P
                       maps_bing_api_key=""
7 J. Y& b9 x9 G' I                       maps_zoombuttons="false"
) j# x8 ~9 L( M: m4 ~; W9 P                       gyro="true"0 ?5 i% j& D! W% S5 V0 x) |/ h: W
                       title="true"
. M- ~5 L9 e0 \4 ~$ F) s                       thumbs="true"5 I) ?3 i. b7 W$ x, q
                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
( E* O3 I" l$ J1 ~6 n                       thumbs_opened="false"
* a0 K4 t6 A- N/ D8 A6 K- a: g3 K& p                       thumbs_text="false"+ X5 U; i" A0 I" Z9 \
                       thumbs_dragging="true"
4 v2 Q* L5 }  G& a" f; G3 }                       thumbs_onhoverscrolling="false"7 F5 A0 a/ c  I5 d0 p& j+ z% N: `
                       thumbs_scrollbuttons="false"
3 j, ~, K6 e3 i& a                       thumbs_scrollindicator="false"' c% o9 k9 D% L, R8 \$ L
                       thumbs_loop="false"6 y) C" s7 @6 m- I% C3 L$ I7 H
                       tooltips_thumbs="false"   缩略图上的文字提示
) r% l7 Z  b, v  `- A( l                       tooltips_hotspots="false"  热点上的文字提示1 L- F6 t& C( ~+ l$ x6 c
                       tooltips_mapspots="false"  地图上的文字提示
& d0 D7 T2 \' {                       loadscene_flags="MERGE"* q' C& I9 q& i( P" l3 N0 `
                       loadscene_blend="BLEND(0.5)"+ f2 D: T4 w  C8 P) Z6 ]% d2 u+ U
                       controlbar_offset="20"" D+ q% y" s) A; b- `6 S4 F# l" _* P& N# ^
                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
3 h4 C8 W: t) ?) s, G: f$ S( ^
! E' |9 u, d% R继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14
. \4 P/ e) O) h' N仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
) }  H( P4 S0 ]1 j
, z- j0 Z7 @9 j! P继续研究中。。。。。。。。。。

3 X# M# ?9 b, \" J9 @7 h如果要在热点或layer上显示自定义文字,应该怎样弄呢
; @. ?' X; I8 c% z6 j) y( H6 A5 T/ u6 ^
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">
5 Z  n& }  P# _9 j& o    txtadd(tooltipname, 'tooltip_', get(name));5 y1 |+ S/ I2 e& D
    addplugin(get(tooltipname));. |' ^! g: t; c6 ]! l& V" \
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');" m4 o) R9 |2 B& j" S
    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
& B1 f5 `4 I' I- X7 }    set(plugin[get(tooltipname)].align,top);  N! j, a7 U* p; Q$ N  P) `
    set(plugin[get(tooltipname)].edge,bottom);
! K) q" F5 e  _3 A, P, M    set(plugin[get(tooltipname)].x,0);- X7 G0 D9 H/ V* z4 I
    set(plugin[get(tooltipname)].y,0);
( a" X" B0 ^# g    set(plugin[get(tooltipname)].width,100);, b$ ~% v1 g8 e6 l2 K* G$ |
    set(plugin[get(tooltipname)].autoheight,true);& Q% N8 J; b6 y5 j
    set(plugin[get(tooltipname)].background,true);
' `2 w8 W& G1 T- Z9 l    set(plugin[get(tooltipname)].backgroundcolor,0x000000);- {: o6 S: s  K- F! K
    set(plugin[get(tooltipname)].roundedge,15);8 x- _% U5 B( w8 A6 G$ K9 A
    set(plugin[get(tooltipname)].backgroundalpha,0.5);- X6 F3 b  ]( C" s: A* f' K& @5 j# J
    set(plugin[get(tooltipname)].border,true);
* C" s( D4 X. T- k, N- Z6 A6 B    set(plugin[get(tooltipname)].glow,4);4 }( \4 M8 c- G7 n- W$ p
    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);" x' {) P$ ~$ l- Z4 N0 H) q
    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');/ ?5 }) I+ J& M. [
    set(plugin[get(tooltipname)].textshadow,1);( B4 G1 R6 |4 R6 i8 m* j7 q
    set(plugin[get(tooltipname)].textshadowrange,6.0);) G  H& I( h- @( {+ a  P
    set(plugin[get(tooltipname)].textshadowangle,90);
. A, W  D, F7 p/ q    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);( C4 O& V6 L) l* o7 J) \( X
    set(plugin[get(tooltipname)].enabled,false);        " b* i9 i! Z6 z' L2 @
</action>
% P$ j9 H7 q. ~把这一段代码复制到vtourksin.xml中就可以了。
  }  ~7 s' K, `% f3 A然后找到下面这段代码,复制这个替换就可以了。
<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();"
               />1 ?/ i: u( _, T
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:52
$ k0 V; i# b* L  j, A9 rtxtadd(tooltipname, 'tooltip_', get(name));
3 u* z+ V1 I' p/ l+ v, s    addplugin(get(tooltipname));! S$ N; ?  x: q) G1 T. T
    txtadd(plu ...

. ^. h1 ^  f% q. b1 o, V1 C4 f大神来啦,鼓掌欢迎1 N$ \: @8 Q" s4 V4 b/ f1 o, [
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:52' g# b9 T4 ?1 }
大神来啦,鼓掌欢迎

# T9 z5 {9 U. s- E' [0 i2 e不敢不敢,明海兄抬举,小白一枚,还在学习中~3 c9 j' f( B9 {5 s* G( A3 [% E" U; Y5 N
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则