Skip to content

Commit

Permalink
dragonbones spine change cloth
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylanwanjun committed Jul 2, 2019
1 parent 19f4abd commit 8657a50
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 136 deletions.
4 changes: 2 additions & 2 deletions assets/cases/dragonbones/DragonBonesCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,14 +523,14 @@ var DragonBullet = cc.Class({

let armatureNode = armature.node;
armatureNode.setPosition(thePos);
armatureNode.rotation = radian * cc.macro.DEG;
armatureNode.angle = -radian * cc.macro.DEG;

this._armature = armature;

if (effect) {
this._effect = effect;
var effectDisplay = this._effect.node;
effectDisplay.rotation = radian * cc.macro.DEG;
effectDisplay.angle = -radian * cc.macro.DEG;
effectDisplay.setPosition(thePos);
effectDisplay.scaleX = 1 + Math.random() * 1;
effectDisplay.scaleY = 1 + Math.random() * 0.5;
Expand Down
142 changes: 41 additions & 101 deletions assets/cases/dragonbones/ReplaceSlotDisplay.fire
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@
"__id__": 9
},
{
"__id__": 18
"__id__": 17
}
],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 27
"__id__": 25
},
{
"__id__": 28
"__id__": 26
}
],
"_prefab": null,
Expand Down Expand Up @@ -439,9 +439,6 @@
"_components": [
{
"__id__": 15
},
{
"__id__": 17
}
],
"_prefab": null,
Expand All @@ -465,8 +462,8 @@
},
"_position": {
"__type__": "cc.Vec3",
"x": 223.169,
"y": -202.965,
"x": -230.4,
"y": -176.64,
"z": 0
},
"_scale": {
Expand All @@ -487,7 +484,7 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "351PH7I6pG64V0JQGBF4Uh"
"_id": "68y//OJt1NhIhqDoOfaKCs"
},
{
"__type__": "cc.Node",
Expand Down Expand Up @@ -554,7 +551,7 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "70Erz5jhdNVJAeUMF+Wg9m"
"_id": "bbexTBJT5Mzpwt+pUKMMeD"
},
{
"__type__": "cc.Node",
Expand Down Expand Up @@ -614,7 +611,7 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "edeuPl+ztBeItBBey57C0h"
"_id": "f5fRapLjNID6DuKwwC72NT"
},
{
"__type__": "cc.Label",
Expand All @@ -630,8 +627,8 @@
}
],
"_useOriginalSize": false,
"_string": "right",
"_N$string": "right",
"_string": "left",
"_N$string": "left",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
Expand All @@ -644,7 +641,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 0,
"_id": "0egljWHBZIfYHDhTAEFsuU"
"_id": "2dZagoebhO56+8QuEDubpB"
},
{
"__type__": "cc.Sprite",
Expand Down Expand Up @@ -676,7 +673,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "65BRbhFPNPUa7pjdAcLvkK"
"_id": "deweyAr6JNAaiLVRjbZ6QR"
},
{
"__type__": "cc.Widget",
Expand All @@ -703,7 +700,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "76xO7uDqZHVLZyUZsE60tn"
"_id": "55ZKQO8DdHr7mqcXz2lgav"
},
{
"__type__": "cc.Button",
Expand Down Expand Up @@ -787,7 +784,7 @@
"_N$target": {
"__id__": 10
},
"_id": "c96JD8Ah9G8JtU5Fly5qK4"
"_id": "68AekJYGBNSZ1Tg3ZMlbqY"
},
{
"__type__": "cc.ClickEvent",
Expand All @@ -796,36 +793,9 @@
},
"component": "",
"_componentId": "972e5Ii4p5AYa4e91UP427+",
"handler": "right",
"handler": "left",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 0,
"_top": 502.96500000000003,
"_bottom": 97.035,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "86SA82li9JpJfg43ygKjNO"
},
{
"__type__": "cc.Node",
"_name": "New Button",
Expand All @@ -835,17 +805,14 @@
},
"_children": [
{
"__id__": 19
"__id__": 18
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 24
},
{
"__id__": 26
"__id__": 23
}
],
"_prefab": null,
Expand All @@ -869,8 +836,8 @@
},
"_position": {
"__type__": "cc.Vec3",
"x": -221.791,
"y": -202.965,
"x": 240.64,
"y": -176.64,
"z": 0
},
"_scale": {
Expand All @@ -891,28 +858,28 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "e98yI9wA5JzY6dGbg5KydT"
"_id": "45Nh5BhoZPUqsqocJf8Isf"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 17
},
"_children": [
{
"__id__": 20
"__id__": 19
}
],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 22
"__id__": 21
},
{
"__id__": 23
"__id__": 22
}
],
"_prefab": null,
Expand Down Expand Up @@ -958,21 +925,21 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "bdygaW7WFJgKkUBJ7oBVwi"
"_id": "9f/y+q1aBN7ZHo6pZLpdPA"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 19
"__id__": 18
},
"_children": [],
"_active": true,
"_level": 3,
"_components": [
{
"__id__": 21
"__id__": 20
}
],
"_prefab": null,
Expand Down Expand Up @@ -1018,14 +985,14 @@
"groupIndex": 0,
"_rotationX": 0,
"_rotationY": 0,
"_id": "22WscNAARHXbnI++4dqdcC"
"_id": "35OftChPtPlKzFPPfVJ9n/"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 19
},
"_enabled": true,
"_materials": [
Expand All @@ -1034,8 +1001,8 @@
}
],
"_useOriginalSize": false,
"_string": "left",
"_N$string": "left",
"_string": "right",
"_N$string": "right",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
Expand All @@ -1048,14 +1015,14 @@
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 0,
"_id": "c6fsv0PiJHBq7PHGUzMGFx"
"_id": "3dJabea5hGroQi/Wg0kRth"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"_materials": [
Expand All @@ -1080,14 +1047,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b2YZRljb9CMJU7CpK6k6Yt"
"_id": "1fGt/s6DtF/ZF61uaYRBy8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"alignMode": 0,
Expand All @@ -1107,21 +1074,21 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "c37Le+B9xFaYzE8msxlchf"
"_id": "380QnmIMZEBqJKyNXeidhK"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 17
},
"_enabled": true,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 25
"__id__": 24
}
],
"_N$interactable": true,
Expand Down Expand Up @@ -1189,9 +1156,9 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 19
"__id__": 18
},
"_id": "22t1DSuZdHZpDugSa5cDzk"
"_id": "7e3KqTPptGuJYfjmjgKXUm"
},
{
"__type__": "cc.ClickEvent",
Expand All @@ -1200,36 +1167,9 @@
},
"component": "",
"_componentId": "972e5Ii4p5AYa4e91UP427+",
"handler": "left",
"handler": "right",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 0,
"_top": 502.96500000000003,
"_bottom": 97.035,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "c9C8r3LYBI4bRSrd3GuqMC"
},
{
"__type__": "cc.Canvas",
"_name": "",
Expand Down
Loading

0 comments on commit 8657a50

Please sign in to comment.