|
9 | 9 | "name": "PanelSpriteButton", |
10 | 10 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg", |
11 | 11 | "shortDescription": "A button that can be customized.", |
12 | | - "version": "2.0.0", |
| 12 | + "version": "2.1.0", |
13 | 13 | "description": [ |
14 | 14 | "A button that can be used for menus and most labelled buttons of a game. The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.", |
15 | 15 | "", |
|
1337 | 1337 | "useLegacyBottomAndRightAnchors": false |
1338 | 1338 | } |
1339 | 1339 | ] |
| 1340 | + }, |
| 1341 | + { |
| 1342 | + "assetStoreId": "", |
| 1343 | + "name": "BitmapLabel", |
| 1344 | + "type": "BitmapText::BitmapTextObject", |
| 1345 | + "variables": [], |
| 1346 | + "effects": [], |
| 1347 | + "behaviors": [ |
| 1348 | + { |
| 1349 | + "name": "Anchor", |
| 1350 | + "type": "AnchorBehavior::AnchorBehavior", |
| 1351 | + "bottomEdgeAnchor": 4, |
| 1352 | + "topEdgeAnchor": 4, |
| 1353 | + "leftEdgeAnchor": 1, |
| 1354 | + "relativeToOriginalWindowSize": true, |
| 1355 | + "rightEdgeAnchor": 2, |
| 1356 | + "useLegacyBottomAndRightAnchors": false |
| 1357 | + } |
| 1358 | + ], |
| 1359 | + "content": { |
| 1360 | + "text": "Text", |
| 1361 | + "opacity": 255, |
| 1362 | + "scale": 1, |
| 1363 | + "fontSize": 20, |
| 1364 | + "tint": "255;255;255", |
| 1365 | + "bitmapFontResourceName": "", |
| 1366 | + "textureAtlasResourceName": "", |
| 1367 | + "align": "center", |
| 1368 | + "verticalTextAlignment": "center" |
| 1369 | + } |
1340 | 1370 | } |
1341 | 1371 | ], |
1342 | 1372 | "objectsFolderStructure": { |
|
1345 | 1375 | { |
1346 | 1376 | "objectName": "Label" |
1347 | 1377 | }, |
| 1378 | + { |
| 1379 | + "objectName": "BitmapLabel" |
| 1380 | + }, |
1348 | 1381 | { |
1349 | 1382 | "objectName": "Idle" |
1350 | 1383 | }, |
|
1370 | 1403 | "name": "Pressed" |
1371 | 1404 | } |
1372 | 1405 | ] |
| 1406 | + }, |
| 1407 | + { |
| 1408 | + "name": "Labels", |
| 1409 | + "objects": [ |
| 1410 | + { |
| 1411 | + "name": "Label" |
| 1412 | + }, |
| 1413 | + { |
| 1414 | + "name": "BitmapLabel" |
| 1415 | + } |
| 1416 | + ] |
1373 | 1417 | } |
1374 | 1418 | ], |
1375 | 1419 | "layers": [ |
|
1546 | 1590 | "value": "TextContainerCapability::TextContainerBehavior::SetValue" |
1547 | 1591 | }, |
1548 | 1592 | "parameters": [ |
1549 | | - "Label", |
| 1593 | + "Labels", |
1550 | 1594 | "Text", |
1551 | 1595 | "=", |
1552 | 1596 | "LabelText" |
|
1622 | 1666 | "value": "TextContainerCapability::TextContainerBehavior::SetValue" |
1623 | 1667 | }, |
1624 | 1668 | "parameters": [ |
1625 | | - "Label", |
| 1669 | + "Labels", |
1626 | 1670 | "Text", |
1627 | 1671 | "=", |
1628 | 1672 | "LabelText" |
|
2262 | 2306 | "value": "TextContainerCapability::TextContainerBehavior::SetValue" |
2263 | 2307 | }, |
2264 | 2308 | "parameters": [ |
2265 | | - "Label", |
| 2309 | + "Labels", |
2266 | 2310 | "Text", |
2267 | 2311 | "=", |
2268 | 2312 | "Value" |
|
2302 | 2346 | "value": "TextContainerCapability::TextContainerBehavior::SetValue" |
2303 | 2347 | }, |
2304 | 2348 | "parameters": [ |
2305 | | - "Label", |
| 2349 | + "Labels", |
2306 | 2350 | "Text", |
2307 | 2351 | "=", |
2308 | 2352 | "Value" |
|
2337 | 2381 | "value": "SetReturnString" |
2338 | 2382 | }, |
2339 | 2383 | "parameters": [ |
2340 | | - "Label.Text::Value()" |
| 2384 | + "Labels.Text::Value()" |
2341 | 2385 | ] |
2342 | 2386 | } |
2343 | 2387 | ] |
|
2529 | 2573 | "value": "SetCenterY" |
2530 | 2574 | }, |
2531 | 2575 | "parameters": [ |
2532 | | - "Label", |
| 2576 | + "Labels", |
2533 | 2577 | "+", |
2534 | 2578 | "Value - LabelOffset" |
2535 | 2579 | ] |
|
2594 | 2638 | "type": "Choice", |
2595 | 2639 | "label": "", |
2596 | 2640 | "extraInformation": [ |
2597 | | - "Label.Text=LabelText" |
| 2641 | + "Label.Text=LabelText", |
| 2642 | + "BitmapLabel.Text=LabelText" |
2598 | 2643 | ], |
2599 | 2644 | "hidden": true, |
2600 | 2645 | "name": "_PropertyMapping" |
|
0 commit comments