Hi monkeys! Today I finally started learning how to use Nifty GUI, and I’m following the JME wiki and the Nifty manual. One thing I must do is to implement a schemaLocation, or something like that, so the IDE is able to provide me code completion. This is my nifty tag:
Thanks. I looked online and most people say it’s better to use the .xsd file bundled within the nifty jar. I have that file now, and I have put it in my libs folder in my project. So, how do I access that file now? I tried writing libs/nifty-1.3.xsd but it doesn’t work. I’m also new to XML, so I’m still learning xD
Thanks for the help! I found that same .xsd file hosted on Github. So, when I use that link in the IDE, it actually downloads the xsd after I accept 2 warnings of not-signed certificates. But I still don’t get any code completion or any result when I do Ctrl + Space.
OK so I’m pretty sure Nifty is broken as f*** in the jME SDK 3.0. I tried to add a button, but it doesn’t even recognize it! I’m using the exact same example from the Nifty Wiki and it says is missing. Also, the preview tab of the xml editor only renders once. So, if I add a new element to the file, I need to reopen it so it renders the edit.
So, I will now update my SDK to jME 3.1 and I hope it will fix all the bugs I have.
Ok, so now I have jME 3.1 and the code completion actually works! The only thing I don’t understand is why I don’t get code completion when I do <panel> tag. The layer and screen tags work well, but panels don’t.
Also, whenever I try to use the <text> tag, the IDE deletes it as soon as it can!! Why does this happens? Has it been deprecated or something?