Commit 3e7d4ad1 authored by liujiangnan's avatar liujiangnan

fix: UI 调整

parent a38a5e6d
......@@ -90,22 +90,22 @@
"__id__": 62
},
{
"__id__": 65
"__id__": 66
},
{
"__id__": 67
"__id__": 68
}
],
"_active": true,
"_components": [
{
"__id__": 73
},
{
"__id__": 74
},
{
"__id__": 75
},
{
"__id__": 76
}
],
"_prefab": null,
......@@ -1508,8 +1508,8 @@
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
......@@ -1707,8 +1707,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 238,
"height": 256
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1763,7 +1763,7 @@
"__uuid__": "da418ab0-6bf6-401e-ad24-d27cca267d4f"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -1787,10 +1787,10 @@
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": -14.5,
"_right": -14.5,
"_top": -19,
"_bottom": -19,
"_left": 25.5,
"_right": 25.5,
"_top": 30,
"_bottom": 30,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
......@@ -1822,8 +1822,8 @@
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
......@@ -2011,8 +2011,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 238,
"height": 256
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2067,7 +2067,7 @@
"__uuid__": "16ea0a4c-9fd6-4334-8f5a-56b9ec1673f8"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -2091,10 +2091,10 @@
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": -14.5,
"_right": -14.5,
"_top": -19,
"_bottom": -19,
"_left": 25.5,
"_right": 25.5,
"_top": 30,
"_bottom": 30,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
......@@ -2126,8 +2126,8 @@
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
......@@ -2718,6 +2718,9 @@
},
{
"__id__": 64
},
{
"__id__": 65
}
],
"_prefab": null,
......@@ -2827,6 +2830,16 @@
"_originalHeight": 100,
"_id": "035e2yGXlAcrfazCmdJtBV"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_id": "beaGv1g0JBZ59RUOJpzt0W"
},
{
"__type__": "cc.Node",
"_name": "animNode",
......@@ -2838,7 +2851,7 @@
"_active": false,
"_components": [
{
"__id__": 66
"__id__": 67
}
],
"_prefab": null,
......@@ -2894,7 +2907,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 66
},
"_enabled": true,
"alignMode": 1,
......@@ -2925,16 +2938,16 @@
},
"_children": [
{
"__id__": 68
"__id__": 69
}
],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 72
},
{
"__id__": 72
"__id__": 73
}
],
"_prefab": null,
......@@ -2990,16 +3003,16 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 67
"__id__": 68
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 70
},
{
"__id__": 70
"__id__": 71
}
],
"_prefab": null,
......@@ -3055,7 +3068,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 69
},
"_enabled": true,
"_materials": [
......@@ -3090,7 +3103,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 69
},
"_enabled": true,
"alignMode": 1,
......@@ -3117,7 +3130,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 68
},
"_enabled": true,
"_materials": [
......@@ -3149,7 +3162,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 68
},
"_enabled": true,
"alignMode": 1,
......
......@@ -315,17 +315,20 @@ cc.Class({
});
const animaNode = animNode['animaNode'];
// animaNode.y = -80;
animaNode.scale = 0.3;
animaNode.x = 500;
const db = animaNode.getComponent(dragonBones.ArmatureDisplay);
let anis = db.getAnimationNames("armatureName");
db.playAnimation(anis[0], 0);
const anis = db.getAnimationNames("armatureName");
playAudioByUrl(this.data.audio, ()=>{
cc.tween(animaNode).to(0.2, { x: 1000 }).call(()=>{
animBg.active = false;
animNode.active = false;
}).start();
});
db.playAnimation(anis[0], 0);
cc.tween(animaNode).by(1, { x: -500 }).call(() => {
playAudioByUrl(this.data.audio, ()=>{
cc.tween(animaNode).delay(1).by(1, { x: 500 }).call(()=>{
animBg.active = false;
animNode.active = false;
}).start();
});
}).start();
}
this.initListener();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment