|
2904 | 2904 | "name": "doStepPostEvents", |
2905 | 2905 | "sentence": "", |
2906 | 2906 | "events": [ |
| 2907 | + { |
| 2908 | + "type": "BuiltinCommonInstructions::Comment", |
| 2909 | + "color": { |
| 2910 | + "b": 109, |
| 2911 | + "g": 230, |
| 2912 | + "r": 255, |
| 2913 | + "textB": 0, |
| 2914 | + "textG": 0, |
| 2915 | + "textR": 0 |
| 2916 | + }, |
| 2917 | + "comment": "When the stars are hovered animated them and toggle the animation states of the clicked and the other stars" |
| 2918 | + }, |
2907 | 2919 | { |
2908 | 2920 | "type": "BuiltinCommonInstructions::Standard", |
2909 | 2921 | "conditions": [ |
|
2916 | 2928 | "", |
2917 | 2929 | "" |
2918 | 2930 | ] |
2919 | | - } |
2920 | | - ], |
2921 | | - "actions": [], |
2922 | | - "events": [ |
| 2931 | + }, |
2923 | 2932 | { |
2924 | | - "type": "BuiltinCommonInstructions::Comment", |
2925 | | - "color": { |
2926 | | - "b": 109, |
2927 | | - "g": 230, |
2928 | | - "r": 255, |
2929 | | - "textB": 0, |
2930 | | - "textG": 0, |
2931 | | - "textR": 0 |
| 2933 | + "type": { |
| 2934 | + "inverted": true, |
| 2935 | + "value": "BooleanVariable" |
2932 | 2936 | }, |
2933 | | - "comment": "When the stars are hovered animated them and toggle the animation states of the clicked and the other stars" |
| 2937 | + "parameters": [ |
| 2938 | + "Disabled", |
| 2939 | + "True", |
| 2940 | + "" |
| 2941 | + ] |
2934 | 2942 | }, |
2935 | 2943 | { |
2936 | | - "type": "BuiltinCommonInstructions::Standard", |
2937 | | - "conditions": [ |
2938 | | - { |
2939 | | - "type": { |
2940 | | - "value": "SourisSurObjet" |
2941 | | - }, |
2942 | | - "parameters": [ |
2943 | | - "Star", |
2944 | | - "", |
2945 | | - "", |
2946 | | - "" |
2947 | | - ] |
2948 | | - }, |
2949 | | - { |
2950 | | - "type": { |
2951 | | - "value": "MouseButtonFromTextPressed" |
2952 | | - }, |
2953 | | - "parameters": [ |
2954 | | - "", |
2955 | | - "\"Left\"" |
2956 | | - ] |
2957 | | - }, |
2958 | | - { |
2959 | | - "type": { |
2960 | | - "inverted": true, |
2961 | | - "value": "BooleanVariable" |
2962 | | - }, |
2963 | | - "parameters": [ |
2964 | | - "Disabled", |
2965 | | - "True", |
2966 | | - "" |
2967 | | - ] |
2968 | | - } |
2969 | | - ], |
2970 | | - "actions": [], |
2971 | | - "events": [ |
2972 | | - { |
2973 | | - "type": "BuiltinCommonInstructions::Standard", |
2974 | | - "conditions": [ |
2975 | | - { |
2976 | | - "type": { |
2977 | | - "value": "BooleanVariable" |
2978 | | - }, |
2979 | | - "parameters": [ |
2980 | | - "ShakingOnHoverEnabled", |
2981 | | - "True", |
2982 | | - "" |
2983 | | - ] |
2984 | | - } |
2985 | | - ], |
2986 | | - "actions": [ |
2987 | | - { |
2988 | | - "type": { |
2989 | | - "value": "StarRatingBar::ShakeObject_PositionAngleScale::ShakeObject_PositionAngleScale" |
2990 | | - }, |
2991 | | - "parameters": [ |
2992 | | - "Star", |
2993 | | - "ShakeObject_PositionAngleScale", |
2994 | | - "0.5", |
2995 | | - "5", |
2996 | | - "0", |
2997 | | - "0", |
2998 | | - "25", |
2999 | | - "0.1", |
3000 | | - "", |
3001 | | - "" |
3002 | | - ] |
3003 | | - } |
3004 | | - ] |
3005 | | - }, |
3006 | | - { |
3007 | | - "type": "BuiltinCommonInstructions::Standard", |
3008 | | - "conditions": [], |
3009 | | - "actions": [ |
3010 | | - { |
3011 | | - "type": { |
3012 | | - "value": "SetNumberVariable" |
3013 | | - }, |
3014 | | - "parameters": [ |
3015 | | - "LastStarIDClicked", |
3016 | | - "=", |
3017 | | - "Star.ID" |
3018 | | - ] |
3019 | | - }, |
3020 | | - { |
3021 | | - "type": { |
3022 | | - "value": "SetNumberVariable" |
3023 | | - }, |
3024 | | - "parameters": [ |
3025 | | - "Rate", |
3026 | | - "=", |
3027 | | - "Star.ID" |
3028 | | - ] |
3029 | | - } |
3030 | | - ], |
3031 | | - "events": [ |
3032 | | - { |
3033 | | - "type": "BuiltinCommonInstructions::Standard", |
3034 | | - "conditions": [ |
3035 | | - { |
3036 | | - "type": { |
3037 | | - "value": "AjoutObjConcern" |
3038 | | - }, |
3039 | | - "parameters": [ |
3040 | | - "", |
3041 | | - "Star" |
3042 | | - ] |
3043 | | - } |
3044 | | - ], |
3045 | | - "actions": [], |
3046 | | - "events": [ |
3047 | | - { |
3048 | | - "type": "BuiltinCommonInstructions::Standard", |
3049 | | - "conditions": [ |
3050 | | - { |
3051 | | - "type": { |
3052 | | - "value": "VarObjet" |
3053 | | - }, |
3054 | | - "parameters": [ |
3055 | | - "Star", |
3056 | | - "ID", |
3057 | | - ">", |
3058 | | - "LastStarIDClicked" |
3059 | | - ] |
3060 | | - } |
3061 | | - ], |
3062 | | - "actions": [ |
3063 | | - { |
3064 | | - "type": { |
3065 | | - "value": "AnimatableCapability::AnimatableBehavior::SetName" |
3066 | | - }, |
3067 | | - "parameters": [ |
3068 | | - "Star", |
3069 | | - "Animation", |
3070 | | - "=", |
3071 | | - "\"Disabled\"" |
3072 | | - ] |
3073 | | - } |
3074 | | - ] |
3075 | | - }, |
3076 | | - { |
3077 | | - "type": "BuiltinCommonInstructions::Standard", |
3078 | | - "conditions": [ |
3079 | | - { |
3080 | | - "type": { |
3081 | | - "value": "VarObjet" |
3082 | | - }, |
3083 | | - "parameters": [ |
3084 | | - "Star", |
3085 | | - "ID", |
3086 | | - "<=", |
3087 | | - "LastStarIDClicked" |
3088 | | - ] |
3089 | | - } |
3090 | | - ], |
3091 | | - "actions": [ |
3092 | | - { |
3093 | | - "type": { |
3094 | | - "value": "AnimatableCapability::AnimatableBehavior::SetName" |
3095 | | - }, |
3096 | | - "parameters": [ |
3097 | | - "Star", |
3098 | | - "Animation", |
3099 | | - "=", |
3100 | | - "\"Enabled\"" |
3101 | | - ] |
3102 | | - } |
3103 | | - ] |
3104 | | - } |
3105 | | - ] |
3106 | | - } |
3107 | | - ], |
3108 | | - "variables": [ |
3109 | | - { |
3110 | | - "name": "LastStarIDClicked", |
3111 | | - "type": "number", |
3112 | | - "value": 0 |
3113 | | - } |
3114 | | - ] |
3115 | | - } |
| 2944 | + "type": { |
| 2945 | + "value": "MouseButtonFromTextPressed" |
| 2946 | + }, |
| 2947 | + "parameters": [ |
| 2948 | + "", |
| 2949 | + "\"Left\"" |
| 2950 | + ] |
| 2951 | + }, |
| 2952 | + { |
| 2953 | + "type": { |
| 2954 | + "value": "SourisSurObjet" |
| 2955 | + }, |
| 2956 | + "parameters": [ |
| 2957 | + "Star", |
| 2958 | + "", |
| 2959 | + "", |
| 2960 | + "" |
| 2961 | + ] |
| 2962 | + } |
| 2963 | + ], |
| 2964 | + "actions": [ |
| 2965 | + { |
| 2966 | + "type": { |
| 2967 | + "value": "StarRatingBar::StarRatingBar::SetRate" |
| 2968 | + }, |
| 2969 | + "parameters": [ |
| 2970 | + "Object", |
| 2971 | + "=", |
| 2972 | + "Star.ID", |
| 2973 | + "" |
3116 | 2974 | ] |
3117 | 2975 | } |
3118 | 2976 | ] |
|
3344 | 3202 | "True", |
3345 | 3203 | "" |
3346 | 3204 | ] |
| 3205 | + }, |
| 3206 | + { |
| 3207 | + "type": { |
| 3208 | + "inverted": true, |
| 3209 | + "value": "StarRatingBar::IsInGameEdition" |
| 3210 | + }, |
| 3211 | + "parameters": [ |
| 3212 | + "", |
| 3213 | + "" |
| 3214 | + ] |
3347 | 3215 | } |
3348 | 3216 | ], |
3349 | 3217 | "actions": [ |
|
3539 | 3407 | "type": "Number", |
3540 | 3408 | "unit": "Dimensionless", |
3541 | 3409 | "label": "Default rate", |
3542 | | - "description": "Default rate", |
3543 | 3410 | "group": "Value", |
3544 | 3411 | "name": "Rate" |
3545 | 3412 | }, |
3546 | 3413 | { |
3547 | 3414 | "value": "true", |
3548 | 3415 | "type": "Boolean", |
3549 | | - "label": "Shaking stars on hover", |
3550 | | - "description": "Make the stars shaking on hover", |
| 3416 | + "label": "Shake the stars on value changes", |
3551 | 3417 | "name": "ShakingOnHoverEnabled" |
3552 | 3418 | }, |
3553 | 3419 | { |
3554 | 3420 | "value": "", |
3555 | 3421 | "type": "Boolean", |
3556 | 3422 | "label": "Disable the rating", |
3557 | | - "description": "Disable the rating", |
3558 | 3423 | "name": "Disabled" |
3559 | 3424 | } |
3560 | 3425 | ] |
|
0 commit comments