DICE PACKS BUNDLE
  1. #1

    Bug - imagecontrol - zoom factor

    I don't know if this is new or not but here is the issue.

    I'm trying to use setViewpoint/setViewpointCenter and it seems that the imagecontrol always ignores the zoom factor.

    You can most easily see this happen by launching with any ruleset with any image.

    1. Open the image. Close FGU. Look at the windowstate.xml file. You will see the image control settings that it should use when you open the window again.
    2. Now launch and view the image again but this time zoom in. Close FGU and you will note that the windowstate.xml updates as expected with a greater zoom.
    3. Launch again and open the image and you will see it isn't zoomed.

    I've tried with my own code and it gives the same results and it always ignores the zoom factor for the setViewpoint/sVC commands.

    Jason

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    Moved to the Unity support forum. The Laboratory forum is for reporting issues in the latest public test version.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    A little more details of my testing.

    I can make it work if the window has already been established for a time. (I added a button that did only the setViewpoint)
    However the following won't work. Maybe my fault cause I'm missing something?

    local rWindow = Interface.openWindow("imagewindow","imagename");
    local rNewImgCtrl = rWindow.image;
    rNewImgCtrl.setViewpoint(1000,800,0.5);

    Do I need to move my setViewpoint to code that is in the onFirstLayout() for the imagecontrol?


    Either way the method I described in the first post should presumably work since it is saved for it to work on reload.

    Jason

  4. #4
    I think this is just a timing issue. When I ask it to zoom it isn't done creating the window. You can close this if you wish.

  5. #5
    Thanks for letting us know.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in