<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Immediate GUIs in XNA: Setup and a button</title>
	<atom:link href="http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/feed/" rel="self" type="application/rss+xml" />
	<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/</link>
	<description>My programming world</description>
	<lastBuildDate>Tue, 10 Aug 2010 22:40:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Haigha</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-409</link>
		<dc:creator>Haigha</dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-409</guid>
		<description>How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great</description>
		<content:encoded><![CDATA[<p>How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Triesscheijn’s Weblog &#187; Blog Archive &#187; Immediate GUIs in XNA: Scrollbars</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-401</link>
		<dc:creator>Roy Triesscheijn’s Weblog &#187; Blog Archive &#187; Immediate GUIs in XNA: Scrollbars</dc:creator>
		<pubDate>Tue, 30 Mar 2010 19:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-401</guid>
		<description>[...] Immediate GUIs in XNA: Setup and a button [...]</description>
		<content:encoded><![CDATA[<p>[...] Immediate GUIs in XNA: Setup and a button [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Triesscheijn</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-378</link>
		<dc:creator>Roy Triesscheijn</dc:creator>
		<pubDate>Fri, 19 Mar 2010 09:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-378</guid>
		<description>Damn, and I even did that two times. Altough it&#039;s not really wrong, it&#039;s of course nicer to say:
&lt;code&gt;
return mouse.LeftButton == ButtonState.Released &amp;&amp; hotItem == id &amp;&amp; activeItem == id;
&lt;/code&gt;

And
&lt;code&gt;
return rectangle.Contains(new Point(mouse.X, mouse.Y)
&lt;/code&gt;

The second one slipped in because at first I did some extra checks, but the first one is unexcusable, thanks for pointing these two out! I&#039;ll fix them immediately.</description>
		<content:encoded><![CDATA[<p>Damn, and I even did that two times. Altough it&#8217;s not really wrong, it&#8217;s of course nicer to say:<br />
<code><br />
return mouse.LeftButton == ButtonState.Released &amp;&amp; hotItem == id &amp;&amp; activeItem == id;<br />
</code></p>
<p>And<br />
<code><br />
return rectangle.Contains(new Point(mouse.X, mouse.Y)<br />
</code></p>
<p>The second one slipped in because at first I did some extra checks, but the first one is unexcusable, thanks for pointing these two out! I&#8217;ll fix them immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-377</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 19 Mar 2010 08:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-377</guid>
		<description>Whats the difference:
&lt;code&gt;
if (mouse.LeftButton == ButtonState.Released &amp;&amp; hotItem == id &amp;&amp; activeItem == id)
40
        return true;
41
      return false;

&lt;/code&gt;

or
&lt;code&gt;
return mouse.LeftButton == ButtonState.Released &amp;&amp; 
      hotItem == id 
      &amp;&amp; activeItem == id;
&lt;/code&gt;

Basicly, what you are saying is:

&lt;code&gt;
if(something == true)
 return true;
else if(something == false)
 return false;
&lt;/code&gt;
That doesnt look right IMHO.</description>
		<content:encoded><![CDATA[<p>Whats the difference:<br />
<code><br />
if (mouse.LeftButton == ButtonState.Released &amp;&amp; hotItem == id &amp;&amp; activeItem == id)<br />
40<br />
        return true;<br />
41<br />
      return false;</p>
<p></code></p>
<p>or<br />
<code><br />
return mouse.LeftButton == ButtonState.Released &amp;&amp;<br />
      hotItem == id<br />
      &amp;&amp; activeItem == id;<br />
</code></p>
<p>Basicly, what you are saying is:</p>
<p><code><br />
if(something == true)<br />
 return true;<br />
else if(something == false)<br />
 return false;<br />
</code><br />
That doesnt look right IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Triesscheijn</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-376</link>
		<dc:creator>Roy Triesscheijn</dc:creator>
		<pubDate>Fri, 19 Mar 2010 07:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-376</guid>
		<description>Why is that? If you only use a single statement after an if instead of something between  { }  that will get exectued. Or it will get skipped over if the if evaluates to false.  Also returning true will immediately jump out of the method.

So its the same as:
if(something)
{
    return true;
}
else
{
    return false;
}</description>
		<content:encoded><![CDATA[<p>Why is that? If you only use a single statement after an if instead of something between  { }  that will get exectued. Or it will get skipped over if the if evaluates to false.  Also returning true will immediately jump out of the method.</p>
<p>So its the same as:<br />
if(something)<br />
{<br />
    return true;<br />
}<br />
else<br />
{<br />
    return false;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://roy-t.nl/index.php/2010/03/10/immediate-guis-in-xna-setup-and-a-button/comment-page-1/#comment-375</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 18 Mar 2010 23:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=307#comment-375</guid>
		<description>&lt;code&gt;
if(rectangle.Contains(new Point(mouse.X, mouse.Y)))
                return true;
      return false;
&lt;/code&gt;

Code like this makes me giggle :)</description>
		<content:encoded><![CDATA[<p><code><br />
if(rectangle.Contains(new Point(mouse.X, mouse.Y)))<br />
                return true;<br />
      return false;<br />
</code></p>
<p>Code like this makes me giggle <img src='http://roy-t.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
