Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP50
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
OP50
Commits
60446ab3
Commit
60446ab3
authored
Sep 09, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cb3b7308
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
548 additions
and
481 deletions
+548
-481
OP50.fire
assets/OP50/scene/OP50.fire
+541
-479
OP50.js
assets/OP50/scene/OP50.js
+7
-2
No files found.
assets/OP50/scene/OP50.fire
View file @
60446ab3
This diff is collapsed.
Click to expand it.
assets/OP50/scene/OP50.js
View file @
60446ab3
...
...
@@ -250,7 +250,8 @@ cc.Class({
let
icon_ex_txt
=
pg
.
view
.
find
(
icon_ex
,
"
txt
"
);
let
icon_hand
=
pg
.
view
.
find
(
this
,
"
icon_hand
"
);
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_next
,
this
.
onTouchNext
,
this
);
...
...
@@ -260,7 +261,7 @@ cc.Class({
pg
.
view
.
touchOn
(
btn_picture
,
this
.
onTouchPicture
,
this
);
pg
.
view
.
touchOn
(
btn_carton
,
this
.
onTouchCarton
,
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
);
},
state0InitPart
()
{
...
...
@@ -402,6 +403,8 @@ cc.Class({
pg
.
view
.
visible
(
btn_record
,
false
);
pg
.
view
.
visible
(
btn_recording
,
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提示
pg
.
view
.
visible
(
end
,
true
);
pg
.
view
.
visible
(
end_success
,
true
);
...
...
@@ -757,9 +760,11 @@ cc.Class({
hideBox
()
{
let
layout_card
=
cc
.
find
(
"
card_group/layout_card
"
,
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
();
layout_card
.
children
.
forEach
((
item
)
=>
{
item
.
getComponent
(
cc
.
Sprite
).
enabled
=
false
;
touch_card
.
active
=
true
;
// cc.tween(item).to(0.5, { opacity: 0 }).start();
})
layout_card
.
getComponent
(
cc
.
Layout
).
spacingX
=
-
50
;
...
...
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