<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Tooltips always on top.]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=482</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=482&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Tooltips always on top..]]></description>
		<lastBuildDate>Wed, 29 Mar 2017 12:35:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Tooltips always on top.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2119#p2119</link>
			<description><![CDATA[<p>Hello.</p><p>By default, tooltips are drawn using the old UI system, so it is located on top of the uGUI elements.<br />To work around this, draw the tooltips using uGUI.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/uGUICustomTooltipForAllMarkersExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 29 Mar 2017 12:35:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2119#p2119</guid>
		</item>
		<item>
			<title><![CDATA[Tooltips always on top.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2117#p2117</link>
			<description><![CDATA[<p>Hi!</p><p>I use &quot;Online Maps&quot; to put some 3D markers on the map. Sometimes i need to show tooltips (it may be one or more at one moment) for placed markers (1 tooltip for 1 marker of course).</p><p>The problem is that when i need to show some popup (not GUI), tooltips always show over popup, not behind it.</p><p>There is the code i use to my needs:</p><p>....<br />marker3D.OnDrawTooltip += onCustomMarkerDrawTooltip;<br />....</p><p>void onCustomMarkerDrawTooltip(OnlineMapsMarkerBase marker){</p><p>&nbsp; &nbsp; OnlineMapsMarker3D tmpMarker = marker as OnlineMapsMarker3D;<br />&nbsp; &nbsp; Vector2 screenPosition = OnlineMapsControlBase.instance.GetScreenPosition(tmpMarker.position);<br />&nbsp; &nbsp; GUIContent tip = new GUIContent(tmpMarker.label);<br />&nbsp; &nbsp; Vector2 size = tooltipStyle.CalcSize(tip);<br />&nbsp; &nbsp; GUI.Label(new Rect(screenPosition.x - size.x / 2 - 5, Screen.height - screenPosition.y - size.y - 20, size.x + 10, size.y + 5), tmpMarker.label, tooltipStyle);</p><p>}</p><p>Maybe somebody knows how to put tooltips behind the objects? Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (zarcon)]]></author>
			<pubDate>Wed, 29 Mar 2017 10:26:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2117#p2117</guid>
		</item>
	</channel>
</rss>
