Questions tagged [nifty-gui]

Nifty GUI is a Java Library that supports the building of interactive user interfaces.

Nifty GUI is a Java Library that supports the building of interactive user interfaces for games or similar applications. It utilizes lwjgl for OpenGL rendering. The configuration of the GUI is stored in xml files with little supporting Java code.

31 questions
8
votes
4 answers

Maven install-file won't generate pom.xml

I've installed some third party jars to my repository using the following command: mvn install:install-file -Dfile=/home/anotherCoder/Downloads/nifty-1.0.jar -DgroupId=nifty-gui -DartifactId=nifty-gui -Dversion=1.0 -Dpackaging=jar However, once I…
anotherCoder
4
votes
3 answers

How do I render 3d objects with 2d GUI (nifty-gui) correctly?

I have this code: https://github.com/magicgoose/lwjgl-nifty-test-project When I render only GUI, it works like expected. When I try to render triangle (in perspective projection) and then render GUI, everything fails, and even GUI don't render…
Display Name
  • 8,022
  • 3
  • 31
  • 66
2
votes
1 answer

error while generating nifty:scaffold=> create_migration': wrong number of arguments (3 for 0) (ArgumentError`)

While am trying to create a scaffold rails g nifty:scaffold authentication user_id:integer provider:string uid:string index create destroy authentication.rb was generated but no views I am getting error…
1
vote
1 answer

jMonkeyEngine ignores keyboard input in Nifty GUI form

Created a game login form using the Nifty GUI. The interface reacts to the movement and clicking of the mouse, but ignores the input in the text fields. Whether the program is looking for a click handler, instead of typing, or I don’t know what.…
Risto
  • 121
  • 6
1
vote
2 answers

Nifty Gui doesn't react to input

Good morning! I'm trying Nifty Gui with Slick2d. Everything works correct besides input polling by Nifty Gui. It doen't react at all! Here is part of my code: Xml:
user4741065
1
vote
1 answer

Jmonkey Nifty. detect if user stops sliding

Is there a way to detect if a user stopped slyding? Maybe bij mouse input check or something. I tried mouse isButton0Release and hasFocus in the onSliderChange event to check if the user stopped sliding, but this doesn't work. What i got so…
Zeebats
  • 480
  • 7
  • 22
1
vote
1 answer

Nifty GUI "onClickRepeat" not working in "controlDefinition" in JME3

I'm trying to make an image button in Nifty GUI in JME3 but my interact events are not working. I'm running my app in android. The button seem to be drawing but the events are not working. Here is my control:
serge
  • 1,590
  • 2
  • 26
  • 49
1
vote
1 answer

How do I display Button in Nifty GUI without XML?

I'm trying to make a GUI for my game. I've tried various libraries and I've ended up with Nifty. I haven't found any useful tutorial and therefore I'm learning from code examples. I want to display a simple Button, but it seems that my code is not…
Genhis
  • 1,484
  • 3
  • 27
  • 29
1
vote
1 answer

jMonkeyEngine - automatically mark others radio buttons

I want to create method who get radio button and marked this when other radio button will be marked. Here is my nifty gui example menu:
1
vote
1 answer

NiftyGui - how to change size of panel

Is it possible to change size of panel in NiftyGui while the application is running? I tried this code : //init mainScreen = new ScreenBuilder("main") {{ controller(sc); layer(new LayerBuilder("foreground"){{ …
gusili
  • 49
  • 5
1
vote
0 answers

How to start my Game from NiftyGUI Main Menu

I am trying to start my game from a Main Menu class that implements NiftyGUI. I am using OpenGL (LWJGL) and Java. The problem is that I am never able to get the main menu to disappear and then start the game class, which is World.java. The following…
Rafi Khan
  • 11
  • 3
1
vote
1 answer

Reading time series of NII images getting slower

I am developing a program to read a time series of NIfTY format images to a 4D matrix in MATLAB. There are about 60 images in the stack and the program runs without problems until the 28th image. (All the images are approximately same size, same…
user3566905
  • 113
  • 1
  • 6
1
vote
1 answer

Custom controller with NiftyGUI

I have a custom button that switche image when clicked so I need to handle a mouseEvent click. But, it only react to keyEvent on the function "inputEvent(NiftyInputEvent inputEvent)"... I would have to pass a NiftyMousePrimaryClickedEvent but then,…
Jaythaking
  • 2,200
  • 4
  • 25
  • 67
1
vote
1 answer

NiftyGUI's Nifty class cant instantiate?

package test; import java.io.IOException; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.examples.LwjglInitHelper; import de.lessvoid.nifty.nulldevice.NullSoundDevice; import…
caxco93
  • 33
  • 5
1
vote
1 answer

Most Recent Nifty GUI Initialization

I am trying to get going with Nifty GUI since I like the whole design and function separation (coming from android). I tried to follow the tutorial here but I get tons of errors (the libs are all correctly imported. All the errors are cannot find…
Killerpixler
  • 4,200
  • 11
  • 42
  • 82
1
2 3