|
8 | 8 | "name": "PanelSpriteSlider",
|
9 | 9 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg",
|
10 | 10 | "shortDescription": "A draggable slider that users can move to select a numerical value.",
|
11 |
| - "version": "1.4.0", |
| 11 | + "version": "1.4.1", |
12 | 12 | "description": [
|
13 | 13 | "A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.",
|
14 | 14 | "",
|
|
221 | 221 | "=",
|
222 | 222 | "GetArgumentAsNumber(\"Value\")"
|
223 | 223 | ]
|
| 224 | + }, |
| 225 | + { |
| 226 | + "type": { |
| 227 | + "value": "PanelSpriteSlider::Slider::SetValue" |
| 228 | + }, |
| 229 | + "parameters": [ |
| 230 | + "Object", |
| 231 | + "Behavior", |
| 232 | + "=", |
| 233 | + "Object.Behavior::Value()", |
| 234 | + "" |
| 235 | + ] |
224 | 236 | }
|
225 | 237 | ]
|
226 | 238 | }
|
|
302 | 314 | "=",
|
303 | 315 | "GetArgumentAsNumber(\"Value\")"
|
304 | 316 | ]
|
| 317 | + }, |
| 318 | + { |
| 319 | + "type": { |
| 320 | + "value": "PanelSpriteSlider::Slider::SetValue" |
| 321 | + }, |
| 322 | + "parameters": [ |
| 323 | + "Object", |
| 324 | + "Behavior", |
| 325 | + "=", |
| 326 | + "Object.Behavior::Value()", |
| 327 | + "" |
| 328 | + ] |
305 | 329 | }
|
306 | 330 | ]
|
307 | 331 | }
|
|
322 | 346 | "objectGroups": []
|
323 | 347 | },
|
324 | 348 | {
|
325 |
| - "description": "Return the bar value bounds size.", |
| 349 | + "description": "the bar value bounds size.", |
326 | 350 | "fullName": "Size",
|
327 |
| - "functionType": "Expression", |
| 351 | + "functionType": "ExpressionAndCondition", |
328 | 352 | "name": "Size",
|
329 |
| - "sentence": "", |
| 353 | + "sentence": "the bar value bounds size", |
330 | 354 | "events": [
|
331 | 355 | {
|
332 | 356 | "type": "BuiltinCommonInstructions::Standard",
|
|
423 | 447 | "=",
|
424 | 448 | "GetArgumentAsNumber(\"Value\")"
|
425 | 449 | ]
|
| 450 | + }, |
| 451 | + { |
| 452 | + "type": { |
| 453 | + "value": "PanelSpriteSlider::Slider::SetValue" |
| 454 | + }, |
| 455 | + "parameters": [ |
| 456 | + "Object", |
| 457 | + "Behavior", |
| 458 | + "=", |
| 459 | + "Object.Behavior::Value()", |
| 460 | + "" |
| 461 | + ] |
426 | 462 | }
|
427 | 463 | ]
|
428 | 464 | }
|
|
2162 | 2198 | {
|
2163 | 2199 | "type": "BuiltinCommonInstructions::Standard",
|
2164 | 2200 | "conditions": [
|
| 2201 | + { |
| 2202 | + "type": { |
| 2203 | + "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyShowLabelAtChanges" |
| 2204 | + }, |
| 2205 | + "parameters": [ |
| 2206 | + "Object" |
| 2207 | + ] |
| 2208 | + }, |
2165 | 2209 | {
|
2166 | 2210 | "type": {
|
2167 | 2211 | "value": "CollisionPoint"
|
|
3074 | 3118 | "events": [
|
3075 | 3119 | {
|
3076 | 3120 | "type": "BuiltinCommonInstructions::Standard",
|
3077 |
| - "conditions": [], |
3078 |
| - "actions": [ |
| 3121 | + "conditions": [ |
3079 | 3122 | {
|
3080 | 3123 | "type": {
|
3081 |
| - "value": "PanelSpriteObject::Width" |
| 3124 | + "value": "PanelSpriteSlider::Slider::Size" |
3082 | 3125 | },
|
3083 | 3126 | "parameters": [
|
3084 | 3127 | "FillBar",
|
3085 |
| - "=", |
3086 |
| - "Object.FullBarWidth() * (FillBar.Slider::Value() - FillBar.Slider::MinValue()) / FillBar.Slider::Size()" |
3087 |
| - ] |
3088 |
| - } |
3089 |
| - ] |
3090 |
| - }, |
3091 |
| - { |
3092 |
| - "type": "BuiltinCommonInstructions::Standard", |
3093 |
| - "conditions": [], |
3094 |
| - "actions": [ |
3095 |
| - { |
3096 |
| - "type": { |
3097 |
| - "value": "SetCenterX" |
3098 |
| - }, |
3099 |
| - "parameters": [ |
3100 |
| - "Thumb", |
3101 |
| - "=", |
3102 |
| - "Object.FullBarLeft() + FillBar.Width()" |
3103 |
| - ] |
3104 |
| - }, |
3105 |
| - { |
3106 |
| - "type": { |
3107 |
| - "value": "SetCenterY" |
3108 |
| - }, |
3109 |
| - "parameters": [ |
3110 |
| - "Thumb", |
3111 |
| - "=", |
3112 |
| - "FillBar.CenterY()" |
| 3128 | + "Slider", |
| 3129 | + ">", |
| 3130 | + "0", |
| 3131 | + "" |
3113 | 3132 | ]
|
3114 | 3133 | }
|
3115 |
| - ] |
3116 |
| - }, |
3117 |
| - { |
3118 |
| - "type": "BuiltinCommonInstructions::Standard", |
3119 |
| - "conditions": [], |
3120 |
| - "actions": [ |
| 3134 | + ], |
| 3135 | + "actions": [], |
| 3136 | + "events": [ |
3121 | 3137 | {
|
3122 |
| - "type": { |
3123 |
| - "value": "TextObject::String" |
3124 |
| - }, |
3125 |
| - "parameters": [ |
3126 |
| - "Label", |
3127 |
| - "=", |
3128 |
| - "ToString(Object.Value())" |
| 3138 | + "type": "BuiltinCommonInstructions::Standard", |
| 3139 | + "conditions": [], |
| 3140 | + "actions": [ |
| 3141 | + { |
| 3142 | + "type": { |
| 3143 | + "value": "PanelSpriteObject::Width" |
| 3144 | + }, |
| 3145 | + "parameters": [ |
| 3146 | + "FillBar", |
| 3147 | + "=", |
| 3148 | + "Object.FullBarWidth() * (FillBar.Slider::Value() - FillBar.Slider::MinValue()) / FillBar.Slider::Size()" |
| 3149 | + ] |
| 3150 | + } |
3129 | 3151 | ]
|
3130 | 3152 | },
|
3131 | 3153 | {
|
3132 |
| - "type": { |
3133 |
| - "value": "SetCenterX" |
3134 |
| - }, |
3135 |
| - "parameters": [ |
3136 |
| - "Label", |
3137 |
| - "=", |
3138 |
| - "Thumb.CenterX()" |
| 3154 | + "type": "BuiltinCommonInstructions::Standard", |
| 3155 | + "conditions": [], |
| 3156 | + "actions": [ |
| 3157 | + { |
| 3158 | + "type": { |
| 3159 | + "value": "SetCenterX" |
| 3160 | + }, |
| 3161 | + "parameters": [ |
| 3162 | + "Thumb", |
| 3163 | + "=", |
| 3164 | + "Object.FullBarLeft() + FillBar.Width()" |
| 3165 | + ] |
| 3166 | + }, |
| 3167 | + { |
| 3168 | + "type": { |
| 3169 | + "value": "SetCenterY" |
| 3170 | + }, |
| 3171 | + "parameters": [ |
| 3172 | + "Thumb", |
| 3173 | + "=", |
| 3174 | + "FillBar.CenterY()" |
| 3175 | + ] |
| 3176 | + } |
3139 | 3177 | ]
|
3140 | 3178 | },
|
3141 | 3179 | {
|
3142 |
| - "type": { |
3143 |
| - "value": "MettreY" |
3144 |
| - }, |
3145 |
| - "parameters": [ |
3146 |
| - "Label", |
3147 |
| - "=", |
3148 |
| - "Thumb.Y() - Label.Height() - Object.PropertyLabelMargin()" |
| 3180 | + "type": "BuiltinCommonInstructions::Standard", |
| 3181 | + "conditions": [], |
| 3182 | + "actions": [ |
| 3183 | + { |
| 3184 | + "type": { |
| 3185 | + "value": "TextObject::String" |
| 3186 | + }, |
| 3187 | + "parameters": [ |
| 3188 | + "Label", |
| 3189 | + "=", |
| 3190 | + "ToString(Object.Value())" |
| 3191 | + ] |
| 3192 | + }, |
| 3193 | + { |
| 3194 | + "type": { |
| 3195 | + "value": "SetCenterX" |
| 3196 | + }, |
| 3197 | + "parameters": [ |
| 3198 | + "Label", |
| 3199 | + "=", |
| 3200 | + "Thumb.CenterX()" |
| 3201 | + ] |
| 3202 | + }, |
| 3203 | + { |
| 3204 | + "type": { |
| 3205 | + "value": "MettreY" |
| 3206 | + }, |
| 3207 | + "parameters": [ |
| 3208 | + "Label", |
| 3209 | + "=", |
| 3210 | + "Thumb.Y() - Label.Height() - Object.PropertyLabelMargin()" |
| 3211 | + ] |
| 3212 | + } |
3149 | 3213 | ]
|
3150 | 3214 | }
|
3151 | 3215 | ]
|
|
0 commit comments