Skip to content

Commit 3246e53

Browse files
committed
[Button] Add condition for checking label text
1 parent fa659fe commit 3246e53

File tree

1 file changed

+39
-31
lines changed

1 file changed

+39
-31
lines changed

extensions/reviewed/PanelSpriteButton.json

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,17 +1118,13 @@
11181118
"type": "Boolean",
11191119
"label": "",
11201120
"description": "Should check hovering",
1121-
"group": "",
1122-
"extraInformation": [],
11231121
"hidden": true,
11241122
"name": "ShouldCheckHovering"
11251123
},
11261124
{
11271125
"value": "Idle",
11281126
"type": "Choice",
11291127
"label": "State",
1130-
"description": "",
1131-
"group": "",
11321128
"extraInformation": [
11331129
"Idle",
11341130
"Hovered",
@@ -1143,39 +1139,27 @@
11431139
"value": "0",
11441140
"type": "Number",
11451141
"label": "Touch id",
1146-
"description": "",
1147-
"group": "",
1148-
"extraInformation": [],
11491142
"hidden": true,
11501143
"name": "TouchId"
11511144
},
11521145
{
11531146
"value": "",
11541147
"type": "Boolean",
11551148
"label": "Touch is inside",
1156-
"description": "",
1157-
"group": "",
1158-
"extraInformation": [],
11591149
"hidden": true,
11601150
"name": "TouchIsInside"
11611151
},
11621152
{
11631153
"value": "",
11641154
"type": "Boolean",
11651155
"label": "Mouse is inside",
1166-
"description": "",
1167-
"group": "",
1168-
"extraInformation": [],
11691156
"hidden": true,
11701157
"name": "MouseIsInside"
11711158
},
11721159
{
11731160
"value": "",
11741161
"type": "Number",
11751162
"label": "",
1176-
"description": "",
1177-
"group": "",
1178-
"extraInformation": [],
11791163
"hidden": true,
11801164
"name": "Index"
11811165
}
@@ -2260,6 +2244,7 @@
22602244
"fullName": "Label text",
22612245
"functionType": "Action",
22622246
"name": "SetLabelText",
2247+
"private": true,
22632248
"sentence": "Change the text of _PARAM0_ to _PARAM1_",
22642249
"events": [
22652250
{
@@ -2296,11 +2281,46 @@
22962281
"objectGroups": []
22972282
},
22982283
{
2299-
"description": "Return the label text.",
2284+
"fullName": "",
2285+
"functionType": "ActionWithOperator",
2286+
"getterName": "LabelText",
2287+
"name": "SetLabelTextOp",
2288+
"sentence": "",
2289+
"events": [
2290+
{
2291+
"type": "BuiltinCommonInstructions::Standard",
2292+
"conditions": [],
2293+
"actions": [
2294+
{
2295+
"type": {
2296+
"value": "TextContainerCapability::TextContainerBehavior::SetValue"
2297+
},
2298+
"parameters": [
2299+
"Label",
2300+
"Text",
2301+
"=",
2302+
"Value"
2303+
]
2304+
}
2305+
]
2306+
}
2307+
],
2308+
"parameters": [
2309+
{
2310+
"description": "Object",
2311+
"name": "Object",
2312+
"supplementaryInformation": "PanelSpriteButton::PanelSpriteButton",
2313+
"type": "object"
2314+
}
2315+
],
2316+
"objectGroups": []
2317+
},
2318+
{
2319+
"description": "the label text.",
23002320
"fullName": "Label text",
2301-
"functionType": "StringExpression",
2321+
"functionType": "ExpressionAndCondition",
23022322
"name": "LabelText",
2303-
"sentence": "",
2323+
"sentence": "the label text",
23042324
"events": [
23052325
{
23062326
"type": "BuiltinCommonInstructions::Standard",
@@ -2537,48 +2557,36 @@
25372557
"value": "",
25382558
"type": "String",
25392559
"label": "Label",
2540-
"description": "",
2541-
"group": "",
2542-
"extraInformation": [],
25432560
"name": "LabelText"
25442561
},
25452562
{
25462563
"value": "0.25",
25472564
"type": "Number",
25482565
"unit": "Second",
25492566
"label": "Hovered fade out duration",
2550-
"description": "",
25512567
"group": "States",
2552-
"extraInformation": [],
25532568
"name": "HoveredFadeOutDuration"
25542569
},
25552570
{
25562571
"value": "0",
25572572
"type": "Number",
25582573
"unit": "Pixel",
25592574
"label": "Label offset on Y axis when pressed",
2560-
"description": "",
25612575
"group": "States",
2562-
"extraInformation": [],
25632576
"name": "PressedLabelOffsetY"
25642577
},
25652578
{
25662579
"value": "0",
25672580
"type": "Number",
25682581
"unit": "Pixel",
25692582
"label": "",
2570-
"description": "",
2571-
"group": "",
2572-
"extraInformation": [],
25732583
"hidden": true,
25742584
"name": "LabelOffset"
25752585
},
25762586
{
25772587
"value": "",
25782588
"type": "Choice",
25792589
"label": "",
2580-
"description": "",
2581-
"group": "",
25822590
"extraInformation": [
25832591
"Label.Text=LabelText"
25842592
],

0 commit comments

Comments
 (0)