Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_ShaMo
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_ShaMo
Commits
991a8efd
Commit
991a8efd
authored
Jul 05, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加moreGames
parent
ee23f750
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
910 additions
and
27 deletions
+910
-27
NJ_ShaMo.fire
assets/NJ_ShaMo/scene/NJ_ShaMo.fire
+817
-27
NJ_ShaMo.ts
assets/NJ_ShaMo/scene/NJ_ShaMo.ts
+21
-0
game.png
assets/NJ_ShaMo/textures/game.png
+0
-0
game.png.meta
assets/NJ_ShaMo/textures/game.png.meta
+36
-0
lxc.png
assets/NJ_ShaMo/textures/lxc.png
+0
-0
lxc.png.meta
assets/NJ_ShaMo/textures/lxc.png.meta
+36
-0
No files found.
assets/NJ_ShaMo/scene/NJ_ShaMo.fire
View file @
991a8efd
This diff is collapsed.
Click to expand it.
assets/NJ_ShaMo/scene/NJ_ShaMo.ts
View file @
991a8efd
...
@@ -11,6 +11,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -11,6 +11,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
rows
;
rows
;
kidInfo
;
kidInfo
;
moreGameFolder
:
any
;
async
initData
()
{
async
initData
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
middleLayer
)
{
if
(
!
middleLayer
)
{
...
@@ -56,6 +57,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -56,6 +57,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
name
:
row
.
name
name
:
row
.
name
};
};
});
});
this
.
moreGameFolder
=
res
.
rows
.
find
(
item
=>
item
.
name
==
'
more games
'
);
}
}
async
onLoadEnd
()
{
async
onLoadEnd
()
{
...
@@ -169,5 +171,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -169,5 +171,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
jumpToCourseWare
(
guideRow
.
id
);
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
:
"
L2
"
});
middleLayerComponent
.
loadOnlineBundle
(
'
NJ_MoreGames
'
);
}
},
0.6
);
}
}
}
}
assets/NJ_ShaMo/textures/game.png
0 → 100644
View file @
991a8efd
4.6 KB
assets/NJ_ShaMo/textures/game.png.meta
0 → 100644
View file @
991a8efd
{
"ver": "2.3.5",
"uuid": "81a6de68-73ba-42f1-8f46-8c010dfbf4fe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 108,
"height": 100,
"platformSettings": {},
"subMetas": {
"game": {
"ver": "1.0.4",
"uuid": "af8e011c-2e2e-40b0-83c7-a4c0eebd5723",
"rawTextureUuid": "81a6de68-73ba-42f1-8f46-8c010dfbf4fe",
"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_ShaMo/textures/lxc.png
0 → 100644
View file @
991a8efd
4.41 KB
assets/NJ_ShaMo/textures/lxc.png.meta
0 → 100644
View file @
991a8efd
{
"ver": "2.3.5",
"uuid": "238ef8da-55d5-44d4-8d3b-b7a9d42b1dcc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 113,
"height": 97,
"platformSettings": {},
"subMetas": {
"lxc": {
"ver": "1.0.4",
"uuid": "ab905372-cb1d-45ea-b634-0c46f69b3a73",
"rawTextureUuid": "238ef8da-55d5-44d4-8d3b-b7a9d42b1dcc",
"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