Skip to content

Commit 9198f9a

Browse files
authored
[Community] [Chat bubble] Fix the bubble color (#1751)
1 parent bc284c5 commit 9198f9a

File tree

1 file changed

+33
-95
lines changed

1 file changed

+33
-95
lines changed

extensions/community/ChatBubble.json

Lines changed: 33 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
{
22
"author": "",
33
"category": "User interface",
4-
"description": "Create chat bubbles dynamically\n\ncurrently support:\n- auto adjustments for text width\n- auto adjustments for text height\n- chat bubble colors\n- name tags\n\nfuture support:\n- different positions for the chat bubble tail\n- adjustable paddings.\n\n[Example link](https://gdevelop.io/game-example/chat-bubble)",
54
"extensionNamespace": "",
6-
"gdevelopVersion": ">=5.5.222",
75
"fullName": "ChatBubble",
6+
"gdevelopVersion": ">=5.5.222",
87
"helpPath": "",
98
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWNoYXQtb3V0bGluZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMiwzQzYuNSwzIDIsNi41OCAyLDExQzIuMDUsMTMuMTUgMy4wNiwxNS4xNyA0Ljc1LDE2LjVDNC43NSwxNy4xIDQuMzMsMTguNjcgMiwyMUM0LjM3LDIwLjg5IDYuNjQsMjAgOC40NywxOC41QzkuNjEsMTguODMgMTAuODEsMTkgMTIsMTlDMTcuNSwxOSAyMiwxNS40MiAyMiwxMUMyMiw2LjU4IDE3LjUsMyAxMiwzTTEyLDE3QzcuNTgsMTcgNCwxNC4zMSA0LDExQzQsNy42OSA3LjU4LDUgMTIsNUMxNi40Miw1IDIwLDcuNjkgMjAsMTFDMjAsMTQuMzEgMTYuNDIsMTcgMTIsMTdaIiAvPjwvc3ZnPg==",
109
"name": "ChatBubble",
1110
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/chat-outline.svg",
1211
"shortDescription": "Create chat bubbles dynamically. ",
13-
"version": "1.7.0",
12+
"version": "1.7.1",
13+
"description": [
14+
"Create chat bubbles dynamically",
15+
"",
16+
"currently support:",
17+
"- auto adjustments for text width",
18+
"- auto adjustments for text height",
19+
"- chat bubble colors",
20+
"- name tags",
21+
"",
22+
"future support:",
23+
"- different positions for the chat bubble tail",
24+
"- adjustable paddings.",
25+
"",
26+
"[Example link](https://gdevelop.io/game-example/chat-bubble)"
27+
],
28+
"origin": {
29+
"identifier": "ChatBubble",
30+
"name": "gdevelop-extension-store"
31+
},
1432
"tags": [
1533
"bubble",
1634
"chat",
@@ -20,6 +38,8 @@
2038
"rotBq28wITdtfsrE7McHQri4k2w2"
2139
],
2240
"dependencies": [],
41+
"globalVariables": [],
42+
"sceneVariables": [],
2343
"eventsFunctions": [],
2444
"eventsBasedBehaviors": [
2545
{
@@ -29,12 +49,9 @@
2949
"objectType": "PrimitiveDrawing::Drawer",
3050
"eventsFunctions": [
3151
{
32-
"description": "",
3352
"fullName": "",
3453
"functionType": "Action",
35-
"group": "",
3654
"name": "onCreated",
37-
"private": false,
3855
"sentence": "",
3956
"events": [
4057
{
@@ -56,6 +73,7 @@
5673
},
5774
"parameters": [
5875
"DefaultColor",
76+
"=",
5977
"ToString(Object.FillColorRed()) + \";\" +\nToString(Object.FillColorGreen()) + \";\" +\nToString(Object.FillColorBlue())"
6078
]
6179
},
@@ -65,6 +83,7 @@
6583
},
6684
"parameters": [
6785
"DefaultOutlineColor",
86+
"=",
6887
"ToString(Object.OutlineColorRed()) + \";\" +\nToString(Object.OutlineColorGreen()) + \";\" +\nToString(Object.OutlineColorBlue())"
6988
]
7089
}
@@ -73,22 +92,14 @@
7392
],
7493
"parameters": [
7594
{
76-
"codeOnly": false,
77-
"defaultValue": "",
7895
"description": "Object",
79-
"longDescription": "",
8096
"name": "Object",
81-
"optional": false,
8297
"supplementaryInformation": "PrimitiveDrawing::Drawer",
8398
"type": "object"
8499
},
85100
{
86-
"codeOnly": false,
87-
"defaultValue": "",
88101
"description": "Behavior",
89-
"longDescription": "",
90102
"name": "Behavior",
91-
"optional": false,
92103
"supplementaryInformation": "ChatBubble::ChatBubble",
93104
"type": "behavior"
94105
}
@@ -101,7 +112,6 @@
101112
"functionType": "Action",
102113
"group": "ChatBubbleExtension",
103114
"name": "DrawChatBubble",
104-
"private": false,
105115
"sentence": "Draw a chat bubble at point _PARAM2_, _PARAM3_ using text object _PARAM4_, shape painter _PARAM0_, layer: _PARAM5_",
106116
"events": [
107117
{
@@ -182,8 +192,7 @@
182192
"textG": 0,
183193
"textR": 0
184194
},
185-
"comment": "Calculate positions",
186-
"comment2": ""
195+
"comment": "Calculate positions"
187196
},
188197
{
189198
"type": "BuiltinCommonInstructions::Standard",
@@ -317,8 +326,7 @@
317326
"textG": 0,
318327
"textR": 0
319328
},
320-
"comment": "Draw ChatBubble",
321-
"comment2": ""
329+
"comment": "Draw ChatBubble"
322330
},
323331
{
324332
"type": "BuiltinCommonInstructions::Standard",
@@ -380,63 +388,36 @@
380388
],
381389
"parameters": [
382390
{
383-
"codeOnly": false,
384-
"defaultValue": "",
385391
"description": "Object",
386-
"longDescription": "",
387392
"name": "Object",
388-
"optional": false,
389393
"supplementaryInformation": "PrimitiveDrawing::Drawer",
390394
"type": "object"
391395
},
392396
{
393-
"codeOnly": false,
394-
"defaultValue": "",
395397
"description": "Behavior",
396-
"longDescription": "",
397398
"name": "Behavior",
398-
"optional": false,
399399
"supplementaryInformation": "ChatBubble::ChatBubble",
400400
"type": "behavior"
401401
},
402402
{
403-
"codeOnly": false,
404-
"defaultValue": "",
405403
"description": "X position",
406-
"longDescription": "",
407404
"name": "PointX",
408-
"optional": false,
409-
"supplementaryInformation": "",
410405
"type": "expression"
411406
},
412407
{
413-
"codeOnly": false,
414-
"defaultValue": "",
415408
"description": "Y position",
416-
"longDescription": "",
417409
"name": "PointY",
418-
"optional": false,
419-
"supplementaryInformation": "",
420410
"type": "expression"
421411
},
422412
{
423-
"codeOnly": false,
424-
"defaultValue": "",
425413
"description": "Chat bubble text object",
426-
"longDescription": "",
427414
"name": "ChatBubbleText",
428-
"optional": false,
429415
"supplementaryInformation": "TextObject::Text",
430416
"type": "objectList"
431417
},
432418
{
433-
"codeOnly": false,
434-
"defaultValue": "",
435419
"description": "Layer",
436-
"longDescription": "",
437420
"name": "Layer",
438-
"optional": false,
439-
"supplementaryInformation": "",
440421
"type": "layer"
441422
}
442423
],
@@ -448,7 +429,6 @@
448429
"functionType": "Action",
449430
"group": "ChatBubbleExtension",
450431
"name": "DrawChatBubbleWithNameTag",
451-
"private": false,
452432
"sentence": "Draw a chat bubble at point _PARAM2_, _PARAM3_ using text object _PARAM4_, shape painter _PARAM0_, name tag text object: _PARAM6_, layer: _PARAM5_",
453433
"events": [
454434
{
@@ -461,8 +441,7 @@
461441
"textG": 0,
462442
"textR": 0
463443
},
464-
"comment": "Draw Chat Bubble",
465-
"comment2": ""
444+
"comment": "Draw Chat Bubble"
466445
},
467446
{
468447
"type": "BuiltinCommonInstructions::Standard",
@@ -494,8 +473,7 @@
494473
"textG": 0,
495474
"textR": 0
496475
},
497-
"comment": "Draw Nametag",
498-
"comment2": ""
476+
"comment": "Draw Nametag"
499477
},
500478
{
501479
"type": "BuiltinCommonInstructions::Standard",
@@ -601,72 +579,41 @@
601579
],
602580
"parameters": [
603581
{
604-
"codeOnly": false,
605-
"defaultValue": "",
606582
"description": "Object",
607-
"longDescription": "",
608583
"name": "Object",
609-
"optional": false,
610584
"supplementaryInformation": "PrimitiveDrawing::Drawer",
611585
"type": "object"
612586
},
613587
{
614-
"codeOnly": false,
615-
"defaultValue": "",
616588
"description": "Behavior",
617-
"longDescription": "",
618589
"name": "Behavior",
619-
"optional": false,
620590
"supplementaryInformation": "ChatBubble::ChatBubble",
621591
"type": "behavior"
622592
},
623593
{
624-
"codeOnly": false,
625-
"defaultValue": "",
626594
"description": "X position",
627-
"longDescription": "",
628595
"name": "PointX",
629-
"optional": false,
630-
"supplementaryInformation": "",
631596
"type": "expression"
632597
},
633598
{
634-
"codeOnly": false,
635-
"defaultValue": "",
636599
"description": "Y position",
637-
"longDescription": "",
638600
"name": "PointY",
639-
"optional": false,
640-
"supplementaryInformation": "",
641601
"type": "expression"
642602
},
643603
{
644-
"codeOnly": false,
645-
"defaultValue": "",
646604
"description": "Chat bubble text object",
647-
"longDescription": "",
648605
"name": "ChatBubbleText",
649-
"optional": false,
650606
"supplementaryInformation": "TextObject::Text",
651607
"type": "objectList"
652608
},
653609
{
654-
"codeOnly": false,
655-
"defaultValue": "",
656610
"description": "Layer",
657-
"longDescription": "",
658611
"name": "Layer",
659-
"optional": false,
660-
"supplementaryInformation": "",
661612
"type": "layer"
662613
},
663614
{
664-
"codeOnly": false,
665-
"defaultValue": "",
666615
"description": "Name tag text object (optional)",
667-
"longDescription": "",
668616
"name": "NameTagText",
669-
"optional": false,
670617
"supplementaryInformation": "TextObject::Text",
671618
"type": "objectList"
672619
}
@@ -679,53 +626,44 @@
679626
"value": "155;155;155",
680627
"type": "Color",
681628
"label": "Name Tag Background Color (if you only call draw with name tag)",
682-
"description": "",
683629
"group": "Name Tag Properties",
684-
"extraInformation": [],
685-
"hidden": false,
686630
"name": "NameTagBackgroundColor"
687631
},
688632
{
689633
"value": "",
690634
"type": "Color",
691635
"label": "",
692-
"description": "",
693636
"group": "Chat Bubble Properties",
694-
"extraInformation": [],
695637
"hidden": true,
696638
"name": "DefaultColor"
697639
},
698640
{
699641
"value": "",
700642
"type": "Color",
701643
"label": "",
702-
"description": "",
703644
"group": "Chat Bubble Properties",
704-
"extraInformation": [],
705645
"hidden": true,
706646
"name": "DefaultOutlineColor"
707647
},
708648
{
709649
"value": "",
710650
"type": "Number",
711651
"label": "Draw Chat Width",
712-
"description": "",
713652
"group": "Chat Bubble Properties",
714-
"extraInformation": [],
715653
"hidden": true,
716654
"name": "DrawChatWidth"
717655
},
718656
{
719657
"value": "",
720658
"type": "Number",
721659
"label": "Draw Chat Height",
722-
"description": "",
723660
"group": "Chat Bubble Properties",
724-
"extraInformation": [],
725661
"hidden": true,
726662
"name": "DrawChatHeight"
727663
}
728-
]
664+
],
665+
"sharedPropertyDescriptors": []
729666
}
730-
]
667+
],
668+
"eventsBasedObjects": []
731669
}

0 commit comments

Comments
 (0)