Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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
middleLayer_for_debug
Commits
5855ee3a
Commit
5855ee3a
authored
Nov 28, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 隐藏遮罩逻辑
parent
a98e99b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
middleLayer.ts
assets/middleLayer_for_debug/script/middleLayer.ts
+15
-0
middleLayerBase.ts
assets/middleLayer_for_debug/script/middleLayerBase.ts
+2
-2
No files found.
assets/middleLayer_for_debug/script/middleLayer.ts
View file @
5855ee3a
...
@@ -750,6 +750,21 @@ export default class NewClass extends middleLayerBase {
...
@@ -750,6 +750,21 @@ export default class NewClass extends middleLayerBase {
callback
&&
callback
(
JSON
.
stringify
(
data
.
rows
));
callback
&&
callback
(
JSON
.
stringify
(
data
.
rows
));
});
});
}
}
if
(
!
(
<
any
>
window
).
air
)
{
(
<
any
>
window
).
air
=
{};
}
(
<
any
>
window
).
air
.
hideAirClassLoading
=
()
=>
{
if
((
<
any
>
window
).
air
.
onCourseInScreen
)
{
(
<
any
>
window
).
air
.
onCourseInScreen
(()
=>
{
console
.
log
(
"
***成功调用onCourseInScreen***
"
);
(
<
any
>
window
).
air
.
onCourseInScreen
=
null
;
this
.
hideWaitingLetters
();
});
}
else
{
this
.
hideWaitingLetters
();
}
}
}
}
callNativeFunction
(
param
)
{
callNativeFunction
(
param
)
{
...
...
assets/middleLayer_for_debug/script/middleLayerBase.ts
View file @
5855ee3a
...
@@ -19,6 +19,7 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -19,6 +19,7 @@ export abstract class middleLayerBase extends cc.Component {
return
;
return
;
}
}
this
.
isShowWaiting
=
true
;
this
.
isShowWaiting
=
true
;
cc
.
audioEngine
.
stopAll
();
const
layout
=
cc
.
find
(
'
middleLayer/layout
'
);
const
layout
=
cc
.
find
(
'
middleLayer/layout
'
);
layout
.
removeAllChildren
();
layout
.
removeAllChildren
();
...
@@ -231,7 +232,6 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -231,7 +232,6 @@ export abstract class middleLayerBase extends cc.Component {
const
canvas
=
cc
.
find
(
'
Canvas
'
);
const
canvas
=
cc
.
find
(
'
Canvas
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
cc
.
find
(
'
middleLayer/ExitBtn
'
).
active
=
true
;
cc
.
find
(
'
middleLayer/ExitBtn
'
).
active
=
true
;
this
.
hideWaitingLetters
();
const
wgt
=
canvas
.
getComponent
(
cc
.
Widget
);
const
wgt
=
canvas
.
getComponent
(
cc
.
Widget
);
if
(
wgt
)
{
if
(
wgt
)
{
wgt
.
updateAlignment
();
wgt
.
updateAlignment
();
...
...
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