Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_video_01
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
op_video_01
Commits
c8a843f2
Commit
c8a843f2
authored
Jul 06, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 主页按钮 隐藏显示
parent
8ffc5e6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
op_video_01.js
assets/op_video_01/scene/op_video_01.js
+11
-8
No files found.
assets/op_video_01/scene/op_video_01.js
View file @
c8a843f2
...
@@ -654,6 +654,7 @@ cc.Class({
...
@@ -654,6 +654,7 @@ cc.Class({
hideControler
()
{
hideControler
()
{
this
.
controlNode
.
active
=
false
;
this
.
controlNode
.
active
=
false
;
this
.
hideBackBtn
();
// cc.tween(this.controlNode)
// cc.tween(this.controlNode)
// .to(0.1, {opacity: 0})
// .to(0.1, {opacity: 0})
// .call(() => {
// .call(() => {
...
@@ -681,14 +682,6 @@ cc.Class({
...
@@ -681,14 +682,6 @@ cc.Class({
this
.
wolfNode
.
active
=
false
;
this
.
wolfNode
.
active
=
false
;
this
.
replayBtn
.
active
=
false
;
this
.
replayBtn
.
active
=
false
;
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
hideButtons
();
return
;
}
// cc.tween(this.wolfNode)
// cc.tween(this.wolfNode)
// .to(0.1, {opacity: 0})
// .to(0.1, {opacity: 0})
// .call(() => {
// .call(() => {
...
@@ -706,6 +699,16 @@ cc.Class({
...
@@ -706,6 +699,16 @@ cc.Class({
}
}
},
},
hideBackBtn
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
hideButtons
();
return
;
}
},
showWolf
()
{
showWolf
()
{
this
.
wolfNode
.
active
=
true
;
this
.
wolfNode
.
active
=
true
;
this
.
replayBtn
.
active
=
true
;
this
.
replayBtn
.
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