Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
ls_gramophone_2
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
ls_gramophone_2
Commits
5649789a
Commit
5649789a
authored
Jul 25, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7.25调整
parent
e65dfe51
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
12 deletions
+36
-12
ls_gramophone_2.meta
assets/ls_gramophone_2.meta
+15
-1
ls_gramophone_2.fire
assets/ls_gramophone_2/scene/ls_gramophone_2.fire
+9
-9
ls_gramophone_2.ts
assets/ls_gramophone_2/scene/ls_gramophone_2.ts
+12
-2
No files found.
assets/ls_gramophone_2.meta
View file @
5649789a
{"ver":"1.1.2","uuid":"ac93192e-6307-43b6-8055-13da3a868d9e","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "ac93192e-6307-43b6-8055-13da3a868d9e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/ls_gramophone_2/scene/ls_gramophone_2.fire
View file @
5649789a
...
...
@@ -2253,7 +2253,7 @@
"ctor": "Float64Array",
"array": [
5,
-2
4
.169,
-2
6
.169,
0,
0,
0,
...
...
@@ -2586,7 +2586,7 @@
"ctor": "Float64Array",
"array": [
309,
0
,
-2
,
0,
0,
0,
...
...
@@ -2635,7 +2635,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 7
3.86
,
"width": 7
9.7
,
"height": 60.48
},
"_anchorPoint": {
...
...
@@ -2647,7 +2647,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-3
6.93
,
-3
9.85
,
0,
0,
0,
...
...
@@ -2671,7 +2671,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
e6Gzqqr2JEjbam7KLUJcI1
"
"_id": "
55v3ZdjDNClp5NV+D2BtGU
"
},
{
"__type__": "cc.Label",
...
...
@@ -2688,8 +2688,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "
Rich
",
"_N$string": "
Rich
",
"_string": "
sdsa
",
"_N$string": "
sdsa
",
"_fontSize": 36,
"_lineHeight": 48,
"_enableWrapText": true,
...
...
@@ -2706,7 +2706,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
0djifX+xJJXo/WYjmPxEWx
"
"_id": "
25hVA1G2BEQq4tyqRuoh6A
"
},
{
"__type__": "cc.RichText",
...
...
@@ -2718,7 +2718,7 @@
"_enabled": true,
"_fontFamily": "Arial",
"_isSystemFontUsed": false,
"_N$string": "<color=#00ff00>
Rich
</c>",
"_N$string": "<color=#00ff00>
sdsa
</c>",
"_N$horizontalAlign": 1,
"_N$fontSize": 36,
"_N$font": {
...
...
assets/ls_gramophone_2/scene/ls_gramophone_2.ts
View file @
5649789a
...
...
@@ -305,8 +305,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
btn_laba1
.
active
=
count
%
2
==
0
;
btn_laba2
.
active
=
count
%
2
==
1
;
if
(
stop
&&
count
%
2
==
0
)
{
// btn_laba1.active = fals
e;
// btn_laba2.active = fals
e;
btn_laba1
.
active
=
tru
e
;
btn_laba2
.
active
=
tru
e
;
clearInterval
(
this
.
intervalId
);
}
},
150
)
...
...
@@ -694,6 +694,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// let pag = cc.find("PageView", this.node);
// pag.getComponent(cc.PageView).enabled = true;
// pag.getComponent(cc.PageView).scrollToPage(this.roundIdx, 0.1);
this
.
resetLaba
();
this
.
setPagBg
();
this
.
initDown
();
this
.
initMiddle
();
...
...
@@ -711,6 +712,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// if (len <= 1) return;
// pag.getComponent(cc.PageView).enabled = true;
// pag.getComponent(cc.PageView).scrollToPage(this.roundIdx, 0.1);
this
.
resetLaba
();
this
.
setPagBg
();
this
.
initDown
();
this
.
initMiddle
();
...
...
@@ -718,6 +720,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
resetText
();
this
.
resetRecord
();
}
private
resetLaba
(){
if
(
this
.
intervalId
)
clearInterval
(
this
.
intervalId
);
let
btn_play
=
cc
.
find
(
"
btn_play
"
,
this
.
node
);
let
btn_laba1
=
btn_play
.
getChildByName
(
"
btn_laba1
"
);
let
btn_laba2
=
btn_play
.
getChildByName
(
"
btn_laba2
"
);
btn_laba1
.
active
=
true
;
btn_laba2
.
active
=
true
;
}
/**
* 重置文字
...
...
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