-
I will make an example when I get home. This is the SVN version, NiftyGameState.
2009-08-28 21:56:25 UTC in nifty-gui
-
This happens within the textfield that is part of the console.
When the application starts, the text field in the console has focus. It is the only Nifty widget on the screen. The cursor is plainly visible in the text field. When I type a key, TextFieldControl.inputEvent receives 2 null events and nothing appears in the textfield.
If I click on the screen in any location (doesn't have to...
2009-08-27 04:17:46 UTC in nifty-gui
-
Ok, thanks, I'll try that. I might actually use the console as a basis for my own chat window widget. What I want to do is, say if the user presses "/", then the chat window gets focus. It will hold focus until after they hit enter to send the message.
BTW I've been going through the code and I'm impressed. I find the entire code base easy to modify and work with. The only...
2009-08-26 17:22:55 UTC in nifty-gui
-
So, I'm using the console as a chat window. Works pretty well. I addd a couple features to it like the ability to disable the echo (mine comes in from over the network so what you typed in showed up twice), and a fix for when you have a really long line, it should be wrapped, otherwise it goes of the edge of the console.
One question though, I only want the console to accept input if it has...
2009-08-26 06:06:05 UTC in nifty-gui
-
I got the console going in my Slick game. One thing I noticed is that the bind() methods in NiftyGameState is called twice, so the example console code I cut/paste into mine for testing setup two KeyboardInputHandlers, so all the output happened twice. I moved that into the init() method and now everything is working fine.
Is there any way to change the background color on the console and...
2009-08-25 06:23:00 UTC in nifty-gui
-
Woops, sorry my bad. Got it working.
2009-08-25 04:01:16 UTC in nifty-gui
-
Exception in thread "main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParser
at de.lessvoid.nifty.Nifty.initialize(Nifty.java:127)
at de.lessvoid.nifty.Nifty.<init>(Nifty.java:100)
at de.lessvoid.nifty.examples.helloworld.HelloWorldExampleMain.main(HelloWorldExampleMain.java:33)
Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParser.
2009-08-25 03:42:48 UTC in nifty-gui
-
BTW Thanks for your quick replies and help.
2009-08-24 20:58:34 UTC in nifty-gui
-
Having one input line is fine, I was using just a regular text box for the input anyway. It would get sent to the server and then echoed back to all clients in the channel.
2009-08-24 20:58:10 UTC in nifty-gui
-
I basically need a TextArea control much like the one I'm using to enter this forum post. One that is scrollable and I can append to with a logger or a chat message and show the last N lines.
Does <text> support having multiple lines?
I liked the console, does the console support being moved around? Can I append text to the console from other sources?.
2009-08-24 20:34:45 UTC in nifty-gui