|
8 | 8 | "name": "SpriteMultitouchJoystick", |
9 | 9 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg", |
10 | 10 | "shortDescription": "Joysticks or buttons for touchscreens.", |
11 | | - "version": "1.0.0", |
| 11 | + "version": "1.0.1", |
12 | 12 | "description": [ |
13 | 13 | "Multitouch joysticks can be used the same way as physical gamepads:", |
14 | 14 | "- 4 or 8 directions", |
|
2911 | 2911 | "conditions": [ |
2912 | 2912 | { |
2913 | 2913 | "type": { |
2914 | | - "value": "Gamepads::TopDownGamepadMapper::PropertyStickMode" |
| 2914 | + "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" |
2915 | 2915 | }, |
2916 | 2916 | "parameters": [ |
2917 | 2917 | "Object", |
|
2929 | 2929 | "parameters": [ |
2930 | 2930 | "Object", |
2931 | 2931 | "TopDownMovement", |
2932 | | - "SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))", |
2933 | | - "SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))" |
| 2932 | + "SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())", |
| 2933 | + "SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())" |
2934 | 2934 | ] |
2935 | 2935 | } |
2936 | 2936 | ] |
|
2940 | 2940 | "conditions": [ |
2941 | 2941 | { |
2942 | 2942 | "type": { |
2943 | | - "value": "Gamepads::TopDownGamepadMapper::PropertyStickMode" |
| 2943 | + "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" |
2944 | 2944 | }, |
2945 | 2945 | "parameters": [ |
2946 | 2946 | "Object", |
|
2958 | 2958 | "parameters": [ |
2959 | 2959 | "Object", |
2960 | 2960 | "TopDownMovement", |
2961 | | - "SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))", |
2962 | | - "sign(SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier())))" |
| 2961 | + "SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())", |
| 2962 | + "sign(SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier()))" |
2963 | 2963 | ] |
2964 | 2964 | } |
2965 | 2965 | ] |
|
2969 | 2969 | "conditions": [ |
2970 | 2970 | { |
2971 | 2971 | "type": { |
2972 | | - "value": "Gamepads::TopDownGamepadMapper::PropertyStickMode" |
| 2972 | + "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" |
2973 | 2973 | }, |
2974 | 2974 | "parameters": [ |
2975 | 2975 | "Object", |
|
3007 | 3007 | "parameters": [ |
3008 | 3008 | "", |
3009 | 3009 | "Object.Behavior::PropertyControllerIdentifier()", |
3010 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3010 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3011 | 3011 | "\"Left\"", |
3012 | 3012 | "" |
3013 | 3013 | ] |
|
3035 | 3035 | "parameters": [ |
3036 | 3036 | "", |
3037 | 3037 | "Object.Behavior::PropertyControllerIdentifier()", |
3038 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3038 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3039 | 3039 | "\"Right\"", |
3040 | 3040 | "" |
3041 | 3041 | ] |
|
3063 | 3063 | "parameters": [ |
3064 | 3064 | "", |
3065 | 3065 | "Object.Behavior::PropertyControllerIdentifier()", |
3066 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3066 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3067 | 3067 | "\"Up\"", |
3068 | 3068 | "" |
3069 | 3069 | ] |
|
3091 | 3091 | "parameters": [ |
3092 | 3092 | "", |
3093 | 3093 | "Object.Behavior::PropertyControllerIdentifier()", |
3094 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3094 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3095 | 3095 | "\"Down\"", |
3096 | 3096 | "" |
3097 | 3097 | ] |
|
3136 | 3136 | "parameters": [ |
3137 | 3137 | "", |
3138 | 3138 | "Object.Behavior::PropertyControllerIdentifier()", |
3139 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3139 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3140 | 3140 | "\"Left\"", |
3141 | 3141 | "" |
3142 | 3142 | ] |
|
3164 | 3164 | "parameters": [ |
3165 | 3165 | "", |
3166 | 3166 | "Object.Behavior::PropertyControllerIdentifier()", |
3167 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3167 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3168 | 3168 | "\"Right\"", |
3169 | 3169 | "" |
3170 | 3170 | ] |
|
3192 | 3192 | "parameters": [ |
3193 | 3193 | "", |
3194 | 3194 | "Object.Behavior::PropertyControllerIdentifier()", |
3195 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3195 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3196 | 3196 | "\"Up\"", |
3197 | 3197 | "" |
3198 | 3198 | ] |
|
3220 | 3220 | "parameters": [ |
3221 | 3221 | "", |
3222 | 3222 | "Object.Behavior::PropertyControllerIdentifier()", |
3223 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3223 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3224 | 3224 | "\"Down\"", |
3225 | 3225 | "" |
3226 | 3226 | ] |
|
3248 | 3248 | "parameters": [ |
3249 | 3249 | "", |
3250 | 3250 | "Object.Behavior::PropertyControllerIdentifier()", |
3251 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3251 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3252 | 3252 | "\"UpLeft\"", |
3253 | 3253 | "" |
3254 | 3254 | ] |
|
3285 | 3285 | "parameters": [ |
3286 | 3286 | "", |
3287 | 3287 | "Object.Behavior::PropertyControllerIdentifier()", |
3288 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3288 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3289 | 3289 | "\"UpRight\"", |
3290 | 3290 | "" |
3291 | 3291 | ] |
|
3322 | 3322 | "parameters": [ |
3323 | 3323 | "", |
3324 | 3324 | "Object.Behavior::PropertyControllerIdentifier()", |
3325 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3325 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3326 | 3326 | "\"DownLeft\"", |
3327 | 3327 | "" |
3328 | 3328 | ] |
|
3359 | 3359 | "parameters": [ |
3360 | 3360 | "", |
3361 | 3361 | "Object.Behavior::PropertyControllerIdentifier()", |
3362 | | - "ToString(Object.Behavior::PropertyJoystickIdentifier())", |
| 3362 | + "Object.Behavior::PropertyJoystickIdentifier()", |
3363 | 3363 | "\"DownRight\"", |
3364 | 3364 | "" |
3365 | 3365 | ] |
|
3432 | 3432 | }, |
3433 | 3433 | { |
3434 | 3434 | "value": "Primary", |
3435 | | - "type": "Number", |
| 3435 | + "type": "String", |
3436 | 3436 | "label": "Joystick name", |
3437 | 3437 | "description": "", |
3438 | 3438 | "group": "", |
|
3805 | 3805 | "name": "Object", |
3806 | 3806 | "supplementaryInformation": "SpriteMultitouchJoystick::SpriteMultitouchJoystick", |
3807 | 3807 | "type": "object" |
3808 | | - }, |
3809 | | - { |
3810 | | - "description": "Behavior", |
3811 | | - "name": "Behavior", |
3812 | | - "supplementaryInformation": "SpriteMultitouchJoystick::MultitouchJoystick", |
3813 | | - "type": "behavior" |
3814 | 3808 | } |
3815 | 3809 | ], |
3816 | 3810 | "objectGroups": [] |
|
0 commit comments