<?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; sightings</title>
	<atom:link href="http://nifty-gui.lessvoid.com/archives/category/sightings/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>XML-Validation and Text Rendering with In-Text change of the Textcolor</title>
		<link>http://nifty-gui.lessvoid.com/archives/144</link>
		<comments>http://nifty-gui.lessvoid.com/archives/144#comments</comments>
		<pubDate>Tue, 18 May 2010 13:42:01 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sightings]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=144</guid>
		<description><![CDATA[XML-Validation The actual parsing of Nifty-XML files is still using a XPP3 based parser and does not require a XML-Schema Definition. The nifty.xsd was only added to validate Nifty XML-Files &#8230; as well as for special support of the jMonkeyEngine3 SDK but that will be explained somewhere else XML-Validation is now build into Nifty but [...]]]></description>
			<content:encoded><![CDATA[<p><strong>XML-Validation</strong></p>
<p>The actual parsing of Nifty-XML files is still using a XPP3 based parser and does not require a XML-Schema Definition. The nifty.xsd was only added to validate Nifty XML-Files &#8230; as well as for special support of the jMonkeyEngine3 SDK but that will be explained somewhere else <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>XML-Validation is now build into Nifty but is still an optional step you can use to ensure your Nifty XML is well formed and valid. To perform the actual validation two new methods have been added to the Nifty class:</p>
<pre class="brush:java">public void validateXml(final String filename) throws Exception
public void validateXml(final InputStream stream) throws Exception</pre>
<p>Both methods will simply return or will throw an Exception when any errors have been detected.</p>
<p>To successfully validate the nifty xml file, your xml file should start with the two following lines:</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;nifty xmlns="http://nifty-gui.sourceforge.net/nifty.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty.xsd http://nifty-gui.sourceforge.net/nifty.xsd"&gt;</pre>
<p>This way the XML-File is using the correct Nifty Namespace. If you would omit these declarations your XML-File can still be parsed but it will probably not validate against the XSD.</p>
<p>The namespace that has been definied for nifty is actually the URL where you can download the xsd too: <a href="http://nifty-gui.sourceforge.net/nifty.xsd">http://nifty-gui.sourceforge.net/nifty.xsd</a></p>
<p><strong>In-Text changes of Textcolor</strong></p>
<p>Up until now Nifty uses the &#8220;binary&#8221; character value 0&#215;01 directly in the text to indicate that the next three bytes in the text will contain red, green and blue values that represent the color of the text that follows after the color definition.</p>
<p>So you could write a red word, example:</p>
<pre class="brush:xml">&lt;text text="a word in &amp;#01;&amp;#255;&amp;#0;&amp;#0;red"/&gt;</pre>
<p>This works but is unfortunatly not a valid XML file when trying to validate it with an XML-Schema Definition <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The problem is, that a valid XML attribute value must not contain values below binary 0&#215;20 (with only a couple of exceptions, like the tab character 0&#215;09). 0&#215;01 is not allowed and will always create a validation error!  So the current solution is to use a new format that doesn&#8217;t use 0&#215;01 as a indicator anymore. Instead Nifty will now watch for the special String &#8220;\#&#8221; to mark the beginning of a color definition and &#8220;#&#8221; as the end. So instead of the xml example given above you can now write:</p>
<pre class="brush:xml">&lt;text text="a word in \#F00#red"/&gt;</pre>
<p>Which is more readable too!</p>
<p>There is a short Version supported &#8220;\#F00#&#8221; as well as a long version &#8220;\#FF0000#&#8221;. Both are not case sensitive so you could write &#8220;\#fa9#&#8221; too. But remember the trailing # <img src='http://nifty-gui.lessvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Have fun,<br />
void</p>
]]></content:encoded>
			<wfw:commentRss>http://nifty-gui.lessvoid.com/archives/144/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nifty GUI sightings &#8211; 4our</title>
		<link>http://nifty-gui.lessvoid.com/archives/119</link>
		<comments>http://nifty-gui.lessvoid.com/archives/119#comments</comments>
		<pubDate>Mon, 15 Feb 2010 22:40:31 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[sightings]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=119</guid>
		<description><![CDATA[Another game with a nifty gui good work jattra!]]></description>
			<content:encoded><![CDATA[<p><a href="https://sourceforge.net/apps/mediawiki/four-game/index.php?title=Main_Page">Another game with a nifty gui</a></p>
<div id="attachment_120" class="wp-caption alignnone" style="width: 310px"><a href="http://nifty-gui.lessvoid.com/wp-content/2010/02/bildschirmfoto-2010-02-15-um-233508.png"><img class="size-medium wp-image-120" title="4our game screenshot" src="http://nifty-gui.lessvoid.com/wp-content/2010/02/bildschirmfoto-2010-02-15-um-233508-300x225.png" alt="4our game screenshot" width="300" height="225" /></a><p class="wp-caption-text">4our game screenshot</p></div>
<p>good work jattra! <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/119/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nifty GUI sightings &#8211; Shiring</title>
		<link>http://nifty-gui.lessvoid.com/archives/101</link>
		<comments>http://nifty-gui.lessvoid.com/archives/101#comments</comments>
		<pubDate>Tue, 06 Oct 2009 20:47:23 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[sightings]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/?p=101</guid>
		<description><![CDATA[Shiring is a 2D MMORPG that uses Nifty GUI for it&#8217;s user interface. Check out it&#8217;s blog http://blog.shiring.de and especially the current GUI demo: This is pretty awesome]]></description>
			<content:encoded><![CDATA[<p>Shiring is a 2D MMORPG that uses Nifty GUI for it&#8217;s user interface. Check out it&#8217;s blog</p>
<p><a href="http://blog.shiring.de">http://blog.shiring.de</a></p>
<p>and especially the current GUI demo:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/qzdONJ_rEzY&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/qzdONJ_rEzY&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This is pretty awesome <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/101/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nifty-GUI Sightings :)</title>
		<link>http://nifty-gui.lessvoid.com/archives/22</link>
		<comments>http://nifty-gui.lessvoid.com/archives/22#comments</comments>
		<pubDate>Tue, 21 Oct 2008 20:05:53 +0000</pubDate>
		<dc:creator>void</dc:creator>
				<category><![CDATA[sightings]]></category>

		<guid isPermaLink="false">http://nifty-gui.lessvoid.com/archives/22</guid>
		<description><![CDATA[Take a look at XSpace . A game that uses Nifty for it&#8217;s game GUI. Looks great, isn&#8217;t it? I&#8217;m looking forward to the finished game too!]]></description>
			<content:encoded><![CDATA[<p>Take a look at <a title="XSpace" href="http://lefty2shoes.com/blog/" target="_blank">XSpace</a> . A game that uses Nifty for it&#8217;s game GUI. Looks great, isn&#8217;t it?</p>
<p>I&#8217;m looking forward to the finished game too! <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/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

