Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MoreGames_CourseList
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_MoreGames_CourseList
Commits
b9586385
Commit
b9586385
authored
Jul 05, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 返回按钮
parent
1c664a11
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
144 additions
and
3 deletions
+144
-3
NJ_MoreGames_CourseList.fire
...J_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.fire
+100
-3
NJ_MoreGames_CourseList.ts
.../NJ_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.ts
+8
-0
btn_return.png
assets/NJ_MoreGames_CourseList/textures/btn_return.png
+0
-0
btn_return.png.meta
assets/NJ_MoreGames_CourseList/textures/btn_return.png.meta
+36
-0
No files found.
assets/NJ_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.fire
View file @
b9586385
...
...
@@ -79,18 +79,21 @@
},
{
"__id__": 43
},
{
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 4
7
"__id__": 4
9
},
{
"__id__":
48
"__id__":
50
},
{
"__id__":
49
"__id__":
51
}
],
"_prefab": null,
...
...
@@ -2225,6 +2228,100 @@
"_originalHeight": 720,
"_id": "fbteI5DiBJZIIHk3rG9Q7H"
},
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 107,
"height": 112
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-579.077,
303.117,
0,
0,
0,
0,
1,
0.6,
0.6,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "84oIP6jaxDFLqqCiw6JpA1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a1b2ff22-720f-406f-a677-ee89ba5f74c5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5epT0RkgZMlLPqDI1eaCkj"
},
{
"__type__": "cc.Canvas",
"_name": "",
...
...
assets/NJ_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.ts
View file @
b9586385
...
...
@@ -69,6 +69,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initListener
()
{
const
btnReturn
=
cc
.
find
(
'
Canvas/btn_return
'
);
buttonOnClick
(
btnReturn
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
loadOnlineBundle
(
"
NJ_MoreGames
"
);
}
},
0.6
);
const
levelNode
=
cc
.
find
(
`Canvas/
${
this
.
level
}
`
);
for
(
let
i
=
1
;
i
<=
5
;
i
++
)
{
const
item
=
cc
.
find
(
`item
${
i
}
`
,
levelNode
);
...
...
assets/NJ_MoreGames_CourseList/textures/btn_return.png
0 → 100644
View file @
b9586385
10.6 KB
assets/NJ_MoreGames_CourseList/textures/btn_return.png.meta
0 → 100644
View file @
b9586385
{
"ver": "2.3.5",
"uuid": "83e903df-0940-473e-bee2-df731c0b0f25",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 107,
"height": 112,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "a1b2ff22-720f-406f-a677-ee89ba5f74c5",
"rawTextureUuid": "83e903df-0940-473e-bee2-df731c0b0f25",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 107,
"height": 112,
"rawWidth": 107,
"rawHeight": 112,
"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