<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Possible Drawing API bug in newest version]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=426&amp;type=atom" />
	<updated>2017-02-21T14:14:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=426</id>
		<entry>
			<title type="html"><![CDATA[Re: Possible Drawing API bug in newest version]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1868#p1868" />
			<content type="html"><![CDATA[<p>Thanks for your reply, Alex. I&#039;ll try to dig up more, maybe I&#039;m missing something.</p>]]></content>
			<author>
				<name><![CDATA[d.brylenko]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=384</uri>
			</author>
			<updated>2017-02-21T14:14:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1868#p1868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Possible Drawing API bug in newest version]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1862#p1862" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Based on your code, I made a test script (attached), and it works well for all controls.<br />Perhaps the problem is a little bit more specific?!</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-02-20T22:16:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1862#p1862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Possible Drawing API bug in newest version]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1857#p1857" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I have a simple script that moves map position to user location that looks something like this:</p><p>&nbsp; &nbsp; void Update()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (enableMapMovement)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle += Time.deltaTime / time;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (mapMovementAngle &gt; 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.zoom = 17;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enableMapMovement = false;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.position = Vector2.Lerp(lastMapPosition, userLocation.position, mapMovementAngle);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.Redraw();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; public void MoveMapToUser()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (userLocation.inMapView &amp;&amp; enableMapMovement == false)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lastMapPosition = OnlineMaps.instance.position;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enableMapMovement = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.position = userLocation.position;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.zoom = 17;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.Redraw();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>It was working fine, but afer I updated to the newest OnlineMaps version (2.5.2.1) it doesn&#039;t work. Is there any changes in APIs that could cause this?</p>]]></content>
			<author>
				<name><![CDATA[d.brylenko]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=384</uri>
			</author>
			<updated>2017-02-20T11:03:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1857#p1857</id>
		</entry>
</feed>
