<?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 — Labels outside map]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2117</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2117&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Labels outside map.]]></description>
		<lastBuildDate>Thu, 11 May 2023 14:52:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Labels outside map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9023#p9023</link>
			<description><![CDATA[<p>Great! It worked!<br />Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (mouta)]]></author>
			<pubDate>Thu, 11 May 2023 14:52:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9023#p9023</guid>
		</item>
		<item>
			<title><![CDATA[Re: Labels outside map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9022#p9022</link>
			<description><![CDATA[<p>If I understand your screenshot correctly, you are using Show Marker Tooltip - Always, and have hidden part of the map using UI element.<br />You can make the map not show tooltip when the marker is under the UI element this way:<br /></p><div class="codebox"><pre><code>using UnityEngine;

namespace InfinityCode.OnlineMapsSupport
{
    public class HideTooltipOverUI : MonoBehaviour
    {
        private static GUIContent content;
        private OnlineMapsControlBase control;

        private void OnDrawTooltip(GUIStyle style, string text, Vector2 position)
        {
            if (Event.current.type != EventType.Repaint) return;
            if (control.IsCursorOnUIElement(position)) return;

            content.text = text;
            Vector2 size = style.CalcSize(content);
            Rect rect = new Rect(position.x - size.x / 2 - 5, Screen.height - position.y - size.y - 20, size.x + 10, size.y + 5);
            style.Draw(rect, content, false, false, false, false);
        }

        private void Start()
        {
            content = new GUIContent();
            OnlineMapsGUITooltipDrawer.OnDrawTooltip += OnDrawTooltip;
            control = OnlineMapsControlBase.instance;
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 11 May 2023 09:34:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9022#p9022</guid>
		</item>
		<item>
			<title><![CDATA[Re: Labels outside map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9021#p9021</link>
			<description><![CDATA[<p>You are right. I uploaded it. <br />Now you can see the label &quot;Player&quot; of the marker still showing.</p>]]></description>
			<author><![CDATA[null@example.com (mouta)]]></author>
			<pubDate>Thu, 11 May 2023 08:50:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9021#p9021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Labels outside map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9020#p9020</link>
			<description><![CDATA[<p>Hi.</p><p>Unfortunately, your post has no attachments.<br />The image will be very useful to understand the problem, because the labels should hide outside the map out of the box.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 10 May 2023 19:45:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9020#p9020</guid>
		</item>
		<item>
			<title><![CDATA[Labels outside map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9019#p9019</link>
			<description><![CDATA[<p>Hi. How can I make markers hide their labels when they are outside the map? I put a printscreen image as an attachment.<br />Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (mouta)]]></author>
			<pubDate>Wed, 10 May 2023 15:27:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9019#p9019</guid>
		</item>
	</channel>
</rss>
