Starfinder Playlist
  1. #1

    4.1.5 image onDrop x,y to Token.addToken x,y draw location miss match ?

    Not sure if this is a bug or a new feature for the changes of the image layers systems.

    But the image onDrop callback x,y location no longer works as the Token.addToken x,y create location.

    I've attached image.txt (lua) from core, and see token.jpg which shows that when dropping a token from assets, while the 'system' generated token ends up in the correct bottom right, the Token.addToken call using the provided ondrop x,y location ends up in the wrong location. ( Ive called it 'onDrop,Token.addToken' on the 'token.jpg' )

    I'm not sure if this is a new bug due to the updates to the system, or if this is a new container scale factor that I should be taking into account.

    If its a new scale factor, what is the correct function to call to get this value ?

    At the moment a hardcoded 1.5 factor gets the tokens to the correct location. ( see commented out line 62 to enable the 1.5 scale factor. )

    Thanks, Pete
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    So I think I figured out what is causing the odd factor.

    If I change my /scaleui from 150 to 100 it changes the factor that maps cursor drop location to token add location.

    So I think this is a 'missing' math something happening due to the latest 4.1.5 code update failing to correct for UI scale value.

  3. #3
    I have /scaleui at 100. Running on 2 monitors both at 2560x1440.

    Dropping token using Spell Tokens Extension on map is way off with the latest FGU build. Blue X is where the drop point is.

    Ruleset 4e.


  4. #4
    Thank you for the report. I have passed this along to Moon to have a look.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  5. #5
    Thanks for the report and details. To be honest, it looks like these APIs did not transition correctly to FGU (i.e. image control on-screen coordinates are not the same as image record data coordinates). However, I'll look at making the functions work as they did in v4.1.4 with the UI scale adjustments; as well as adding an Interface.getUIScale API.

    Regards,
    JPG

  6. #6
    At the moment I apply a ui scale factor ( from an add option control ) to the image onDrop and image onHoverUpdate which are the only functions I then pass data to Token coordinates. But I guess all the image callbacks should be checked and scaled.

    Will we have access to interface.getUIScale quicker than v4.1.4 ui scale adjustment fixes ?

    Thanks, Pete

  7. #7
    Quote Originally Posted by Moon Wizard View Post
    Thanks for the report and details. To be honest, it looks like these APIs did not transition correctly to FGU (i.e. image control on-screen coordinates are not the same as image record data coordinates). However, I'll look at making the functions work as they did in v4.1.4 with the UI scale adjustments; as well as adding an Interface.getUIScale API.

    Regards,
    JPG
    Thank you!

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
  •  
DICE PACKS BUNDLE

Log in

Log in