-
August 30th, 2021, 16:56 #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
-
August 30th, 2021, 21:00 #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.
-
August 31st, 2021, 02:34 #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.
-
August 31st, 2021, 10:20 #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
-
September 1st, 2021, 06:04 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,566
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
-
September 1st, 2021, 10:15 #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
-
September 1st, 2021, 13:00 #7
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks