0
Under review

Project crash because of script created joystick item

r riksma 10 jaar geleden in iRidium Script / Interface scripts bijgewerkt door Ekaterina (head of support) 10 jaar geleden 1
If you create a joystick item to use as a color picker by using a script, the project crashes when you click on the joystick. This is only in windows, on an iPad it works fine.
To reproduce:
-download your demo project:
https://s3.amazonaws.com/iRidiumWiki2.0/i2Scripts/JS_Iridium_demo_EditItem.irpz
-make sure you can click on the joystick by placing the code last or removing the other items.
-click and watch it crash.

Tested Editor versions:
V2.1.2.16841
V2.2.1.17647

Antwoord

Antwoord
Under review
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.
Antwoord
Under review
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.