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
ba604662
Commit
ba604662
authored
Nov 17, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 进入画面
parent
0ec91df8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
NJ_QianShuiTing.fire
assets/middleLayer_for_NJ_lite/scene/NJ_QianShuiTing.fire
+5
-5
NJ_QianShuiTing.ts
assets/middleLayer_for_NJ_lite/scene/NJ_QianShuiTing.ts
+1
-0
MyCocosSceneComponent.ts
...s/middleLayer_for_NJ_lite/script/MyCocosSceneComponent.ts
+3
-3
No files found.
assets/middleLayer_for_NJ_lite/scene/NJ_QianShuiTing.fire
View file @
ba604662
...
@@ -352,7 +352,7 @@
...
@@ -352,7 +352,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
6
000,
"width":
4
000,
"height": 1200
"height": 1200
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
2
000,
-
1
000,
0,
0,
0,
0,
0,
0,
...
@@ -520,7 +520,7 @@
...
@@ -520,7 +520,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
100
0,
0,
0,
0,
0,
0,
0,
...
@@ -589,7 +589,7 @@
...
@@ -589,7 +589,7 @@
"__id__": 12
"__id__": 12
}
}
],
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 155
"__id__": 155
...
@@ -9122,7 +9122,7 @@
...
@@ -9122,7 +9122,7 @@
"_enabled": true,
"_enabled": true,
"_layoutSize": {
"_layoutSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
6
000,
"width":
4
000,
"height": 1200
"height": 1200
},
},
"_resize": 1,
"_resize": 1,
...
...
assets/middleLayer_for_NJ_lite/scene/NJ_QianShuiTing.ts
View file @
ba604662
...
@@ -85,6 +85,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -85,6 +85,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bg_bg2
.
scale
=
scale
;
bg_bg2
.
scale
=
scale
;
const
bg_bg3
=
cc
.
find
(
'
Canvas/ScrollView/layout/bg_bg3
'
);
const
bg_bg3
=
cc
.
find
(
'
Canvas/ScrollView/layout/bg_bg3
'
);
bg_bg3
.
scale
=
scale
;
bg_bg3
.
scale
=
scale
;
bg_bg3
.
active
=
true
;
const
scrollView
=
cc
.
find
(
'
Canvas/ScrollView
'
).
getComponent
(
cc
.
ScrollView
);
const
scrollView
=
cc
.
find
(
'
Canvas/ScrollView
'
).
getComponent
(
cc
.
ScrollView
);
scrollView
.
scrollTo
(
cc
.
v2
(
0
,
0
),
0
);
scrollView
.
scrollTo
(
cc
.
v2
(
0
,
0
),
0
);
...
...
assets/middleLayer_for_NJ_lite/script/MyCocosSceneComponent.ts
View file @
ba604662
...
@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
...
@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
preload
()
{
preload
()
{
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
async
(
err
,
data
)
=>
{
if
(
window
&&
window
[
"
air
"
])
{
if
(
window
&&
window
[
"
air
"
])
{
// window["air"].onCourseInScreen = (next) => {
// window["air"].onCourseInScreen = (next) => {
...
@@ -95,10 +95,10 @@ export class MyCocosSceneComponent extends cc.Component {
...
@@ -95,10 +95,10 @@ export class MyCocosSceneComponent extends cc.Component {
// this.onLoadEnd();
// this.onLoadEnd();
// next();
// next();
// };
// };
this
.
onLoadEnd
();
await
this
.
onLoadEnd
();
window
[
"
air
"
].
hideAirClassLoading
();
window
[
"
air
"
].
hideAirClassLoading
();
}
else
{
}
else
{
this
.
onLoadEnd
();
await
this
.
onLoadEnd
();
}
}
cc
.
debug
.
setDisplayStats
(
false
);
cc
.
debug
.
setDisplayStats
(
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