Skip to content

Commit c8b04d7

Browse files
authored
[Slider] Fix a shifting when sliders are rotated (#795)
1 parent 0c5a6b0 commit c8b04d7

File tree

1 file changed

+44
-58
lines changed

1 file changed

+44
-58
lines changed

extensions/reviewed/PanelSpriteSlider.json

Lines changed: 44 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "PanelSpriteSlider",
99
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg",
1010
"shortDescription": "A draggable slider that users can move to select a numerical value.",
11-
"version": "1.4.1",
11+
"version": "1.4.2",
1212
"description": [
1313
"A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.",
1414
"",
@@ -1829,15 +1829,6 @@
18291829
"4"
18301830
]
18311831
},
1832-
{
1833-
"type": {
1834-
"value": "TextObject::SetTextAlignment"
1835-
},
1836-
"parameters": [
1837-
"Label",
1838-
"\"center\""
1839-
]
1840-
},
18411832
{
18421833
"type": {
18431834
"value": "TextObject::SetWrapping"
@@ -1895,6 +1886,39 @@
18951886
]
18961887
}
18971888
]
1889+
},
1890+
{
1891+
"type": "BuiltinCommonInstructions::Standard",
1892+
"conditions": [],
1893+
"actions": [
1894+
{
1895+
"type": {
1896+
"value": "SetIncludedInParentCollisionMask"
1897+
},
1898+
"parameters": [
1899+
"Label",
1900+
""
1901+
]
1902+
},
1903+
{
1904+
"type": {
1905+
"value": "SetIncludedInParentCollisionMask"
1906+
},
1907+
"parameters": [
1908+
"Thumb",
1909+
""
1910+
]
1911+
},
1912+
{
1913+
"type": {
1914+
"value": "SetIncludedInParentCollisionMask"
1915+
},
1916+
"parameters": [
1917+
"FillBar",
1918+
""
1919+
]
1920+
}
1921+
]
18981922
}
18991923
],
19001924
"parameters": [
@@ -3048,54 +3072,6 @@
30483072
]
30493073
}
30503074
]
3051-
},
3052-
{
3053-
"type": "BuiltinCommonInstructions::Standard",
3054-
"conditions": [],
3055-
"actions": [
3056-
{
3057-
"type": {
3058-
"value": "MettreXY"
3059-
},
3060-
"parameters": [
3061-
"Label",
3062-
"=",
3063-
"Object.PropertyBarLeftPadding()",
3064-
"=",
3065-
"Object.PropertyBarTopPadding()"
3066-
]
3067-
},
3068-
{
3069-
"type": {
3070-
"value": "TextObject::WrappingWidth"
3071-
},
3072-
"parameters": [
3073-
"Label",
3074-
"=",
3075-
"Object.FullBarWidth()"
3076-
]
3077-
},
3078-
{
3079-
"type": {
3080-
"value": "SetCenterY"
3081-
},
3082-
"parameters": [
3083-
"Label",
3084-
"=",
3085-
"FillBar.CenterY()"
3086-
]
3087-
},
3088-
{
3089-
"type": {
3090-
"value": "SetCenterX"
3091-
},
3092-
"parameters": [
3093-
"Label",
3094-
"=",
3095-
"Background.CenterX() + (Object.PropertyBarLeftPadding() - Object.PropertyBarRightPadding()) / 2"
3096-
]
3097-
}
3098-
]
30993075
}
31003076
],
31013077
"parameters": [
@@ -3209,6 +3185,16 @@
32093185
"=",
32103186
"Thumb.Y() - Label.Height() - Object.PropertyLabelMargin()"
32113187
]
3188+
},
3189+
{
3190+
"type": {
3191+
"value": "TextObject::Angle"
3192+
},
3193+
"parameters": [
3194+
"Label",
3195+
"=",
3196+
"-Object.Angle()"
3197+
]
32123198
}
32133199
]
32143200
}

0 commit comments

Comments
 (0)