NiftyGUI previews now work! (14 posts)

Topic tags: Editor, gui, nifty
  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Hey,

    the OffView panel introduced for the model importer has proven to be very useful, NiftyGUI XML files now come with the preview that was there for long but never worked :)

    WIP – Mouse interaction doesn’t work yet.

    Cheers,
    Normen

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    I also found that the main tag in the nifty xml template was broken and so code completion for nifty files was broken too, if you have existing nifty files, change the nifty tag to this to make code completion work (Ctrl-Space in nifty xml documents):

    <nifty xmlns="http://nifty-gui.sourceforge.net/nifty.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty.xsd http://nifty-gui.sourceforge.net/nifty.xsd">

    Heres a preview:

  • Profile picture of rickard rickard70p said 1 year, 6 months ago:

    This is actually a quite awesome feature! Saves me alot of time to be able to preview what the gui will look like without having to load the whole app.

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Yes, I still have to see how I can add nifty-themes from the projects classpath to the editor. atm they wont work, only the built-in or black styles will..

  • Profile picture of rickard rickard70p said 1 year, 6 months ago:

    Two bugs/issues:

    1. Previews seem to be broken since last update.

    2. jMP crashes when in nifty design preview and selecting “Projects” window (undocked).

    Windows 7, 64-bit.

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Huh? What previews? I didnt change anything to the NiftyPreview?

  • Profile picture of madjack madjack495p said 1 year, 6 months ago:

    Previews work here.

  • Profile picture of rickard rickard70p said 1 year, 6 months ago:

    Strange. Worked fine yesterday, not today.

    The crash is something i’ve seen for a while, though.

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Any error stack traces via the warning sign or log? You say it crashes when you have the nifty or the projects window detached?

    Edit: Just tested on OSX with the latest update and I have no problems..

  • Profile picture of rickard rickard70p said 1 year, 6 months ago:

    Where can i find the log?

    Some further testing and it seems to happen when clicking the Navigator window as well.
    Yes, when i have “design” selected on my xml file (not detached window), and click in a detached window.

    Regarding issue 1. My preview seems to be a bit on and off, depending on restart it seems.

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Its in the /dev/var/log subfolder of the preferences folder, the location of the preferences folder is visible in the “About” screen of jMP.

  • Profile picture of madjack madjack495p said 1 year, 6 months ago:

    I know that the nifty preview will be screwed up if you hit on the scene viewer as the preview is opened. Or it will not work if the Scene Viewer is closed.

  • Profile picture of normen normen1290p said 1 year, 6 months ago:

    Yep, closing the SceneViewer is not supported atm, its basically shutting down the main jMP processing thread.

  • Profile picture of rickard rickard70p said 1 year, 6 months ago:

    Sorry, couldn’t find anything exceptional in the logs. I guess a problem is it actually freezes, not crashes. I’ll have a closer look a bit later.