<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Disable only the translation of the map]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1156&amp;type=atom" />
	<updated>2019-05-13T20:07:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1156</id>
		<entry>
			<title type="html"><![CDATA[Re: Disable only the translation of the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4937#p4937" />
			<content type="html"><![CDATA[<p>Yes, it work! As always thanks a lot!</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-05-13T20:07:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4937#p4937</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable only the translation of the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4930#p4930" />
			<content type="html"><![CDATA[<p>For example in this way:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class LockMouseDrag: MonoBehaviour
{
    private OnlineMapsControlBase control;

    private void Start()
    {
        control = OnlineMapsControlBase.instance;
        control.OnMapPress += OnMapPress;
    }

    private void OnMapPress()
    {
        control.OnUpdateAfter += OnUpdateAfter;
    }

    private void OnUpdateAfter()
    {
        control.OnUpdateAfter -= OnUpdateAfter;
        control.isMapDrag = false;
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-12T19:26:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4930#p4930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable only the translation of the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4929#p4929" />
			<content type="html"><![CDATA[<p>I should not to limit the map coordinates because actually I&#039;m translating the map by script (that&#039;s why I&#039;d like the user not to be able to move the map with mouse).<br />Is there another way?</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-05-12T16:30:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4929#p4929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable only the translation of the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4925#p4925" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Add Online Maps Limits component, and limit the coordinates to the map coordinates.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-12T09:54:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4925#p4925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Disable only the translation of the map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4922#p4922" />
			<content type="html"><![CDATA[<p>Hello,<br />as the title suggest I&#039;d like to disable ONLY the translation of the map by left mouse click from &quot;TileSetControl&quot;, and let the user just to use to wheel mouse for the zoom.<br />Is it possible?<br />Thank-you!</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-05-11T17:32:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4922#p4922</id>
		</entry>
</feed>
