Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_NongChang
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
NJ_NongChang
Commits
03682363
Commit
03682363
authored
Jul 05, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加moregames
parent
9fa39321
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3266 additions
and
2642 deletions
+3266
-2642
NJ_NongChang.fire
assets/NJ_NongChang/scene/NJ_NongChang.fire
+3173
-2642
NJ_NongChang.ts
assets/NJ_NongChang/scene/NJ_NongChang.ts
+21
-0
game.png
assets/NJ_NongChang/textures/game.png
+0
-0
game.png.meta
assets/NJ_NongChang/textures/game.png.meta
+36
-0
lxc.png
assets/NJ_NongChang/textures/lxc.png
+0
-0
lxc.png.meta
assets/NJ_NongChang/textures/lxc.png.meta
+36
-0
No files found.
assets/NJ_NongChang/scene/NJ_NongChang.fire
View file @
03682363
This diff is collapsed.
Click to expand it.
assets/NJ_NongChang/scene/NJ_NongChang.ts
View file @
03682363
...
...
@@ -18,6 +18,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
rows
;
kidInfo
;
moreGameFolder
:
any
;
async
initData
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
middleLayer
)
{
...
...
@@ -63,6 +64,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
name
:
row
.
name
};
});
this
.
moreGameFolder
=
res
.
rows
.
find
(
item
=>
item
.
name
==
'
more games
'
);
}
async
initView
()
{
...
...
@@ -170,5 +173,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
jumpToCourseWare
(
guideRow
.
id
);
});
}
const
btnGame
=
cc
.
find
(
'
Canvas/game
'
);
buttonOnClick
(
btnGame
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
!
this
.
moreGameFolder
)
{
middleLayerComponent
.
showTips
(
"
未解锁 [101]
"
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_MoreGames
'
,
{
folderId
:
this
.
moreGameFolder
.
id
,
folderName
:
this
.
moreGameFolder
.
name
,
Level
:
"
L3
"
});
middleLayerComponent
.
loadOnlineBundle
(
'
NJ_MoreGames
'
);
}
},
0.6
);
}
}
assets/NJ_NongChang/textures/game.png
0 → 100644
View file @
03682363
4.6 KB
assets/NJ_NongChang/textures/game.png.meta
0 → 100644
View file @
03682363
{
"ver": "2.3.5",
"uuid": "53581490-c087-4855-84ae-25afe57ea910",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 108,
"height": 100,
"platformSettings": {},
"subMetas": {
"game": {
"ver": "1.0.4",
"uuid": "11cf0fe6-61b1-4361-bc2b-fab4071aa4fa",
"rawTextureUuid": "53581490-c087-4855-84ae-25afe57ea910",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 106,
"height": 98,
"rawWidth": 108,
"rawHeight": 100,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/NJ_NongChang/textures/lxc.png
0 → 100644
View file @
03682363
4.41 KB
assets/NJ_NongChang/textures/lxc.png.meta
0 → 100644
View file @
03682363
{
"ver": "2.3.5",
"uuid": "b51b02f6-986e-4aac-92bb-7b042228c2ee",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 113,
"height": 97,
"platformSettings": {},
"subMetas": {
"lxc": {
"ver": "1.0.4",
"uuid": "95fe5982-d054-40b7-9d9c-37c6ef8063f0",
"rawTextureUuid": "b51b02f6-986e-4aac-92bb-7b042228c2ee",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 111,
"height": 95,
"rawWidth": 113,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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