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
71f5665d
Commit
71f5665d
authored
Jul 13, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加返回按钮
parent
c8862fd3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
269 additions
and
27 deletions
+269
-27
NJ_NongChang.fire
assets/NJ_NongChang/scene/NJ_NongChang.fire
+225
-27
NJ_NongChang.ts
assets/NJ_NongChang/scene/NJ_NongChang.ts
+8
-0
btn_return.png
assets/NJ_NongChang/textures/btn_return.png
+0
-0
btn_return.png.meta
assets/NJ_NongChang/textures/btn_return.png.meta
+36
-0
No files found.
assets/NJ_NongChang/scene/NJ_NongChang.fire
View file @
71f5665d
...
@@ -85,18 +85,21 @@
...
@@ -85,18 +85,21 @@
},
},
{
{
"__id__": 352
"__id__": 352
},
{
"__id__": 360
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 36
0
"__id__": 36
4
},
},
{
{
"__id__": 36
1
"__id__": 36
5
},
},
{
{
"__id__": 36
2
"__id__": 36
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5602,7 +5605,7 @@
...
@@ -5602,7 +5605,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
76+RDrg91JnJI5My+eMhTh
"
"_id": "
9cDnrfblNHJJ6j3lsKptKT
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -5635,7 +5638,7 @@
...
@@ -5635,7 +5638,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
dbejQ6bAFBNp9GrpKWgqgM
"
"_id": "
21XflXrc1JTpKgwqDRY4KF
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -5653,7 +5656,7 @@
...
@@ -5653,7 +5656,7 @@
"a": 255
"a": 255
},
},
"_width": 3,
"_width": 3,
"_id": "
d6kUVRpEhBRIgl/Hu9I0Q7
"
"_id": "
9aLcWKPglJ068GT07aTBbO
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -5806,7 +5809,7 @@
...
@@ -5806,7 +5809,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
0fuDkx1NNLuqoVucKtNlik
"
"_id": "
17S4XpKwJEzIJtEOoDuLTt
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -5839,7 +5842,7 @@
...
@@ -5839,7 +5842,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
a7iaFYHFFGEJZ9F3K4sgWr
"
"_id": "
82M27Oi+lLyJmuw4nYreEP
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -5857,7 +5860,7 @@
...
@@ -5857,7 +5860,7 @@
"a": 255
"a": 255
},
},
"_width": 7,
"_width": 7,
"_id": "
17wNMR1JlKBbC2qjPBFx76
"
"_id": "
98WwTvQt9Oibi1yfSbqOJ+
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -8934,7 +8937,7 @@
...
@@ -8934,7 +8937,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
acFCB0DpRNhI1DGKUNGSmu
"
"_id": "
c8UD0Do55LRJmRSD6c8Gsm
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -8967,7 +8970,7 @@
...
@@ -8967,7 +8970,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
3eGM0a0PtOnpjGZ261w7mf
"
"_id": "
0abGYPr2VHEJFYGUZmbaqF
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -8985,7 +8988,7 @@
...
@@ -8985,7 +8988,7 @@
"a": 255
"a": 255
},
},
"_width": 7,
"_width": 7,
"_id": "
01fYnVqJZNYauCA2CONue/
"
"_id": "
bfBivspf9DFpIW5oLDGSb5
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -9138,7 +9141,7 @@
...
@@ -9138,7 +9141,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
c7ENGj/8FF7Yrt1doaACbO
"
"_id": "
6app697WdDSLrkfruaTPwS
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -9171,7 +9174,7 @@
...
@@ -9171,7 +9174,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
3dKOaJT59EuYq/Jr4uNlHq
"
"_id": "
65NrtW7N5IAaDZOQtIb57N
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -9189,7 +9192,7 @@
...
@@ -9189,7 +9192,7 @@
"a": 255
"a": 255
},
},
"_width": 3,
"_width": 3,
"_id": "
37EsYXwy1GkZkx9U6JW2Fr
"
"_id": "
dej/3vzzxLCrPp536Gq3rv
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -12266,7 +12269,7 @@
...
@@ -12266,7 +12269,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
607fjvp6xDOrvsREXA7c1D
"
"_id": "
b510RhsJNMarlKJG6MJxCN
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -12299,7 +12302,7 @@
...
@@ -12299,7 +12302,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
adWm3FC6tHqYfI0h1q9ULk
"
"_id": "
6bZhWEdQ5CFK/C+eCDyT28
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -12317,7 +12320,7 @@
...
@@ -12317,7 +12320,7 @@
"a": 255
"a": 255
},
},
"_width": 7,
"_width": 7,
"_id": "
d0tTZRY25JF7Kv5ALkZbNT
"
"_id": "
b5p/7cct5JIaR/SdvAAw7/
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -12470,7 +12473,7 @@
...
@@ -12470,7 +12473,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
5aAwU1YVVGt7YKnWOHoAf9
"
"_id": "
22eL+TWxxLdIlB9o5M0x3N
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -12503,7 +12506,7 @@
...
@@ -12503,7 +12506,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
b3wYWKnWBOGLGnkRyk5vE+
"
"_id": "
d4KVCoXr1HCaZOAPhePDD7
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -12521,7 +12524,7 @@
...
@@ -12521,7 +12524,7 @@
"a": 255
"a": 255
},
},
"_width": 3,
"_width": 3,
"_id": "
7a4dP7mz9Fu7cje+C8LIDY
"
"_id": "
f9i4Rao8JIdJq3x37mzVjg
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -15793,7 +15796,7 @@
...
@@ -15793,7 +15796,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "
df+AjqOjRDUb7sHTZDx8u1
"
"_id": "
f4LZcqmKVCg5W8RGph1odJ
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -15826,7 +15829,7 @@
...
@@ -15826,7 +15829,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
baTUTb99xGb4wFYNKiPhGI
"
"_id": "
e3whCzR2xLZ4IzcLphY2Sa
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -15844,7 +15847,7 @@
...
@@ -15844,7 +15847,7 @@
"a": 255
"a": 255
},
},
"_width": 7,
"_width": 7,
"_id": "
d1ty8WUwlCNIjPBWegs04q
"
"_id": "
b1P0B1NPZEHbvgGFNtdqaA
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -15997,7 +16000,7 @@
...
@@ -15997,7 +16000,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"showInEditor": false,
"_id": "1
3FeJEhDJK/qgMyZABE1rX
"
"_id": "1
aAOhcLpJJs6EHeyzD+Wd2
"
},
},
{
{
"__type__": "cc.Label",
"__type__": "cc.Label",
...
@@ -16030,7 +16033,7 @@
...
@@ -16030,7 +16033,7 @@
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
"_id": "
3al2C6OqRLCpL5Nl0nYapq
"
"_id": "
5cSd5+fNtMbKqMszHPAkVa
"
},
},
{
{
"__type__": "cc.LabelOutline",
"__type__": "cc.LabelOutline",
...
@@ -16048,7 +16051,7 @@
...
@@ -16048,7 +16051,7 @@
"a": 255
"a": 255
},
},
"_width": 3,
"_width": 3,
"_id": "
1caBkEZSxAioVdHwcyhoNc
"
"_id": "
33UzVC1r1DAZmAOLZCIPJ/
"
},
},
{
{
"__type__": "cc.RichText",
"__type__": "cc.RichText",
...
@@ -17224,6 +17227,201 @@
...
@@ -17224,6 +17227,201 @@
"_N$target": null,
"_N$target": null,
"_id": "2aGzpr6ttAioWiP5oiS0MF"
"_id": "2aGzpr6ttAioWiP5oiS0MF"
},
},
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 361
},
{
"__id__": 362
},
{
"__id__": 363
}
],
"_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": [
-577.9,
296.4,
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": "f1f1L/uYdM2pjrDEI2xJlL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 360
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "19ed0611-6fbd-4d66-9338-0fc68a1c1b3d"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "2czEoAR11Bkq3QMU8PkJLe"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 360
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 30,
"_right": 0,
"_top": 30,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "9dlNoIgzhIwaoLK3kUdNg8"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 360
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "d9iWHTyZZBIrTRPIdxNUmD"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
...
assets/NJ_NongChang/scene/NJ_NongChang.ts
View file @
71f5665d
...
@@ -200,5 +200,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -200,5 +200,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent
.
loadOnlineBundle
(
'
workbook_l3
'
);
middleLayerComponent
.
loadOnlineBundle
(
'
workbook_l3
'
);
}
}
},
0.6
);
},
0.6
);
const
btnReturn
=
cc
.
find
(
'
Canvas/btn_return
'
);
buttonOnClick
(
btnReturn
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
loadOnlineBundle
(
'
NJ_menu
'
);
}
},
0.6
);
}
}
}
}
assets/NJ_NongChang/textures/btn_return.png
0 → 100644
View file @
71f5665d
10.6 KB
assets/NJ_NongChang/textures/btn_return.png.meta
0 → 100644
View file @
71f5665d
{
"ver": "2.3.5",
"uuid": "621bccc2-b7e2-45cf-9c33-2a95d4f66797",
"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": "19ed0611-6fbd-4d66-9338-0fc68a1c1b3d",
"rawTextureUuid": "621bccc2-b7e2-45cf-9c33-2a95d4f66797",
"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