Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_njstar
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_njstar
Commits
0008a5ef
Commit
0008a5ef
authored
Aug 11, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
5350079d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
middleLayer.ts
assets/middleLayer_for_njstar/script/middleLayer.ts
+4
-3
creator.d.ts
creator.d.ts
+1
-0
No files found.
assets/middleLayer_for_njstar/script/middleLayer.ts
View file @
0008a5ef
...
...
@@ -66,11 +66,11 @@ export default class NewClass extends middleLayerBase {
}
setVideoToBottom
()
{
const
video
=
cc
.
find
(
"
Canvas
"
).
getComponentInChildren
(
cc
.
VideoPlayer
);
if
(
video
)
{
const
videos
=
cc
.
find
(
"
Canvas
"
).
getComponentsInChildren
(
cc
.
VideoPlayer
);
for
(
let
i
=
0
;
i
<
videos
.
length
;
i
++
)
{
const
video
=
videos
[
i
];
cc
.
find
(
"
Canvas/Main Camera
"
).
getComponent
(
cc
.
Camera
).
backgroundColor
=
cc
.
color
(
0
,
0
,
0
,
0
);
video
.
stayOnBottom
=
true
;
}
else
{
}
}
...
...
@@ -897,6 +897,7 @@ export default class NewClass extends middleLayerBase {
this
.
loadOnlineBundle
(
'
NJ_YouLeChang
'
);
}
this
.
initListener
();
global
.
middleLayer
=
cc
.
find
(
'
middleLayer
'
).
getComponent
(
'
middleLayer
'
);
}
...
...
creator.d.ts
View file @
0008a5ef
declare
const
global
:
any
=
{};
/** !#en
The main namespace of Cocos2d-JS, all engine core classes, functions, properties and constants are defined in this namespace.
!#zh
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