Hi all , here is the second devlog about nifty-editor plugin development !
The most important thing that I want to report to you all , is that the prototype is ready for testing ! . In these weeks I’ve added drag and drop of nifty-gui elements and controls . The most difficulty here was that netbeans wrapped the given Trasferable instance in a provider that hides to me what was the real problem . Now it works well but in the future could be improved a bit. Also I worked in stand alone version to add the mandatory feature of cut/copy/paste elements . It needs a whole refactor but I proved to make it work in my experimental branch , so you need to wait until next devlog to test it . The refactoring will bring do&undo feature an other must in a editor. Another thing I’ve worked on is a little editor for imagemode attribute in nifty-elements , it’s quite rudimental but It could speed up the work to make a real cool gui without a lot of effort . For those who don’t know what imagemode is , it’s an attribute that tell to nifty how the image will be render this includes sprite mode , ninepatch mode , repeat mode and subImage mode ( render only an area of an image) .
Finally I used some of my time to improve nifty-gui , maybe you are interested with this , you can look at my pull requests for the details on my github profile. I figured also that in the future I really need to touch the nifty-style system because it’s not so extensible on the final user side and this makes hard to implement a nice editor for controls / elements. That’s all what I’ve done so far .
Try the prototype by downloading it here . To install simply go to ools->PlugIns->Downloaded Tab->Add Plugins . And select the path to the downloaded file .
Some Important Notes : change from Xml view to Visual and viceversa will cause read/write operation so it could be slow ( even if I didn’t notice anything ) . Some elements are not supported by editor and if you go back to your xml file after you edit it from Desing tab they will be deleted . I know this sucks but of course in the future all the elements will be supported and this bug will fly away . You can modify the shape of the elements add them and remove . Properties editing is not supported yet but you can easy use the xml save it and then see the changes in the Visual tab . To move trough you screens you must select a layer in that screen using the combo box in the toolbar .
Well , about next two weeks I’ll be little busy with exams , even if I hate Physic exams, I must pass them -.-" . So the development could be a little slower but since the hard work it almost done I’ll put some effort to make cut/paste do&undo features work . Finally I’ll spend some time also in bug fixing if you’ll find some one ( of course you do ).
See you in the next devblog !
Bye , Cris