Nifty 1.3.1 has been released

// December 29th, 2011 // Uncategorized

Get it here:

When you’re using Maven, you can simply add our sf.net Nifty Maven Repo to your pom.xml:

  
    
      nifty-maven-repo.sourceforge.net
      http://nifty-gui.sourceforge.net/nifty-maven-repo
    
  

and then you can add this dependency:

    
      lessvoid
      nifty
      1.3.1
    

You can find the nifty-1.3.1-changelog.txt at sf.net.

Here are some informations about Nifty 1.3.1.

GC and other speed improvements as well as Bugfixes

Nifty 1.3.1 should be compatible with 1.3. Its main purpose is improved performance. Nifty has been optimized for better GC performance as well as render performance. You should see more FPS with this version!

Additional standard controls

Thanks to contributions of Nifty user ractoc you can now find a TabsControl, a TreeBoxControl, a ChatControl and a MessageBox in the nifty-default-controls project!

Improved Slick2D Renderer

Thanks to Nifty user mkaring the Slick2D renderer has been greatly updated and improved. So Nifty should work a lot better with Slick2D again.

LWJGL 2.8.2

And last but not least Nifty has been updated to the latest stable LWJGL version 2.8.2. Which was easy since thanks to gemserk LWJGL is in the central maven repository!

Nifty 1.3.1 is not yet in the central. There are still a couple of jars in the Nifty universe that are not available in the central but we’re working on it!

void

17 Responses to “Nifty 1.3.1 has been released”

  1. waltobc6 says:

    Hey, i updated to the last version of nifty,
    i saw there are new stuff added, and i want to check them, see how they work and what they does, but i can’t get the Nifty-Example.jar run.

    how i can run it so i can see whats new befor i go down to there codes?

    • void says:

      You can’t run the nifty-examples.jar as is, sorry! It contains lots of different example project too, so there is not a single example available. You’ll need to get the source and check the source.

        • void says:

          I know that you mean that one :) It is still there in the nifty-examples project and it has been extended for 1.3.1 quite a bit too. It’s just not (yet ^^) available online and it can’t be run with the nifty-examples.jar only. You’ll need to get the source (preferable as a direct git clone) to see it in action.

          This is simply a problem with lack of time or you could even say I simply forgot to put it online ;-)

          I’ll see what I can do. Probably around next weekend or so to get it online as a webstart. What do you say? ;)

          • waltobc6 says:

            as always since i start using Nifty i have never been so happy

            so i cant wait, i got complicated UI and the new tabs and tree objects sound intersting but i dont have money to start exploring them so this why i asked for example.jnlp

            btw, see the power of nifty :)
            http://up353.siz.co.il/up1/kdygtzg2lemz.png

            its part of my ui in my game,
            the power and the simplty of Nifty is just epic :)

          • void says:

            Thanks … unfortunately I can’t successfully load the screenshot :/ Somehow it’s veeeeeery slow :/

            Any chance that you host it somewhere else? I’d really want to see it! :-)

  2. hash says:

    New feature wise, I think the biggest thing that keeps me from using this on major projects is the lack of a text input area that can deal with wrapping.

    Also, I think being able to specify rotations for images (or elements in general?) would be terribly useful. Or, similarly, the ability to render something from a BufferedImage instead of being tied only to the filesystem.

    • cghislai says:

      I already use the NiftyImage class to change images at runtime from a jme Image instance. It might not be feasible with other engines though.

      • hash says:

        Hm, I’d been working in lwjgl so far. It looks like that ability is actually implemented for java2d renderer as well, so I might have to look into that. Thanks for the pointer, cghislai!

  3. blobi says:

    Where is the license file of nifty-gui?

  4. okrah says:

    hi, i am working on a speedometer for a car racing game using nifty. Can anyone help with how to use nifty effect to rotate the needle. can u direct me to any tutorial or example. i will be very grateful.

    • void says:

      Since Nifty doesn’t have build-in rotation matrix support you can’t have that out of the box. You could try it writing your own custom Nifty effect and doing the math (and the transformation) by yourself. But there is nothing similar available as an example – at least nothing I’m aware of. You could also try to ask in the Nifty Forum at sf.net for help. Seems interessting enough for me to try it … maybe I’ll take a look when time permits but I can’t promise anything :)

  5. concentus says:

    Hi – i’m trying to use the MessageBox for a simple “Really Quit?”-usecase. How can i get the pressed button, e.g. “Yes” or “No”?

    • void says:

      The MessageBox control does not yet provide any feedback about the buttons that have been pressed as far as I can see. It just displays a message. You might want to add a feature request on github so we can add this for a later release: https://github.com/void256/nifty-gui/issues?state=open

      This being said … as a workaround you could try to access the button controls using findControl or findElementByName starting at the popup element and then add a setOnClick() callback there. But I’ve not tried this yet. Might be a bit rough :)

Leave a Reply