2022 Developer Survey is open! Take survey.

Questions tagged [nifty-gui]

Nifty GUI is a GUI written in Java with LWJGL. It's the official GUI of jMonkey engine but can be used with other frameworks based on LWJGL such as Slick2D.

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

How to specify font size in nifty GUI when using ttf fonts

I'm trying to use a font with a larger size in a ttf file using nifty GUI. All questions and answers I've seen are concerned with making fonts in fnt fonts in a different size, but the size I want to ...
user avatar
0 votes
1 answer
53 views

jMonkeyEngine ignores keyboard input

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 ...
user avatar
  • 101
0 votes
1 answer
80 views

Trying to get events to work for drag and drop

So I’m playing around with drag and drop with Nifty and I have the drag working. I don’t have a drop set up yet as I’m just trying to get the dragging working at the moment. For the purposes of my ...
user avatar
0 votes
2 answers
82 views

Nifty TextRenderer object is null

Im new to nifty and Im trying to change text control using nifty in JME application following this tutorial. Below is my TextRenderer code: ...
user avatar
  • 143
3 votes
0 answers
45 views

Nifty Design view does not refresh

I am using Nifty in JME SDK to make different screens. I stuck in this problem that nifty doesn't refresh its design preview to reflect any changes in xml. But this works: If I close .xml and reopen ...
user avatar
  • 143
0 votes
1 answer
63 views

Cannot find declaration of element nifty JME

I'm new to nifty. I am trying to learn how to create nifty GUI in JMonkey Engine game. I'm going through tutorials and tried to run project. Project runs fine but I get following error when I tried to ...
user avatar
  • 143
1 vote
2 answers
754 views

How to make nifty gui textfield to use a larger font

Hi I have a text field on my screen but its tiny: ...
user avatar
  • 197
0 votes
1 answer
419 views

NiftyGUI - Text isn't rendering

I am trying to create a gui with nifty on top of lwjgl. I've already had some problems during the Nifty setup, however now Nifty is set up and running correctly but for text rendering. Here is my xml ...
user avatar
0 votes
1 answer
1k views

Slick2D and Nifty GUI

I am currently trying to combine both slick2d and nifty to work together. I've had some amount of success - I can now actually run my test and it won't crash. As far as I can tell, it will also ...
user avatar
  • 103
-1 votes
1 answer
84 views

spaceship collision and dying

I have a spaceship on the left side on the screen that can move up and down. Enemy spaceships move from the right side of the screen to the left. The goal is to shoot as many spaceships as you can. ...
user avatar
  • 41
0 votes
1 answer
1k views

How handle Nifty initialization in a Slick2D state based game?

I'm using Slick2D and Nifty GUI. I decided to use a state based approach for my game and since I want to use Nifty GUI, I use the classes NiftyStateBasedGame for ...
user avatar
  • 1,856