Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP49
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
OP49
Commits
3c61fab3
Commit
3c61fab3
authored
Sep 09, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
21b6fd8a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
542 additions
and
473 deletions
+542
-473
OP49.fire
assets/OP49/scene/OP49.fire
+533
-471
OP49.js
assets/OP49/scene/OP49.js
+9
-2
No files found.
assets/OP49/scene/OP49.fire
View file @
3c61fab3
This diff is collapsed.
Click to expand it.
assets/OP49/scene/OP49.js
View file @
3c61fab3
...
@@ -250,7 +250,8 @@ cc.Class({
...
@@ -250,7 +250,8 @@ cc.Class({
let
icon_ex_txt
=
pg
.
view
.
find
(
icon_ex
,
"
txt
"
);
let
icon_ex_txt
=
pg
.
view
.
find
(
icon_ex
,
"
txt
"
);
let
icon_hand
=
pg
.
view
.
find
(
this
,
"
icon_hand
"
);
let
icon_hand
=
pg
.
view
.
find
(
this
,
"
icon_hand
"
);
let
btn_picture
=
pg
.
view
.
find
(
this
,
"
btn_picture
"
);
let
btn_picture
=
pg
.
view
.
find
(
this
,
"
btn_picture
"
);
let
layout_card
=
pg
.
view
.
find
(
this
,
"
card_group/layout_card
"
);
let
touch_card
=
pg
.
view
.
find
(
this
,
"
card_group/touch_card
"
);
touch_card
.
active
=
false
;
pg
.
view
.
touchOn
(
btn_record
,
this
.
onTouchRecord
,
this
);
//注册按钮监听
pg
.
view
.
touchOn
(
btn_record
,
this
.
onTouchRecord
,
this
);
//注册按钮监听
pg
.
view
.
touchOn
(
btn_next
,
this
.
onTouchNext
,
this
);
pg
.
view
.
touchOn
(
btn_next
,
this
.
onTouchNext
,
this
);
...
@@ -260,7 +261,7 @@ cc.Class({
...
@@ -260,7 +261,7 @@ cc.Class({
pg
.
view
.
touchOn
(
btn_picture
,
this
.
onTouchPicture
,
this
);
pg
.
view
.
touchOn
(
btn_picture
,
this
.
onTouchPicture
,
this
);
pg
.
view
.
touchOn
(
btn_carton
,
this
.
onTouchCarton
,
this
);
pg
.
view
.
touchOn
(
btn_carton
,
this
.
onTouchCarton
,
this
);
pg
.
view
.
touchOn
(
icon_ex
,
this
.
onTouchWord
,
this
);
pg
.
view
.
touchOn
(
icon_ex
,
this
.
onTouchWord
,
this
);
pg
.
view
.
touchOn
(
layout
_card
,
this
.
onTouchWord
,
this
);
pg
.
view
.
touchOn
(
touch
_card
,
this
.
onTouchWord
,
this
);
pg
.
view
.
touchOn
(
btn_mao
,
this
.
onTouchCat
,
this
);
pg
.
view
.
touchOn
(
btn_mao
,
this
.
onTouchCat
,
this
);
},
},
state0InitPart
()
{
state0InitPart
()
{
...
@@ -402,6 +403,8 @@ cc.Class({
...
@@ -402,6 +403,8 @@ cc.Class({
pg
.
view
.
visible
(
btn_record
,
false
);
pg
.
view
.
visible
(
btn_record
,
false
);
pg
.
view
.
visible
(
btn_recording
,
false
);
pg
.
view
.
visible
(
btn_recording
,
false
);
pg
.
view
.
visible
(
progress
,
false
);
pg
.
view
.
visible
(
progress
,
false
);
let
touch_card
=
pg
.
view
.
find
(
this
,
"
card_group/touch_card
"
);
touch_card
.
active
=
false
;
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
//4秒钟之后出现goodjob提示
this
.
_timeoutIds
.
push
(
setTimeout
(()
=>
{
//4秒钟之后出现goodjob提示
pg
.
view
.
visible
(
end
,
true
);
pg
.
view
.
visible
(
end
,
true
);
pg
.
view
.
visible
(
end_success
,
true
);
pg
.
view
.
visible
(
end_success
,
true
);
...
@@ -748,6 +751,7 @@ cc.Class({
...
@@ -748,6 +751,7 @@ cc.Class({
hideBox
()
{
hideBox
()
{
let
layout_card
=
cc
.
find
(
"
card_group/layout_card
"
,
this
.
node
);
let
layout_card
=
cc
.
find
(
"
card_group/layout_card
"
,
this
.
node
);
let
card_bg2
=
cc
.
find
(
"
card_group/card_bg2
"
,
this
.
node
);
let
card_bg2
=
cc
.
find
(
"
card_group/card_bg2
"
,
this
.
node
);
let
touch_card
=
pg
.
view
.
find
(
this
,
"
card_group/touch_card
"
);
cc
.
tween
(
card_bg2
).
to
(
0.5
,
{
opacity
:
255
}).
start
();
cc
.
tween
(
card_bg2
).
to
(
0.5
,
{
opacity
:
255
}).
start
();
layout_card
.
children
.
forEach
((
item
)
=>
{
layout_card
.
children
.
forEach
((
item
)
=>
{
item
.
getComponent
(
cc
.
Sprite
).
enabled
=
false
;
item
.
getComponent
(
cc
.
Sprite
).
enabled
=
false
;
...
@@ -757,6 +761,7 @@ cc.Class({
...
@@ -757,6 +761,7 @@ cc.Class({
layout_card
.
getComponent
(
cc
.
Layout
).
updateLayout
();
layout_card
.
getComponent
(
cc
.
Layout
).
updateLayout
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
card_bg2
.
width
=
layout_card
.
width
;
card_bg2
.
width
=
layout_card
.
width
;
touch_card
.
active
=
true
;
},
30
);
},
30
);
},
},
setCardColor
(
progress
)
{
setCardColor
(
progress
)
{
...
@@ -864,6 +869,8 @@ cc.Class({
...
@@ -864,6 +869,8 @@ cc.Class({
},
},
onTouchWord
()
{
onTouchWord
()
{
if
(
this
.
_playing
)
return
;
if
(
this
.
_playing
)
return
;
let
progress
=
pg
.
view
.
find
(
this
,
"
progress
"
);
if
(
progress
.
active
)
return
;
let
btn_record
=
pg
.
view
.
find
(
this
,
"
btn_record
"
);
let
btn_record
=
pg
.
view
.
find
(
this
,
"
btn_record
"
);
btn_record
.
active
=
false
;
btn_record
.
active
=
false
;
this
.
hideRestartBtn
();
this
.
hideRestartBtn
();
...
...
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