Skip to content

Commit 3142071

Browse files
committed
Fix the hovered property
1 parent 0c33dea commit 3142071

File tree

1 file changed

+62
-197
lines changed

1 file changed

+62
-197
lines changed

extensions/reviewed/StarRatingBar.json

Lines changed: 62 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,6 +2904,18 @@
29042904
"name": "doStepPostEvents",
29052905
"sentence": "",
29062906
"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+
},
29072919
{
29082920
"type": "BuiltinCommonInstructions::Standard",
29092921
"conditions": [
@@ -2916,203 +2928,49 @@
29162928
"",
29172929
""
29182930
]
2919-
}
2920-
],
2921-
"actions": [],
2922-
"events": [
2931+
},
29232932
{
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"
29322936
},
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+
]
29342942
},
29352943
{
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+
""
31162974
]
31172975
}
31182976
]
@@ -3344,6 +3202,16 @@
33443202
"True",
33453203
""
33463204
]
3205+
},
3206+
{
3207+
"type": {
3208+
"inverted": true,
3209+
"value": "StarRatingBar::IsInGameEdition"
3210+
},
3211+
"parameters": [
3212+
"",
3213+
""
3214+
]
33473215
}
33483216
],
33493217
"actions": [
@@ -3539,22 +3407,19 @@
35393407
"type": "Number",
35403408
"unit": "Dimensionless",
35413409
"label": "Default rate",
3542-
"description": "Default rate",
35433410
"group": "Value",
35443411
"name": "Rate"
35453412
},
35463413
{
35473414
"value": "true",
35483415
"type": "Boolean",
3549-
"label": "Shaking stars on hover",
3550-
"description": "Make the stars shaking on hover",
3416+
"label": "Shake the stars on value changes",
35513417
"name": "ShakingOnHoverEnabled"
35523418
},
35533419
{
35543420
"value": "",
35553421
"type": "Boolean",
35563422
"label": "Disable the rating",
3557-
"description": "Disable the rating",
35583423
"name": "Disabled"
35593424
}
35603425
]

0 commit comments

Comments
 (0)