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
1
vote
1 answer

How do I tell nifty GUI where my fonts files are?

I'm tired of using the default fonts bundled in the default style jar, so I figured it'd be as easy as downloading some bitmap font files and specifying which one I wanted to use by there path relative to the workspace. e.g. //inside of a…
zergylord
  • 4,368
  • 5
  • 38
  • 60
1
vote
2 answers

Nifty GUI control prevents the rest of my application from rendering

I've been trying to add some basic gui elements to a openGl (via LWJGL) application using nifty gui, and while I've been successful in rendering panels and static text on top of the the applications graphics, using the built-in nifty controls (e.g.…
zergylord
  • 4,368
  • 5
  • 38
  • 60
1
vote
2 answers

How do I get Nifty GUI to use my coordinate system?

For various reasons, I like having openGL to use coordinates other than pixels, which is easily set via: Display.setDisplayMode(new DisplayMode(800, 600)); GLU.gluOrtho2D(0f,32f,0f,24f); However, now that I've begun trying to integrate Nifty GUI…
zergylord
  • 4,368
  • 5
  • 38
  • 60
1
vote
1 answer

Nifty GUI Layout

I am new to JME3 game engine but I know Android XML GUI layouts pretty good. I have a simple layout here and I cant figure out what is wrong. Here is my XML code:
Jason Crosby
  • 3,533
  • 4
  • 28
  • 49
0
votes
1 answer

How to initialize nifty after update to 1.4.2

I updated Nifty to v.1.4.2, Jogamp to v.2.4.0., Java to jdk-11.0.2. Code before update: public class ISOView extends Object2D { private IViewManipulation viewerInteraction; private IRenderEvent renderEvent; private ISOViewNiftyController…
know
  • 3
  • 4
0
votes
1 answer

Creating shapes with Nifty GUI and LWJGL

I am trying to create a hexagon on the screen in my LWJGL game. I am using Nifty GUI. I currently have 2 screens, and I want to switch to a screen where I programmatically draw hexagons. Here is my xml for the screen
Jay S.
  • 1,318
  • 11
  • 29
0
votes
1 answer

Nifty-GUI text not rendering

I am trying to create a simple start screen for a game and I am using LWJGL with nifty-gui. Here is my existing code : public class Main { public Main(){ if (!LwjglInitHelper.initSubSystems("Risk It")) { System.exit(0); } …
Jay S.
  • 1,318
  • 11
  • 29
0
votes
1 answer

Nifty-GUI 1.4 consumes keyboard events (LWJGL 2.9.2)

I'm having heavy problems with Nifty-GUI's event handling and searched the internet for solutions, but didn't really find any (I want to avoid implementing my own InputSystem). The issue is that, as soon as I start to use nifty with my application,…
Tutzen
  • 1
  • 1
0
votes
1 answer

Can't interract with a custom control onClick

I can't get my custom control to call a function through the interact onClick="next()" attributes. I tried to put the "next()" function on both my screenController and my buttonController but still, no result... I must be missing something simple…
Jaythaking
  • 2,200
  • 4
  • 25
  • 67
0
votes
1 answer

Netbeans game works in compiler, but build doesn't function the same

I have never had any experience fixing build-related problems before, so when the Jmonkey Engine decided to produce a build that didn't function like it would run in the compiler, I didn't (and still don't) really know what to do. The Jmonkey Engine…
user3462251
0
votes
1 answer

How can i implement auto scale feature in nifty-gui?

As I can see in this vimeo video there's a nice feature to scale the whole interface but I cannot find any documentation anywhere telling me how can I do it ( nor in the 1.3.2 manual ).
Lau Llobet
  • 577
  • 7
  • 21
0
votes
2 answers

How to flush all input events in jMonkey

My game takes around a minute to load in android till the first screen appears. Till the time its loading, jmonkey’s input manager seems to queue all inputs which results in nasty behavior(automatic button clicks) as soon as my first nifty screen…
simar
  • 544
  • 2
  • 7
  • 15
0
votes
1 answer

Why doesn't my font render?

I've been using nifty GUI with lwjgl, and its been working great, but I can't figure out how to get it to use fonts I've provided it; it only seems to be able to render the default fonts. I've added the folder with my .fnt files to the runtime…
zergylord
  • 4,368
  • 5
  • 38
  • 60
0
votes
1 answer

Outer Class Member Variable Null To Inner Class

I am working on a game using JME3 and Nifty GUI. I have an outer class that has a Nifty member variable. And the inner class should be able to access that variable regardless of access modifier. In the constructor I assign a new Nifty object to it.…
Jason Crosby
  • 3,533
  • 4
  • 28
  • 49
0
votes
1 answer

Make Nifty GUI ScreenController swallow input

In my Slick2D game, I'm extending NiftyOverlayBasicGameState, using Nifty GUI overlays, and specifying a PlainSlickInputSystem. For most overlaid screens I'd like Nifty GUI to ignore all input and pass it through to the GameState. For one particular…
DeejUK
  • 12,891
  • 19
  • 89
  • 169