Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TXZS_G_005
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
TXZS_G_005
Commits
aef3b2be
Commit
aef3b2be
authored
Apr 23, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 判断隐藏后退按钮
parent
176e2a0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
.DS_Store
.DS_Store
+0
-0
TXZS_G_005.ts
assets/TXZS_G_005/scene/TXZS_G_005.ts
+10
-0
No files found.
.DS_Store
View file @
aef3b2be
No preview for this file type
assets/TXZS_G_005/scene/TXZS_G_005.ts
View file @
aef3b2be
...
@@ -71,6 +71,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -71,6 +71,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
initEvent
();
this
.
initEvent
();
this
.
startTime
();
this
.
startTime
();
this
.
updateTop
();
this
.
updateTop
();
this
.
hideReturnBtn
()
}
}
protected
onDestroy
():
void
{
protected
onDestroy
():
void
{
cc
.
Tween
.
stopAll
();
cc
.
Tween
.
stopAll
();
...
@@ -410,6 +412,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -410,6 +412,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
quadBase
;
return
quadBase
;
}
}
hideReturnBtn
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
)?.
getComponent
(
'
middleLayer
'
);
if
(
middleLayer
&&
middleLayer
.
isDGTX
)
{
// 迪格听写中间层,隐藏自己的后退按钮
cc
.
find
(
"
layout_info/btn_return
"
,
this
.
node
).
active
=
false
;
}
}
}
}
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