Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt_video
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ngt_video
Commits
3e7d4ad1
Commit
3e7d4ad1
authored
Oct 08, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: UI 调整
parent
a38a5e6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
46 deletions
+62
-46
ngt_video.fire
assets/ngt_video/Scene/ngt_video.fire
+50
-37
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+12
-9
No files found.
assets/ngt_video/Scene/ngt_video.fire
View file @
3e7d4ad1
...
@@ -90,22 +90,22 @@
...
@@ -90,22 +90,22 @@
"__id__": 62
"__id__": 62
},
},
{
{
"__id__": 6
5
"__id__": 6
6
},
},
{
{
"__id__": 6
7
"__id__": 6
8
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
"__id__": 73
},
{
{
"__id__": 74
"__id__": 74
},
},
{
{
"__id__": 75
"__id__": 75
},
{
"__id__": 76
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1508,8 +1508,8 @@
...
@@ -1508,8 +1508,8 @@
],
],
"_N$interactable": true,
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$enableAutoGrayEffect": false,
"_N$transition":
3
,
"_N$transition":
0
,
"transition":
3
,
"transition":
0
,
"_N$normalColor": {
"_N$normalColor": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 230,
"r": 230,
...
@@ -1707,8 +1707,8 @@
...
@@ -1707,8 +1707,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
23
8,
"width":
15
8,
"height":
256
"height":
158
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1763,7 +1763,7 @@
...
@@ -1763,7 +1763,7 @@
"__uuid__": "da418ab0-6bf6-401e-ad24-d27cca267d4f"
"__uuid__": "da418ab0-6bf6-401e-ad24-d27cca267d4f"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
2
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1787,10 +1787,10 @@
...
@@ -1787,10 +1787,10 @@
"alignMode": 0,
"alignMode": 0,
"_target": null,
"_target": null,
"_alignFlags": 45,
"_alignFlags": 45,
"_left":
-14
.5,
"_left":
25
.5,
"_right":
-14
.5,
"_right":
25
.5,
"_top":
-19
,
"_top":
30
,
"_bottom":
-19
,
"_bottom":
30
,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
@@ -1822,8 +1822,8 @@
...
@@ -1822,8 +1822,8 @@
],
],
"_N$interactable": true,
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$enableAutoGrayEffect": false,
"_N$transition":
3
,
"_N$transition":
0
,
"transition":
3
,
"transition":
0
,
"_N$normalColor": {
"_N$normalColor": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 255,
"r": 255,
...
@@ -2011,8 +2011,8 @@
...
@@ -2011,8 +2011,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
23
8,
"width":
15
8,
"height":
256
"height":
158
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -2067,7 +2067,7 @@
...
@@ -2067,7 +2067,7 @@
"__uuid__": "16ea0a4c-9fd6-4334-8f5a-56b9ec1673f8"
"__uuid__": "16ea0a4c-9fd6-4334-8f5a-56b9ec1673f8"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
2
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -2091,10 +2091,10 @@
...
@@ -2091,10 +2091,10 @@
"alignMode": 0,
"alignMode": 0,
"_target": null,
"_target": null,
"_alignFlags": 45,
"_alignFlags": 45,
"_left":
-14
.5,
"_left":
25
.5,
"_right":
-14
.5,
"_right":
25
.5,
"_top":
-19
,
"_top":
30
,
"_bottom":
-19
,
"_bottom":
30
,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
@@ -2126,8 +2126,8 @@
...
@@ -2126,8 +2126,8 @@
],
],
"_N$interactable": true,
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$enableAutoGrayEffect": false,
"_N$transition":
3
,
"_N$transition":
0
,
"transition":
3
,
"transition":
0
,
"_N$normalColor": {
"_N$normalColor": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 255,
"r": 255,
...
@@ -2718,6 +2718,9 @@
...
@@ -2718,6 +2718,9 @@
},
},
{
{
"__id__": 64
"__id__": 64
},
{
"__id__": 65
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2827,6 +2830,16 @@
...
@@ -2827,6 +2830,16 @@
"_originalHeight": 100,
"_originalHeight": 100,
"_id": "035e2yGXlAcrfazCmdJtBV"
"_id": "035e2yGXlAcrfazCmdJtBV"
},
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_id": "beaGv1g0JBZ59RUOJpzt0W"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "animNode",
"_name": "animNode",
...
@@ -2838,7 +2851,7 @@
...
@@ -2838,7 +2851,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 6
6
"__id__": 6
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2894,7 +2907,7 @@
...
@@ -2894,7 +2907,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
5
"__id__": 6
6
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -2925,16 +2938,16 @@
...
@@ -2925,16 +2938,16 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 6
8
"__id__": 6
9
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
1
"__id__": 7
2
},
},
{
{
"__id__": 7
2
"__id__": 7
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2990,16 +3003,16 @@
...
@@ -2990,16 +3003,16 @@
"_name": "title",
"_name": "title",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
7
"__id__": 6
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
69
"__id__":
70
},
},
{
{
"__id__": 7
0
"__id__": 7
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3055,7 +3068,7 @@
...
@@ -3055,7 +3068,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
8
"__id__": 6
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3090,7 +3103,7 @@
...
@@ -3090,7 +3103,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
8
"__id__": 6
9
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -3117,7 +3130,7 @@
...
@@ -3117,7 +3130,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
7
"__id__": 6
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3149,7 +3162,7 @@
...
@@ -3149,7 +3162,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
7
"__id__": 6
8
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
...
assets/ngt_video/Scene/ngt_video.js
View file @
3e7d4ad1
...
@@ -315,17 +315,20 @@ cc.Class({
...
@@ -315,17 +315,20 @@ cc.Class({
});
});
const
animaNode
=
animNode
[
'
animaNode
'
];
const
animaNode
=
animNode
[
'
animaNode
'
];
// animaNode.y = -80;
animaNode
.
scale
=
0.3
;
animaNode
.
x
=
500
;
const
db
=
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
const
db
=
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
let
anis
=
db
.
getAnimationNames
(
"
armatureName
"
);
const
anis
=
db
.
getAnimationNames
(
"
armatureName
"
);
db
.
playAnimation
(
anis
[
0
],
0
);
db
.
playAnimation
(
anis
[
0
],
0
);
cc
.
tween
(
animaNode
).
by
(
1
,
{
x
:
-
500
}).
call
(()
=>
{
playAudioByUrl
(
this
.
data
.
audio
,
()
=>
{
playAudioByUrl
(
this
.
data
.
audio
,
()
=>
{
cc
.
tween
(
animaNode
).
to
(
0.2
,
{
x
:
10
00
}).
call
(()
=>
{
cc
.
tween
(
animaNode
).
delay
(
1
).
by
(
1
,
{
x
:
5
00
}).
call
(()
=>
{
animBg
.
active
=
false
;
animBg
.
active
=
false
;
animNode
.
active
=
false
;
animNode
.
active
=
false
;
}).
start
();
}).
start
();
});
});
}).
start
();
}
}
this
.
initListener
();
this
.
initListener
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment