Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ_lite
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_NJ_lite
Commits
5b864ab0
Commit
5b864ab0
authored
Oct 13, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 如果场景正在切换则不能点出对话框
parent
796920a9
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
112 deletions
+131
-112
middleLayer_for_NJ_lite.fire
...iddleLayer_for_NJ_lite/scene/middleLayer_for_NJ_lite.fire
+125
-112
middleLayer.ts
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
+6
-0
No files found.
assets/middleLayer_for_NJ_lite/scene/middleLayer_for_NJ_lite.fire
View file @
5b864ab0
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
View file @
5b864ab0
...
@@ -70,6 +70,9 @@ export default class NewClass extends middleLayerBase {
...
@@ -70,6 +70,9 @@ export default class NewClass extends middleLayerBase {
.
start
();
.
start
();
}
}
async
showConfirm
(
str
:
string
,
yesFun
:
Function
=
null
,
noFun
:
Function
=
null
)
{
async
showConfirm
(
str
:
string
,
yesFun
:
Function
=
null
,
noFun
:
Function
=
null
)
{
if
(
this
.
IS_BUNDLE_LOADING
)
{
return
;
}
const
tipsLayer
=
cc
.
find
(
'
middleLayer/confirmLayer
'
);
const
tipsLayer
=
cc
.
find
(
'
middleLayer/confirmLayer
'
);
const
label
=
cc
.
find
(
'
middleLayer/confirmLayer/confirm_bg/label
'
);
const
label
=
cc
.
find
(
'
middleLayer/confirmLayer/confirm_bg/label
'
);
label
.
getComponent
(
cc
.
Label
).
string
=
`
${
str
}
`
;
label
.
getComponent
(
cc
.
Label
).
string
=
`
${
str
}
`
;
...
@@ -93,6 +96,9 @@ export default class NewClass extends middleLayerBase {
...
@@ -93,6 +96,9 @@ export default class NewClass extends middleLayerBase {
});
});
}
}
async
showActiveWindow
()
{
async
showActiveWindow
()
{
if
(
this
.
IS_BUNDLE_LOADING
)
{
return
;
}
const
tipsLayer
=
cc
.
find
(
'
middleLayer/activeLayer
'
);
const
tipsLayer
=
cc
.
find
(
'
middleLayer/activeLayer
'
);
tipsLayer
.
active
=
true
;
tipsLayer
.
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