Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jj15_zww
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
jj15_zww
Commits
f4a57bb1
Commit
f4a57bb1
authored
Apr 18, 2024
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频播放调整效果
parent
f8ba5ef3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
jj15_zww.fire
assets/jj15_zww/scene/jj15_zww.fire
+6
-6
jj15_zww.ts
assets/jj15_zww/scene/jj15_zww.ts
+6
-1
No files found.
assets/jj15_zww/scene/jj15_zww.fire
View file @
f4a57bb1
...
...
@@ -1571,7 +1571,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
020
,
"width": 1
135
,
"height": 60
},
"_anchorPoint": {
...
...
@@ -1637,8 +1637,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
920
,
"height":
12
6
"width":
1035
,
"height":
75.
6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -1818,8 +1818,8 @@
"_dstBlendFactor": 771,
"_string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_N$string": "题目:请参照图片移动下方按钮,组成完整的一句话",
"_fontSize": 4
0
,
"_lineHeight":
10
0,
"_fontSize": 4
5
,
"_lineHeight":
6
0,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "da919d2c-e1fd-4dfa-889b-82c53f3adb51"
...
...
@@ -1846,7 +1846,7 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1
020
,
"width": 1
135
,
"height": 60
},
"_resize": 1,
...
...
assets/jj15_zww/scene/jj15_zww.ts
View file @
f4a57bb1
...
...
@@ -565,7 +565,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
currentDt
=
data
;
this
.
touchForbid
=
true
;
this
.
playLocalAudio
(
"
move
"
)
cc
.
tween
(
this
.
gou_node
)
// 移动钩子
...
...
@@ -672,6 +672,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onTouchRecordClose
()
{
this
.
playBgmP100
();
this
.
layout_record
.
active
=
false
;
this
.
currentItem
&&
(
this
.
currentItem
.
active
=
true
)
}
...
...
@@ -924,6 +925,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
bgmNode
:
cc
.
Node
=
null
;
playBgmP10
()
{
let
vol
=
cc
.
audioEngine
.
getMusicVolume
();
if
(
vol
<
0.7
)
return
;
this
.
scheduleOnce
(()
=>
{
cc
.
audioEngine
.
setMusicVolume
(
0.8
);
this
.
scheduleOnce
(()
=>
{
...
...
@@ -947,6 +950,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
audioEngine
.
resumeMusic
();
}
playBgmP100
()
{
let
vol
=
cc
.
audioEngine
.
getMusicVolume
();
if
(
vol
>
0.9
)
return
;
this
.
scheduleOnce
(()
=>
{
cc
.
audioEngine
.
setMusicVolume
(
0.2
);
this
.
scheduleOnce
(()
=>
{
...
...
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