<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nifty-gui &#187; bubble</title>
	<atom:link href="http://nifty-gui.lessvoid.com/archives/category/bubble/feed" rel="self" type="application/rss+xml" />
	<link>http://nifty-gui.lessvoid.com</link>
	<description>a nifty gui for your java opengl/lwjgl application</description>
	<lastBuildDate>Sun, 15 Jan 2012 17:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tygron Serious Gaming supports Nifty GUI!</title>
		<link>http://nifty-gui.lessvoid.com/archives/339</link>
		<comments>http://nifty-gui.lessvoid.com/archives/339#comments</comments>
		<pubDate>Sun, 16 Oct 2011 19:32:07 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=339</guid>
		<description><![CDATA[Everything started when I was answering a question on the regular jMonkeyEngine3 Nifty GUI support forum and some questions somewhere in the comment section of this Nifty GUI blog. Someone had build a converter to convert Java Swing GUIs into Nifty GUI XML files. Interesting! As it turned out these posts were related to each [...]]]></description>
			<content:encoded><![CDATA[<p>Everything started when I was answering <a href="http://jmonkeyengine.org/groups/gui/forum/topic/nifty-export-to-xml/">a question on the regular jMonkeyEngine3 Nifty GUI support forum</a> and some questions somewhere in the comment section of this Nifty GUI blog. Someone had build a converter to convert Java Swing GUIs into Nifty GUI XML files. Interesting!</p>
<p>As it turned out these posts were related to each other and were both coming from the same gaming company <a href="http://www.tygron.nl/">Tygron Serious Gaming</a> located in The Hague, The Netherlands. A couple of emails later we&#8217;ve identified some things that they&#8217;d like to be improved as well as other things to be added to Nifty. Since some of their existing game assets relied on the direct display of HTML data &#8211; which Nifty did not supported &#8211; they were especially interested in adding basic HTML support to Nifty.</p>
<p>Everything was very friendly and they especially made it clear from the very beginning that they had no interest in messing with Niftys &#8220;openness&#8221; in any way. That means that everything we&#8217;d change or add to Nifty will still be available for free without any added restrictions. I think this is not something that you can take for granted when dealing with a corporation. So in general that is a very nice attitude! Kudos for them for this!</p>
<p>To discuss all of this in more detail they&#8217;ve invited me to The Hague and suddenly I was sitting in a train to the Netherlands to meet everyone involved in the project. Travelling to discuss Nifty related things in a meeting! Amazing!<br />
 <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>As expected everybody was nice and friendly. Marieke &#8211; their Office Manager &#8211; did an excellent job in organizing my travel and Raymond made sure that I&#8217;ve ended up at the right place.</p>
<p>Here is a little group photo they did. Look for me in a dark gray shirt in the middle of the picture.</p>
<div id="attachment_341" class="wp-caption aligncenter" style="width: 310px"><a href="http://nifty-gui.lessvoid.com/wp-content/2011/10/photo-tygron-2011.jpg"><img src="http://nifty-gui.lessvoid.com/wp-content/2011/10/photo-tygron-2011-300x192.jpg" alt="" title="Tygron Meeting" width="300" height="192" class="size-medium wp-image-341" /></a><p class="wp-caption-text">Tygron Nifty GUI Meeting</p></div>
<p>It was really amazing to see Nifty being used in commercial software running on their big screen in the conference room! And seeing the Java Swing to Nifty GUI converter in action was quite amazing as well!<br />
 <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  </p>
<p>So what do you, as a Nifty User, get out of this collaboration? Basically two things: </p>
<p>- Niftys memory overhead has been greatly reduced. Nifty is now a lot more GC friendly (improved FPS too)<br />
- The <a href="https://sourceforge.net/apps/mediawiki/nifty-gui/index.php?title=Nifty_Basic_HTML_Module_%28Nifty_1.3.1%29">HTML Module</a> is now available and will be a part of Nifty 1.3.1. This adds basic HTML support to Nifty which allows you to generate Nifty elements from basic (!) HTML data.</p>
<p>Well, exciting times for Nifty GUI!</p>
<p>So, I&#8217;d like to take this opportunity to (again) thank Maxim, Jeroen and especially Raymond and William for the invitation and of course Marieke for the whole organisation!</p>
<p>Thank you Tygron!<br />
void</p>
<p><strong>About Tygron Serious Gaming<br />
</strong><br />
Tygron Serious Gaming is a serious game developer located in The Hague, The Netherlands. It specializes in bringing real-life complex management challenges that have multiple actors with unique tasks and different interests into a ‘multiplayer serious game’, making use of modern game technology.</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/339/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nifty User zozo64 creates Basis Drag and Drop Demo!</title>
		<link>http://nifty-gui.lessvoid.com/archives/155</link>
		<comments>http://nifty-gui.lessvoid.com/archives/155#comments</comments>
		<pubDate>Mon, 28 Jun 2010 21:35:17 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=155</guid>
		<description><![CDATA[See! This is what I&#8217;ve meant! Nifty gives you an easy to use framework that you can extend with your own ideas. Just like Nifty user zozo64 did. Nifty is missing drag and drop support? No problem! He created his own! To be honest, he found some bugs too but all of that improved Niftys [...]]]></description>
			<content:encoded><![CDATA[<p>See! This is what I&#8217;ve meant! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Nifty gives you an easy to use framework that you can extend with your own ideas. Just like Nifty user zozo64 did. Nifty is missing drag and drop support? No problem! He created his own! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>To be honest, he found some bugs too <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but all of that improved Niftys core systems. So that&#8217;s a good thing. We&#8217;ll probably bring his work as a standard drag and drop control into the standard controls project soon.</p>
<p>For the moment you can take a look at the code. It&#8217;s part of the nifty examples project:</p>
<p><a href="http://nifty-gui.svn.sourceforge.net/viewvc/nifty-gui/nifty-examples/trunk/src/main/java/de/lessvoid/nifty/examples/dragndrop/">http://nifty-gui.svn.sourceforge.net/viewvc/nifty-gui/nifty-examples/trunk/src/main/java/de/lessvoid/nifty/examples/dragndrop/</a></p>
<p>And here is a first preview of zozo64 work:</p>
<p><object width="640" height="480"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12880005&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=FF7700&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12880005&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=FF7700&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="480"></embed></object>
<p><a href="http://vimeo.com/12880005">Nifty Basic Drag and Drop</a> from <a href="http://vimeo.com/user1070526">void</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/155/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nightly Builds Available</title>
		<link>http://nifty-gui.lessvoid.com/archives/142</link>
		<comments>http://nifty-gui.lessvoid.com/archives/142#comments</comments>
		<pubDate>Fri, 14 May 2010 20:13:16 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[nightly builds]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=142</guid>
		<description><![CDATA[Nifty will now build each midnight automatically. Well, at least when this computer here is running at this time which, erm, should be often Hudson will svn checkout all relevant nifty projects and will then &#8220;mvn clean deploy&#8221; them to the nifty maven repository at sf.net. This means that all projects that are already being [...]]]></description>
			<content:encoded><![CDATA[<p>Nifty will now build each midnight automatically. Well, at least when this computer here is running at this time which, erm, should be often <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://hudson-ci.org/">Hudson</a> will svn checkout all relevant nifty projects and will then &#8220;mvn clean deploy&#8221; them to the nifty maven repository at sf.net. This means that all projects that are already being build with maven and have this in their pom.xml:</p>
<pre class="brush:xml">&lt;repositories&gt;
    &lt;repository&gt;
      &lt;id&gt;nifty-maven-repo.sourceforge.net&lt;/id&gt;
      &lt;url&gt;http://nifty-gui.sourceforge.net/nifty-maven-repo&lt;/url&gt;
    &lt;/repository&gt;
&lt;/repositories&gt;</pre>
<p>will automatically get the latest nifty builds!</p>
<p>Currently this means 1.2-SNAPSHOT for Nifty as well as the Nifty Default Controls and the black Style projects and 1.0-SNAPSHOT for the new Nifty Renderer Projects.</p>
<p>Currently the following projects are build each night.</p>
<p><strong>Nifty</strong><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty/</a><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-default-controls/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-default-controls/</a><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-style-black/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-style-black/</a></p>
<p><strong>Nifty Renderer</strong><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-lwjgl-slick-renderer/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-lwjgl-slick-renderer/</a><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-lwjgl-renderer/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-lwjgl-renderer/</a><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-slick-renderer/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-slick-renderer/</a><br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-java2d-renderer/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-java2d-renderer/</a></p>
<p>The JME2 Renderer currently has some weird problems being automatically build. So this is not yet available &#8211; still working on it:<br />
<a href="http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-jme-renderer/">http://nifty-gui.sourceforge.net/nifty-maven-repo/lessvoid/nifty-jme-renderer/</a></p>
<p>If you&#8217;re not using Maven you should still be able to get the SNAPSHOT jars from the URLs mentioned above. Just find the sub directory 1.2-SNAPSHOT or 1.0-SNAPSHOT and get the latest JAR from there. Don&#8217;t mind the name of the jar tho. It&#8217;s automatically generated by Maven and it&#8217;s just named with the build date and time.</p>
<p>Good luck!<br />
void</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/142/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically Changing Button Text/Width and the Centerlayout</title>
		<link>http://nifty-gui.lessvoid.com/archives/122</link>
		<comments>http://nifty-gui.lessvoid.com/archives/122#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:03:55 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[button control text]]></category>
		<category><![CDATA[button text]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[changing text]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=122</guid>
		<description><![CDATA[Jattra tries to dynamically change button text from within Java and he needs a Button that automatically resizes according to the width of the changed text. You can follow both threads at the Nifty Help Forum at sf.net: Changing Button Text Thread Resizing Buttons to Text Thread. Read the complete blog post for details. Dynamically [...]]]></description>
			<content:encoded><![CDATA[<p>Jattra tries to dynamically change button text from within Java and he needs a Button that automatically resizes according to the width of the changed text.</p>
<p>You can follow both threads at the Nifty Help Forum at sf.net:</p>
<ul>
<a href="https://sourceforge.net/projects/nifty-gui/forums/forum/807893/topic/3546927">Changing Button Text Thread</a></ul>
<ul>
<a href="https://sourceforge.net/projects/nifty-gui/forums/forum/807893/topic/3558041">Resizing Buttons to Text Thread</a>.</ul>
<p>Read the complete blog post for details.<br />
<span id="more-122"></span></p>
<p>Dynamically changing text was easy and has been added to the ButtonControl. You can now simply change text with the following code from java:</p>

<div class="wp_syntax"><div class="code"><pre class="java5">screen.<span style="color: #006600;">findControl</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;backButton&quot;</span>, ButtonControl.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">setText</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;New Text&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Automatically resizing Buttons was a bit more involving tho.</p>
<p>Nifty actually has build in support for resizing elements according to other elements. But before we can understand what that means we first need to know a bit about the internal workings of a Nifty Button Control.</p>
<p>A Nifty Button consists of a Panel element with childLayout=&#8221;center&#8221; and one child element which is a Label element that represents the actual button text. So far so good and the standard style set (nifty-style-black) simply adds a fixed width to the button.</p>
<p>So simply using the Button control:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;control</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Hello World&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></pre></div></div>

<p>will give you a button with a style specific fixed width.</p>
<p>You can override this fixed width when you use the button control like that:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;control</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;4532px&quot;</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Hello Large Button World&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></pre></div></div>

<p>This works pretty good if you don&#8217;t need to change the button label text. No matter what you do to a button with a fixed width it will always stay at this width (Unless you change the width constraint from code as one of Jattras code examples shows. And although this works it is a bit cumbersome but until now the only way to achieve resizing buttons).</p>
<p>So what should we do to fix this?</p>
<p>Well, actually there is not really much to do. If you ever used a childLayout=&#8221;vertical&#8221; on something without setting a width but every child in that special element had a fixed size you already have seen that Nifty actually resizes the parent element!</p>
<p>And this is basically default behaviour in Nifty: Whenever Nifty finds an element without a width (or height) constraint it looks at all the child elements and if they all have a fixed width (or height) it automatically resizes the parent element to the size of all child elements.</p>
<p>And this is just what we need here <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As stated above the Button control uses childLayout=&#8221;center&#8221; and up until now the center layout did not support this kind of auto-resizing feature. But this has been added to svn a moment ago.</p>
<p>So whenever Nifty encounters an element with childLayout=&#8221;center&#8221; and the child element has a fixed width then it will resize the element to the child width. And this works for our button control too! And it works even when dynamically changing text from within Java <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Well, there is one thing to note tho. For backward compatibility the nifty-style-black still sets a fixed width to the button. So to enable the auto resizing you have to override the witdh of the button with an empty String.</p>
<p>Example to enable the auto resizing Button:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;control</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;autoresizing button&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></pre></div></div>

<p>And that&#8217;s it. <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Note:</strong><br />
Another thing to note is, that the change to the center layout logic now requires you to set a width to all elements that use childLayout=&#8221;center&#8221;. Before this change there was no auto resizing done to elements that use center layout. To prevent the auto resizing that will be used on that elements now you need to specify a width to this elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/122/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Feature &#8211; Keyframes for Nifty Effects</title>
		<link>http://nifty-gui.lessvoid.com/archives/108</link>
		<comments>http://nifty-gui.lessvoid.com/archives/108#comments</comments>
		<pubDate>Tue, 27 Oct 2009 01:05:40 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[interpolation]]></category>
		<category><![CDATA[introduction]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=108</guid>
		<description><![CDATA[Well, I&#8217;m currently rewriting the old Nifty Introduction Demonstration that somehow didn&#8217;t survive my last blog server switch It was posted right here but the jnlp disappear. The demo explained some basic concepts of Nifty and it was written in Nifty I&#8217;m rewritting it now to update it to the current Nifty Standards. In the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;m currently rewriting the old Nifty Introduction Demonstration that somehow didn&#8217;t survive my last blog server switch <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  It was <a href="http://nifty-gui.lessvoid.com/archives/9">posted right here</a> but the jnlp disappear. The demo explained some basic concepts of Nifty and it was written in Nifty <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;m rewritting it now to update it to the current Nifty Standards.</p>
<p>In the process I just want a moving Nifty GUI Logo like this one</p>
<p><a href="http://nifty-gui.lessvoid.com/wp-content/2009/10/tutorial-intro.gif"><img class="alignnone size-medium wp-image-109" title="tutorial-intro" src="http://nifty-gui.lessvoid.com/wp-content/2009/10/tutorial-intro.gif" alt="" width="128" height="96" /></a></p>
<p>So the logo should resize while fading in and keep on resizing while fading out.</p>
<p><span id="more-108"></span><br />
My first try was this xml (only the resizing part is shown with the &#8220;imageSize&#8221; effect attached to &#8220;onStartScreen&#8221;):</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;onStartScreen</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;imageSize&quot;</span> <span style="color: #000066;">startSize</span>=<span style="color: #ff0000;">&quot;0.7&quot;</span> <span style="color: #000066;">endSize</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">neverStopRendering</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;onStartScreen</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;imageSize&quot;</span> <span style="color: #000066;">startSize</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">endSize</span>=<span style="color: #ff0000;">&quot;1.3&quot;</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">neverStopRendering</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">startDelay</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></pre></div></div>

<p>Which was reasonable but doesn&#8217;t work. It doesn&#8217;t work because effects with a startDelay are in fact already active. In this case the second onStartScreen imageSize effect overwrites the first one with it&#8217;s intial startSize of 1.0 for the time the startDelay is active. Which, yeah, makes sense for most effects but sucks in this case.</p>
<p>What I&#8217;d really want to write is this instead:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;onStartScreen</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;imageSize&quot;</span> <span style="color: #000066;">neverStopRendering</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;value</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0.7&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;value</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;value</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;1200&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1.3&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/onStartScreen<span style="font-weight: bold; color: black;">&gt;</span></span></span></pre></div></div>

<p>Well, and now you can actually write it like this! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>What this does is performing linear interpolation for of the given values. In the example above the value for the imageSize effect starts with 0.7 and changes to 1.0 over a time of 600ms. After that it continues to be interpolated from 1.0 to 1.3 for the next 600ms. When value tags are present they will overwrite the length parameter of the effect. So in the example the imageSize effect will last for 1200ms.</p>
<p>I&#8217;ve just commited this to svn. It is still work in progress and is therefore only available for the &#8220;imageSize&#8221; and the &#8220;fade&#8221; effect. I&#8217;m currently thinking about extending it to other effects where it is appropriate. I&#8217;m also considering to not only interpolate float values but to make it more general and the actual values are effect specific, so that you could interpolate color values for instance.</p>
<p>void</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/108/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So and what&#8217;s next?</title>
		<link>http://nifty-gui.lessvoid.com/archives/89</link>
		<comments>http://nifty-gui.lessvoid.com/archives/89#comments</comments>
		<pubDate>Sat, 29 Aug 2009 21:15:10 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=89</guid>
		<description><![CDATA[Well, Nifty 1.0 should be quite stable now. It&#8217;s probably not perfect yet but you already get a whole lot to play with already So, what&#8217;s next with Nifty? Write more Documentation: Programmers Manual / Introduction to Nifty as a little PDF book is planned. Looking forward to this! Reference Wiki for all the Effects [...]]]></description>
			<content:encoded><![CDATA[<p>Well, Nifty 1.0 should be quite stable now. It&#8217;s probably not perfect yet but you already get a whole lot to play with already <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, what&#8217;s next with Nifty?</p>
<p>Write more Documentation:</p>
<ul>
<li>Programmers Manual / Introduction to Nifty as a little PDF book is planned. Looking forward to this! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Reference Wiki for all the Effects and Element Attributes and so on</li>
</ul>
<p>Make it more usable:</p>
<ul>
<li>Allow another &#8220;language&#8221; to define the GUI in (besides XML). Maybe a DSL in groovy or scala or something else <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Fix bugs and other issues</li>
<li>Improve the Layout Part and make this more easy and accessible</li>
</ul>
<p>Make it more modular:</p>
<ul>
<li>Nifty now depends on Slick for Sound and Image handling. Some people reported that they don&#8217;t want to be forced to be dependent on Slick. So to have Slick as an Option would be a plus (this is already prepared for but was too much work to finish for 1.0 <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Make even better Slick integration xD</li>
<li>Split Nifty into even more modules so that you can only use the part you need (effects for instance could be another jar)</li>
</ul>
<p>And that&#8217;s the current plan!</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/89/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1.0 &#8211; RC 1</title>
		<link>http://nifty-gui.lessvoid.com/archives/82</link>
		<comments>http://nifty-gui.lessvoid.com/archives/82#comments</comments>
		<pubDate>Sun, 29 Mar 2009 17:38:16 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=82</guid>
		<description><![CDATA[I&#8217;ve just commited some final changes to the loader to svn. Finally everything is in place again. Changing the loading code was a lot more work than expected. But adding a preprocessing step was the key to solve all the issues and get the code much cleaner. As an additional benefit nifty now knows for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just commited some final changes to the loader to svn.</p>
<p>Finally everything is in place again. Changing the loading code was a lot more work than expected. But adding a preprocessing step was the key to solve all the issues and get the code much cleaner.</p>
<p>As an additional benefit nifty now knows for every attribute from which style it came from. So removing a style and replacing it with another one on the fly is supported <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We&#8217;re now testing the current version in svn with an actual game. When everything works ok the 1.0 release of nifty gui will be available soon &#8211; for real this time <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In the meantime you can follow nifty development at <a href="http://twitter.com/niftygui">twitter</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="290" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="TwitterWidget" /><param name="bgcolor" value="#000000" /><param name="align" value="middle" /><param name="flashvars" value="userID=25799582&amp;styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml" /><param name="src" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" /><embed type="application/x-shockwave-flash" width="290" height="350" src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" flashvars="userID=25799582&amp;styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml" align="middle" bgcolor="#000000" name="TwitterWidget"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/82/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Slick and Lwjgl Library Versions + More Maven Love</title>
		<link>http://nifty-gui.lessvoid.com/archives/74</link>
		<comments>http://nifty-gui.lessvoid.com/archives/74#comments</comments>
		<pubDate>Sat, 14 Mar 2009 10:11:12 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[lwjgl]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven repo]]></category>
		<category><![CDATA[maven repositoy]]></category>
		<category><![CDATA[Slick]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=74</guid>
		<description><![CDATA[I&#8217;ve now updated the Nifty Dependencies in SVN (for the Nifty 1.0 Release) to the following Versions: Slick #239 Lwjgl 2.0.1 Besides that I realized that I&#8217;ve already had setup a Nifty Maven Repository at Sourceforge. This was meant to store Nifty releases to allow other Projects that use Maven and Nifty to easily access [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve now updated the Nifty Dependencies in SVN (for the Nifty 1.0 Release) to the following Versions:</p>
<ul>
<li>Slick #239</li>
<li>Lwjgl 2.0.1</li>
</ul>
<p>Besides that I realized that I&#8217;ve already had setup a Nifty Maven Repository at Sourceforge. This was meant to store Nifty releases to allow other Projects that use Maven and Nifty to easily access the Nifty libs. So for instance you just need to add:</p>
<pre>&lt;repositories&gt;
  &lt;repository&gt;
    &lt;id&gt;nifty-maven-repo.sourceforge.net&lt;/id&gt;
    &lt;url&gt;http://nifty-gui.sourceforge.net/nifty-maven-repo&lt;/url&gt;
  &lt;/repository&gt;
&lt;/repositories&gt;</pre>
<p>to your applications pom.xml and it will automatically find the Nifty dependency <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So far so good.</p>
<p>BUT</p>
<p>Today I realized that I could use the same approach to get Lwjgl and Slick2D easily under Maven control. So when switching the Versions to Slick #239 und Lwjgl 2.0.1 I deployed both libs to the Nifty Maven Repo at Sourceforge! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So what does this mean for you?</p>
<p>It means just one thing. It&#8217;s now easier then ever to build Nifty! Just &#8220;svn co&#8221; it from Sourceforge and execute &#8220;mvn package&#8221; and it should automatically download all required libs without any changes!</p>
<p>Nifty! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/74/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improved support for dynamically created Controls</title>
		<link>http://nifty-gui.lessvoid.com/archives/69</link>
		<comments>http://nifty-gui.lessvoid.com/archives/69#comments</comments>
		<pubDate>Mon, 09 Mar 2009 22:02:19 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=69</guid>
		<description><![CDATA[Nifty was meant to read everything from XML files. But sometimes this is not enough because you need to decide from within your code what needs to be created. This was possible in older versions of Nifty but was kinda tricky. With Nifty 1.0 (currently available in svn) this has been improved. There are now [...]]]></description>
			<content:encoded><![CDATA[<p>Nifty was meant to read everything from XML files. But sometimes this is not enough because you need to decide from within your code what needs to be created.</p>
<p>This was possible in older versions of Nifty but was kinda tricky.</p>
<p>With Nifty 1.0 (currently available in svn) this has been improved. There are now special classes available to create and configure the build-in elements like Panel, Text, Label and Image.</p>
<p>Example use:</p>

<div class="wp_syntax"><div class="code"><pre class="java5">CreatePanel createPanel = <span style="color: #000000; font-weight: bold;">new</span> CreatePanel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
createPanel.<span style="color: #006600;">setChildLayout</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;horizontal&quot;</span><span style="color: #66cc66;">&#41;</span>;
createPanel.<span style="color: #006600;">setHeight</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;8px&quot;</span><span style="color: #66cc66;">&#41;</span>;
createPanel.<span style="color: #006600;">create</span><span style="color: #66cc66;">&#40;</span>nifty, screen, parent<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>There is now even support to dynamically create your controls with a CreateCustomControl class.</p>
<p>Nifty stuff <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/69/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Well &#8230;</title>
		<link>http://nifty-gui.lessvoid.com/archives/55</link>
		<comments>http://nifty-gui.lessvoid.com/archives/55#comments</comments>
		<pubDate>Thu, 12 Feb 2009 22:38:31 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[bubble]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=55</guid>
		<description><![CDATA[&#8230; actually I really want to release Nifty 1.0 at the end of 2008. But as we added feature after feature, well, things got a bit unstable and pretty ugly (To be honest &#8230; fubar . So some parts of the controls broke, some demos broke and parts of nifty turned to crap. I tried [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; actually I really want to release Nifty 1.0 at the end of 2008.</p>
<p>But as we added feature after feature, well, things got a bit unstable and pretty ugly (To be honest &#8230; fubar <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . So some parts of the controls broke, some demos broke and parts of nifty turned to crap.</p>
<p>I tried to fix it, but especially the loading code (loading xml and creating the runtime nifty object tree from it) got to messed up for any repair.</p>
<p>So we took a break from it.</p>
<p>But now we&#8217;re back! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve started rewritting the loader code and everything looks shiny, new and great again. It&#8217;s not finished yet (control loading is still missing) but it&#8217;s looking much cleaner than the old stuff.</p>
<p>BTW: I&#8217;ve invented a small little side project while rewritting the loader. It&#8217;s kinda another XML Java Binding Project that is based around my own little XML-Schema Definition called &#8220;Lightweight XML Schema&#8221; (lwxs). The project still relies on XPP3 for xml parsing. You can basically describe what your xml file looks like (exactly like XSD but much simpler) and then you can easily read a matching XML file to some representation in java. It&#8217;s all very simple but made the loader pretty easy <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And mind you, only the loader was broken! The Nifty core engine has not been changed and is still pretty solid <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So hang on! Great things are about to happen!<br />
void</p>
<p>PS: New <a title="Nifty GUI Documentation Project" href="http://apps.sourceforge.net/mediawiki/nifty-gui/index.php?title=Main_Page" target="_self">Wiki Documentation Project for Nifty GUI</a> started.<br />
PPS: Nifty 1.0 &#8211; probably available this year! <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/55/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

