<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Making menus]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=561</link>
		<description><![CDATA[The most recent posts in Making menus.]]></description>
		<lastBuildDate>Mon, 21 Jan 2013 17:02:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Making menus]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3538#p3538</link>
			<description><![CDATA[<p>That&#039;s perfect.</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Mon, 21 Jan 2013 17:02:39 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3538#p3538</guid>
		</item>
		<item>
			<title><![CDATA[Re: Making menus]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3532#p3532</link>
			<description><![CDATA[<p>Hi,</p><p>you should use your variable inventory in a different way :</p><div class="codebox"><pre><code>inventory = false

function onSceneUpdate()

    if onKeyDown(&quot;I&quot;) then
        inventory = not inventory -- set inventory to it&#039;s reverse
    end

    if inventory == true then
        setText(text_inv, &quot;Inventory: &quot;)
    else
        setText(text_inv, &quot;nothing&quot;)
    end

end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 21 Jan 2013 07:51:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3532#p3532</guid>
		</item>
		<item>
			<title><![CDATA[Making menus]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3529#p3529</link>
			<description><![CDATA[<p>Hey, Is there some easy way to redo this?</p><p>When I make menus I write:</p><p>function onSceneUpdate()</p><p>if onKeyDown(&quot;I&quot;) or inventory == true then </p><p>setText(text_inv, &quot;Inventory: &quot;)</p><p>end</p><p>end</p><p>But in order to make it pop away by pressing the same key I&#039;m thinking I could write:</p><p>function onSceneUpdate()</p><p>if onKeyDown(&quot;I&quot;) or inventory == true then </p><p>setText(text_inv, &quot;Inventory: &quot;)</p><p>&nbsp; &nbsp; &nbsp; if onKeyDown(&quot;I&quot;) then<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; inventory = false<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; end</p><p>end</p><p>end</p><p>But I can&#039;t since it doesn&#039;t sense that I&#039;m pressing I once. And it goes directly onto the next function and says it&#039;s false vice versa and the menu just stays on all the time (nothing happens). </p><p>Is there some better way to do it? I want to be able to use the same key while in menus.</p><p>Pär</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Sun, 20 Jan 2013 23:39:49 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3529#p3529</guid>
		</item>
	</channel>
</rss>
