My Writings. My Thoughts.
Debug Rendermode
// June 9th, 2011 // 3 Comments » // Uncategorized
The Nifty in SVN has this new nifty method on the Nifty class:
nifty.setDebugOptionPanelColors(true);
Which will render your screen in pretty colors:
Pretty nifty for finding layout related issues!
void
PS: We’re very close to 1.3 … really =)
Pre Release Nifty Support Chat Experiment
// May 26th, 2011 // No Comments » // Uncategorized
A couple of days ago I talked to ractor (a JME User and the author of the new Nifty 1.3 standard chat control) via ICQ, helping him with some Nifty questions. We used http://typewith.me/ to work in realtime on the same Nifty XML and Java code.
And then it hit me
What would happen, when there are more people joining in? Directly talking about Nifty things and getting feedback immediatly.
So here is that experiment:
Join us this weekend using IRC on irc://freenode/niftygui. That is is the freenode network, #niftygui channel. Or you can join with the freenode webchat.
Here are the details:
28-May-2011, 14:00 America/Los_Angeles
28-May-2011, 17:00 America/New_York
28-May-2011, 23:00 Europe/Berlin
28-May-2011, 21:00 UTC/GMT
void
Nifty 1.3 Change Screen Resolution at Runtime
// May 16th, 2011 // No Comments » // Uncategorized
Finally the open issues and feature requests that have been scheduled for 1.3 are nearly done … erm, for real this time
One of the latest additions is the possibility to change the screen resolution at runtime without restarting a Screen or Nifty. All you need to do is to change the display mode of the rendering system you’re using and then simply call:
nifty.resolutionChanged();
to notify Nifty of the new display resolution. Nifty will finish the rendering of the current frame and then it will update the current Screen to the new resolution as well as notifies all active controls.
You can find some details for this on the feature request tracker.
And here is a little video that is demonstrating that it is actually working
void
Nifty 1.3 Standard Console Control
// April 17th, 2011 // 6 Comments » // Uncategorized
Still busy updating the Standard Controls to Nifty 1.3 API. While you’re waiting here is a little preview of the new and improved console control which will bring you a control that is:
- much faster
- now with a scrollbar
- command line completion with the TAB key
- command history
- colored output
- much more friendly API
Here is the video:
Nifty 1.3 Standard Console Control from void on Vimeo.
and here is the link to the wiki documentation:
https://sourceforge.net/apps/mediawiki/nifty-gui/index.php?title=Standard_Controls_Console
void
Nifty 1.3 Standard Panel Styles
// March 5th, 2011 // No Comments » // demo
Some new default panel styles have been added to the Nifty 1.3 standard style.
You can find an overview over all of the panel styles in the Nifty Wiki.
And here is a little video that also shows the Hint effect in action:
Nifty 1.3 Standard Panel Styles from void on Vimeo.
void
Nifty 1.3 Preview Demo
// February 24th, 2011 // 6 Comments » // Uncategorized
The first control demo for 1.3 we’ve shown some time ago really does not hold up to all of the improvements that have been getting into Nifty lately. Especially the new and improved default style is worth another preview demo
So here is the new preview demo for Nifty 1.3!
Enjoy and thanks for donating (you know who you are! Thanks a lot!)
void
PS: We’re getting closer to a 1.3 Release finally!
Nifty 1.3 Progress Report Online … well, sort of :)
// February 12th, 2011 // No Comments » // Uncategorized
As mentioned before the main work in Nifty 1.3 is on the Standard Controls that come with Nifty. Most of the Nifty 1.3 core features are done, so the work is concentrating on getting all of the Standard controls pimped
for 1.3. Many of them have already been updated but some of them still require some work.
The good thing is, that we work on the documentation in parallel as Nifty controls are finished. This means you can now already take a look at the new API that 1.3 will offer in the wiki and you can actually use the Nifty Standard Controls Page in the Nifty wiki as a form of Progress Report for Nifty 1.3 too. When all of the TODO’s of that Wiki Page are gone, then Nifty 1.3 will be released
More Blog Posts coming. Lots to talk about.
void
Nifty 1.3 will not be 100% backward compatible with previous versions!
// January 30th, 2011 // 5 Comments » // Uncategorized
So, now that I have your attention – it’s not so bad as it sounds, really
Basically there have been two changes that might or might not influence your existing Nifty XML/Code base. The <label> Element has been removed (please use <text style=”nifty-label”> or <control name=”label”> as a replacement. see more details below) and when you’re already using the Standard Controls from Java, then the access to the Controls has now been changed too. Besides these two issues everything else should still work – and in some cases work better or does actually work for the first time with Nifty 1.3
So there is nothing to be worried about too much.
However there is one more important thing. If you’ve used Nifty XSD validation then the XSD Namespace has now been changed too. The new one is: “http://nifty-gui.sourceforge.net/nifty-1.3.xsd” instead of the old one “http://nifty-gui.sourceforge.net/nifty.xsd”. So you’ll need to download the new version and modify the nifty xml tag if you want to use XML editor support to write the new Nifty 1.3 XML.
The correct way to specifiy the XSD in XML-Files for Nifty 1.3 is now:
<nifty xmlns="http://nifty-gui.sourceforge.net/nifty-1.3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd">
Keep reading for a detail explanation of the two changes mentioned above.
ListBox Overhaul, new and improved API available and some more
// December 13th, 2010 // 4 Comments » // demo, design, docs
The ListBox has been greatly improved and got itself a new Nifty Java API. You can find an example right here (click the image for a webstart demo) or keep reading for all the details below.
Example
You can check the first example of the new ListBox online with the following Webstart URL:
The source code of this project is available online. You can check out the source directly from SVN using https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-default-controls-examples/trunk or you can browse it online here: http://nifty-gui.svn.sourceforge.net/viewvc/nifty-gui/nifty-default-controls-examples/trunk/.
And if that is not enough … we’ve done the same new API treatment to the CheckBox and we plan to do the same to the remaining Nifty Standard Controls!
Reference in the Wiki
You can find a complete reference about the new standard controls in Nifty 1.3 already on the Wiki (for the ListBox and the CheckBox):
And you can keep reading about all the little Nifty details we’ve changed and improved and especially why.
Pending Nifty 1.3 Feature Requests Sorted
// November 21st, 2010 // No Comments » // Uncategorized
Today I’ve finally found the time to review all open feature requests pending in the Nifty Feature Tracker at the sf.net project page. I’ve now decided which of them I’d like to be a part of Nifty 1.3 and I’ve tagged them with “Nifty 1.3″. This has two benefits. First, you know what to expect from Nifty 1.3 (besides lots of little bugfixes and improvements that are already commited) and second, we have a better goal to aim for
Besides some ongoing experiments for a thing that we will call Nifty 2.0 (oops, now I’ve said it
… expect more blogs about it in the coming weeks) I’ll now concentrate a bit more to get Nifty 1.3 finished.
You can find the Feature Requests scheduled for Nifty 1.3 at the sf.net Tracker page at the sf.net Nifty page.
void






