<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Rectangular (widescreen) Tileset map instead of square]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=200&amp;type=atom" />
	<updated>2016-07-26T08:49:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=200</id>
		<entry>
			<title type="html"><![CDATA[Re: Rectangular (widescreen) Tileset map instead of square]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=933#p933" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>If you just need to set the size, yes, this is the correct way.</p><p>If you want to dynamically change the size of this is not enough.<br />We have added a new method for the correct resize of tileset.<br />Please update Online Maps.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class ResizeMapExample:MonoBehaviour
{
    private int[] widths = {1024, 2048};
    private int height = 1024;
    private int wIndex = 0;

    private void OnGUI()
    {
        if (GUI.Button(new Rect(5, 5, 100, 30), &quot;Resize&quot;))
        {
            wIndex = 1 - wIndex;
            OnlineMapsTileSetControl.instance.Resize(widths[wIndex], height);
        }
    }
}</code></pre></div></blockquote></div><p>Awesome <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> thank you!</p>]]></content>
			<author>
				<name><![CDATA[StephenAllen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=189</uri>
			</author>
			<updated>2016-07-26T08:49:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=933#p933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rectangular (widescreen) Tileset map instead of square]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=920#p920" />
			<content type="html"><![CDATA[<p>Hello.</p><p>If you just need to set the size, yes, this is the correct way.</p><p>If you want to dynamically change the size of this is not enough.<br />We have added a new method for the correct resize of tileset.<br />Please update Online Maps.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class ResizeMapExample:MonoBehaviour
{
    private int[] widths = {1024, 2048};
    private int height = 1024;
    private int wIndex = 0;

    private void OnGUI()
    {
        if (GUI.Button(new Rect(5, 5, 100, 30), &quot;Resize&quot;))
        {
            wIndex = 1 - wIndex;
            OnlineMapsTileSetControl.instance.Resize(widths[wIndex], height);
        }
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-25T19:53:33Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=920#p920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Rectangular (widescreen) Tileset map instead of square]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=906#p906" />
			<content type="html"><![CDATA[<p>Edit : Found solution, it was as simple as changing the Tileset Width (pixels) and Size (in scene) X&nbsp; options on the &quot;OnlineMaps.cs&quot; script.&nbsp; I think i was over-thinking it lol</p>]]></content>
			<author>
				<name><![CDATA[StephenAllen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=189</uri>
			</author>
			<updated>2016-07-24T15:48:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=906#p906</id>
		</entry>
</feed>
