Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg10_ty
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
dg10_ty
Commits
1a334543
Commit
1a334543
authored
Nov 07, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新音频小喇叭的样式
parent
adc9df2f
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
542 additions
and
234 deletions
+542
-234
ani.meta
assets/dg10_ty/ani.meta
+12
-0
laba.anim
assets/dg10_ty/ani/laba.anim
+43
-0
laba.anim.meta
assets/dg10_ty/ani/laba.anim.meta
+5
-0
dg10_ty.fire
assets/dg10_ty/scene/dg10_ty.fire
+332
-213
dg10_ty.ts
assets/dg10_ty/scene/dg10_ty.ts
+6
-21
laba_1.png
assets/dg10_ty/textures/laba_1.png
+0
-0
laba_1.png.meta
assets/dg10_ty/textures/laba_1.png.meta
+36
-0
laba_2.png
assets/dg10_ty/textures/laba_2.png
+0
-0
laba_2.png.meta
assets/dg10_ty/textures/laba_2.png.meta
+36
-0
laba_3.png
assets/dg10_ty/textures/laba_3.png
+0
-0
laba_3.png.meta
assets/dg10_ty/textures/laba_3.png.meta
+36
-0
laba_4.png
assets/dg10_ty/textures/laba_4.png
+0
-0
laba_4.png.meta
assets/dg10_ty/textures/laba_4.png.meta
+36
-0
No files found.
assets/dg10_ty/ani.meta
0 → 100644
View file @
1a334543
{
"ver": "1.1.2",
"uuid": "3de408d3-8956-4bdc-abf9-180ea726de9d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/dg10_ty/ani/laba.anim
0 → 100644
View file @
1a334543
{
"__type__": "cc.AnimationClip",
"_name": "laba",
"_objFlags": 0,
"_native": "",
"_duration": 0.7333333333333333,
"sample": 30,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "b577ed22-321b-4985-a04d-20cbc53bfb6f"
}
},
{
"frame": 0.23333333333333334,
"value": {
"__uuid__": "ecc2e0ff-eb4a-44c2-8063-330da475547d"
}
},
{
"frame": 0.4666666666666667,
"value": {
"__uuid__": "95b50ca7-21ce-4c6d-bc63-fa24cf687e63"
}
},
{
"frame": 0.7,
"value": {
"__uuid__": "89656bbb-d764-4d07-bcb8-bbb8dc2df91d"
}
}
]
}
}
},
"events": []
}
\ No newline at end of file
assets/dg10_ty/ani/laba.anim.meta
0 → 100644
View file @
1a334543
{
"ver": "2.1.0",
"uuid": "f327ad75-ffec-4936-82f4-dd33e24537d2",
"subMetas": {}
}
\ No newline at end of file
assets/dg10_ty/scene/dg10_ty.fire
View file @
1a334543
This diff is collapsed.
Click to expand it.
assets/dg10_ty/scene/dg10_ty.ts
View file @
1a334543
...
@@ -180,33 +180,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -180,33 +180,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
tween
(
seabed
).
by
(
1.5
,
{
x
:
-
150
}).
start
();
cc
.
tween
(
seabed
).
by
(
1.5
,
{
x
:
-
150
}).
start
();
cc
.
tween
(
could
).
by
(
1.5
,
{
x
:
-
150
}).
start
();
cc
.
tween
(
could
).
by
(
1.5
,
{
x
:
-
150
}).
start
();
}
}
private
intervalId
;
private
stopLaba
()
{
private
stopLaba
()
{
cc
.
audioEngine
.
stopAllEffects
();
cc
.
audioEngine
.
stopAllEffects
();
if
(
this
.
intervalId
)
clearInterval
(
this
.
intervalId
);
this
.
btn_laba
.
getChildByName
(
"
btn_laba2
"
).
active
=
true
;
let
btn_kaba2
=
this
.
btn_laba
.
getChildByName
(
"
btn_laba2
"
);
this
.
btn_laba
.
getChildByName
(
"
ani
"
).
active
=
false
;
btn_kaba2
.
active
=
false
;
}
}
private
playLaba
()
{
private
playLaba
()
{
let
btn_kaba2
=
this
.
btn_laba
.
getChildByName
(
"
btn_laba2
"
);
btn_kaba2
.
active
=
true
;
cc
.
audioEngine
.
stopAllEffects
();
cc
.
audioEngine
.
stopAllEffects
();
let
count
=
0
;
this
.
btn_laba
.
getChildByName
(
"
btn_laba2
"
).
active
=
false
;
if
(
this
.
intervalId
)
clearInterval
(
this
.
intervalId
);
this
.
btn_laba
.
getChildByName
(
"
ani
"
).
active
=
true
;
let
stop
=
false
;
this
.
intervalId
=
setInterval
(()
=>
{
count
++
;
btn_kaba2
.
active
=
count
%
2
==
0
;
if
(
stop
&&
count
%
2
==
1
)
{
clearInterval
(
this
.
intervalId
);
btn_kaba2
.
active
=
false
;
}
else
{
}
},
150
)
pg
.
audio
.
playAudioByUrl
(
this
.
starData
.
audioUrl
,
(()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
starData
.
audioUrl
,
(()
=>
{
stop
=
true
;
this
.
btn_laba
.
getChildByName
(
"
btn_laba2
"
).
active
=
true
;
this
.
btn_laba
.
getChildByName
(
"
ani
"
).
active
=
false
;
}))
}))
}
}
...
...
assets/dg10_ty/textures/laba_1.png
0 → 100644
View file @
1a334543
9.77 KB
assets/dg10_ty/textures/laba_1.png.meta
0 → 100644
View file @
1a334543
{
"ver": "2.3.5",
"uuid": "1ac41de3-5f9d-44a4-a5b6-bd1a06595964",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_1": {
"ver": "1.0.4",
"uuid": "b577ed22-321b-4985-a04d-20cbc53bfb6f",
"rawTextureUuid": "1ac41de3-5f9d-44a4-a5b6-bd1a06595964",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/dg10_ty/textures/laba_2.png
0 → 100644
View file @
1a334543
10.2 KB
assets/dg10_ty/textures/laba_2.png.meta
0 → 100644
View file @
1a334543
{
"ver": "2.3.5",
"uuid": "92c98437-35bd-483e-9fb2-2d06f26fb100",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_2": {
"ver": "1.0.4",
"uuid": "ecc2e0ff-eb4a-44c2-8063-330da475547d",
"rawTextureUuid": "92c98437-35bd-483e-9fb2-2d06f26fb100",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/dg10_ty/textures/laba_3.png
0 → 100644
View file @
1a334543
10.6 KB
assets/dg10_ty/textures/laba_3.png.meta
0 → 100644
View file @
1a334543
{
"ver": "2.3.5",
"uuid": "fe78709f-fa55-436f-8bc2-5288260f17f4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_3": {
"ver": "1.0.4",
"uuid": "95b50ca7-21ce-4c6d-bc63-fa24cf687e63",
"rawTextureUuid": "fe78709f-fa55-436f-8bc2-5288260f17f4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/dg10_ty/textures/laba_4.png
0 → 100644
View file @
1a334543
11 KB
assets/dg10_ty/textures/laba_4.png.meta
0 → 100644
View file @
1a334543
{
"ver": "2.3.5",
"uuid": "e541998b-6613-48b2-958c-c7d2064935f1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 386,
"height": 386,
"platformSettings": {},
"subMetas": {
"laba_4": {
"ver": "1.0.4",
"uuid": "89656bbb-d764-4d07-bcb8-bbb8dc2df91d",
"rawTextureUuid": "e541998b-6613-48b2-958c-c7d2064935f1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -5,
"trimX": 34,
"trimY": 38,
"width": 320,
"height": 320,
"rawWidth": 386,
"rawHeight": 386,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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