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

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

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

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

x
想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!! v3 x# b, [/ F& a1 I. V- m
芝麻1 | 2015-4-29 16:49:05 | 显示全部楼层
大神呢?都快出来啊
帕诺喇嘛大叔 | 2015-5-1 05:41:23 | 显示全部楼层
        <hotspot name="spot1" style="hotspot_ani_black"  onhover="showtext('这里添加热点文字',hotspottextstyle);"0 {4 E0 }( v5 U  S# E
                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />6 ?- n, e( ~: G- d" B" T

, B2 Z% o* I+ g; M- f* o% R
鱼眼龙 | 2015-6-2 19:25:14 | 显示全部楼层

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

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:( r' X+ W- Y+ N1 J8 y+ C0 b: s& R. ~
$ d. t; \- j; H& q) C
<skin_settings maps="false"$ a/ N& {0 _! o( r' c
                       maps_type="bing"
. B7 Z6 [8 ^2 e3 k3 X) A4 M                       maps_bing_api_key=""; ?8 P6 E! G1 ?; V- g% R2 |
                       maps_zoombuttons="false"1 g! W6 e: ~. b  r5 |
                       gyro="true"! E( U  B% e6 ]3 _! q  U
                       title="true"
/ n7 k& k4 ?7 n! l! |                       thumbs="true"
* Y) b' U/ q$ }" Y2 C                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"* Q3 p5 o0 f$ X& E% F7 ~- a5 L
                       thumbs_opened="false"6 `3 d& G$ F  j* h
                       thumbs_text="false"2 S5 T9 g: o9 c! t8 \- }" w
                       thumbs_dragging="true"
9 c) I- g. W0 w/ D( J                       thumbs_onhoverscrolling="false"
  K2 N6 X+ Z+ m- c                       thumbs_scrollbuttons="false"2 c  b2 S& I" [% N5 M
                       thumbs_scrollindicator="false"- A6 Y3 @% Z  I& x2 H9 j: b
                       thumbs_loop="false"
4 u6 n; H* }) u! t: t! Z% H$ }                       tooltips_thumbs="false"   缩略图上的文字提示6 j4 X. c. }4 p4 H; E1 K
                       tooltips_hotspots="false"  热点上的文字提示* N3 N( M  i- k/ R/ F1 l
                       tooltips_mapspots="false"  地图上的文字提示$ _3 t5 u$ k6 o' @9 |
                       loadscene_flags="MERGE"
' b) n% u% ~" I0 L7 l                       loadscene_blend="BLEND(0.5)"
% \: Y& S0 i3 D4 p. c$ k                       controlbar_offset="20") s7 `$ T$ K( [! T0 F8 u
                       />
鱼眼龙 | 2015-6-3 10:14:31 | 显示全部楼层
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。, y1 [9 o  J. P2 w& V2 [2 L- i. ~9 L
8 R+ J# b# u" A3 W4 _2 }! t
继续研究中。。。。。。。。。。
keithjack | 2015-12-31 00:01:31 | 显示全部楼层
鱼眼龙 发表于 2015-6-3 10:14! g2 k$ P3 D2 I4 l
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。
  z: k- c7 C+ @- V* f5 ^) x
4 G; u7 R# V) E- _继续研究中。。。。。。。。。。

; ?% r4 z' M$ E如果要在热点或layer上显示自定义文字,应该怎样弄呢( X9 W" O# l+ h. {
云眸传媒 | 2016-5-30 14:52:50 | 显示全部楼层
<action name="add_all_the_time_tooltip">
& ?1 t3 @3 L, j! l4 U; ?$ S    txtadd(tooltipname, 'tooltip_', get(name));
: ]6 V2 [2 J6 Y' G9 X  K2 a    addplugin(get(tooltipname));' b, @6 z9 [$ ~* I$ S: Z7 H* L
    txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
+ @4 z% ?, w" @; _5 ~    set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
$ e* i' M# u9 }5 U4 w- N7 ?' h    set(plugin[get(tooltipname)].align,top);6 s5 L, z+ @! k' s0 @2 _
    set(plugin[get(tooltipname)].edge,bottom);; A: d6 L# P9 \
    set(plugin[get(tooltipname)].x,0);' F( l  n0 \: p" S
    set(plugin[get(tooltipname)].y,0);6 x6 T  w* l/ G
    set(plugin[get(tooltipname)].width,100);3 R; |) y" _% o3 Z1 H% j
    set(plugin[get(tooltipname)].autoheight,true);5 A' T# A" P! k  D& P
    set(plugin[get(tooltipname)].background,true);
* T/ E  e) s* L; K0 g    set(plugin[get(tooltipname)].backgroundcolor,0x000000);1 h0 }; [( @) ^7 r3 Y
    set(plugin[get(tooltipname)].roundedge,15);
: `& @  K0 L9 u! [    set(plugin[get(tooltipname)].backgroundalpha,0.5);4 l' [5 R( z6 |' U
    set(plugin[get(tooltipname)].border,true);
6 n& c1 u1 O% G$ ?; i& B1 c    set(plugin[get(tooltipname)].glow,4);4 h! z) ~: ?( o$ O- m5 v$ n
    set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);% ^1 |, s/ x# V3 r% E: ?2 U
    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');# j% l# X) h3 `2 ^% S+ v! }4 x
    set(plugin[get(tooltipname)].textshadow,1);
/ f6 t% l- B& Z) Q- A/ G    set(plugin[get(tooltipname)].textshadowrange,6.0);
' k; f+ d( t. P2 R' z# R( F8 l    set(plugin[get(tooltipname)].textshadowangle,90);7 x  r2 k5 N$ s* @8 ^& H- o& _
    copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);: Y! C) J" Z% R% x. ^
    set(plugin[get(tooltipname)].enabled,false);        / k' o$ t& m* u( _6 f7 l
</action>
# M6 B( y( s1 i* z! n: F+ v  ?把这一段代码复制到vtourksin.xml中就可以了。
5 S% X0 _& J( z! i然后找到下面这段代码,复制这个替换就可以了。
<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();"
               />' E$ |& R: \( A$ [1 B
明海+ | 2016-5-30 15:52:25 | 显示全部楼层
云眸传媒 发表于 2016-5-30 14:52
: h8 _2 y: f7 ~! vtxtadd(tooltipname, 'tooltip_', get(name));% b; ^- u$ I; r. y% Q3 o; H; B
    addplugin(get(tooltipname));* H; T) h4 m% u6 `) ~! {* S6 L' @
    txtadd(plu ...
; u0 L2 I( q. m. }7 h' ?) t
大神来啦,鼓掌欢迎
' Q4 K7 ^; Q) n" d8 f. Y2 w" b
云眸传媒 | 2016-5-31 10:20:58 | 显示全部楼层
明海+ 发表于 2016-5-30 15:520 n' a" [3 C* a+ k
大神来啦,鼓掌欢迎
* _0 L" ]& q! x& m7 ~
不敢不敢,明海兄抬举,小白一枚,还在学习中~
4 m/ `: W, p& O: t6 o+ e
紅領巾 | 2016-7-27 13:56:17 | 显示全部楼层
学习当中!!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则