Include the plugin's xml file:
<include url="plugins/vrtooltip_hotspots.xml" />
These are the global tooltip settings.
<vrtooltip_style
tooltips_bgcolor="0x000000"
tooltips_bgborder="1 0x000000 0.8"
tooltips_bgalpha="0.8"
tooltips_bgroundedge="5"
tooltips_bgshadow="0 4 10 0x000000 0.3"
tooltips_padding="10 15 10 15"
tooltips_css="span{font-family:Helvetica; font-size:12px; color:#ffffff; margin:0px;}h1{margin:0px;padding:0px;}"
hotspots_bgcolor="0xffffff"
hotspots_pulsate="true"
/>
You can add optionnal attributes in hotspots to overwrite global tooltip settings (see Hotspot settings below)
<hotspot
name="spot1"
style="hsround"
anim="onover"
tooltiptext="[h1]scene [/h1][br/][i]italic text[i/]"
tooltipposition="top"
tooltipdistance="65"
tooltipbgcolor="0x000000"
tooltipbgborder="1 0x000000"
tooltipbgalpha="0.8"
tooltipbgroundedge="5"
tooltipbgshadow="0 4 10 0x000000 0.3"
tooltippadding="10 15 10 15"
tooltipcss="span{font-family:Helvetica; font-size:12px; color:#ffffff; margin: 0px;}h1{margin:0px;padding:0px;}"
icon="skin/info.png"
pulsate="true"
bgcolor="0xffffff"
activehotspotshape="circle"
scale="0.1"
focus="true"
fov="20"
handcursor="true"
linkedscene="..."
onclick="..."
...
/>
<hotspot name="hs01" ath="0" atv="0" style="hsround"
tooltiptext="[center]Default round hotspot,[br/][b]basic tooltip[/b].[/center]" />
<hotspot name="hs02" ath="32" atv="0" style="hssquare" scale="0.4"
tooltiptext="[center]Default square hotspot,[br/][b]basic tooltip[/b].[/center]" />
<hotspot name="hs03" ath="-32" atv="0" style="hsdiamon" scale="0.4"
tooltiptext="[center]Default diamon hotspot,[br/][b]basic tooltip[/b].[/center]" />
<hotspot name="hs04" ath="0" atv="32" style="hsround" scale="0.4"
activehotspotshape="circle"
tooltiptext="[center]Default diamon hotspot,[br/][b]basic tooltip[/b].[br/][b]Circle hotspot when the tooltip is active[/b][/center]" />
<hotspot name="hs05" ath="63.5" atv="0" style="hsround" scale="0.4"
anim="onclick"
tooltiptext="[center][b]Tooltip’s animation on click[/b][/center]" />
<hotspot name="hs06" ath="97.25" atv="0" style="hsround" scale="0.4"
anim="persistent" handcursor="false"
tooltiptext="[center][b]Persistent tooltip[/b][/center]" />
<hotspot name="hs07" ath="126.75" atv="-27" style="hsround" scale="0.4"
tooltipposition="bottom"
tooltiptext="[center][b]Set tooltip's position[/b][/center]" />
<hotspot name="hs08" ath="126.75" atv="-14" style="hsround" scale="0.4"
tooltipposition="rightbottom"
tooltiptext="[center][b]Set tooltip's position[/b][/center]" />
<hotspot name="hs09" ath="126.75" atv="0" style="hsround" scale="0.4"
tooltipposition="left"
tooltiptext="[center][b]Set tooltip's position[/b][/center]" />
<hotspot name="hs10" ath="126.75" atv="14" style="hsround" scale="0.4"
tooltipposition="righttop"
tooltiptext="[center][b]Set tooltip's position[/b][/center]" />
<hotspot name="hs11" ath="126.75" atv="27" style="hsround" scale="0.4"
tooltipposition="lefttop"
tooltiptext="[center][b]Set tooltip's position[/b][/center]" />
<hotspot name="hs12" ath="-63.55" atv="0" style="hsround" scale="0.4"
icon="skin/info.png" bgcolor="0xff0000"
tooltiptext="[center][b]Hotspot with icon and custom color[/b][/center]" />
<hotspot name="hs13" ath="-97.25" atv="0" style="hsround" scale="0.4"
pulsate="false"
tooltiptext="[center][b]Hotspot without pulse[/b][/center]" />
<hotspot name="hs14" ath="-126.75" atv="0" style="hsround" scale="0.4"
onclick="openurl('https://google.fr',_blank);" anim="onclick"
tooltiptext="[center][b]Action on a tooltip when clicking[/b][/center][br/][small]example : link to google.com on onClick event[/small]" />
<hotspot name="hs15" ath="-97.25" atv="-32" style="hssquare" scale="0.4"
tooltipdistance="30" tooltipbgcolor="0xff0000" tooltipbgborder="2 0xffffff 0.8"
tooltipbgalpha="0.5" tooltipbgroundedge="5" tooltipbgshadow="0"
tooltipposition="bottom"
tooltiptext="[center][b]Example of personalized tooltip[/b][/center]" />
<hotspot name="hs16" ath="-97.25" atv="32" style="hsdiamon" scale="0.4"
tooltipdistance="75" tooltipbgborder="0 0xffffff 0.8"
tooltipbgalpha="0" tooltipbgroundedge="5" tooltipbgshadow="0"
icon="skin/eyes.png" bgcolor="0x000000"
tooltiptext="[center][h2]Example of personalized tooltip[/h2][/center]" />