Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_04
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
JJ_Game_04
Commits
41b5b3bc
Commit
41b5b3bc
authored
Aug 23, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加返回按钮
parent
91dfcb97
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
761 additions
and
459 deletions
+761
-459
btn_laba.png.meta
assets/JJ_Game_04/anima/laba/btn_laba.png.meta
+2
-2
btn_laba2.png.meta
assets/JJ_Game_04/anima/laba/btn_laba2.png.meta
+2
-2
JJ_Game_04.fire
assets/JJ_Game_04/scene/JJ_Game_04.fire
+680
-455
JJ_Game_04_BtnBack.ts
assets/JJ_Game_04/script/JJ_Game_04_BtnBack.ts
+32
-0
JJ_Game_04_BtnBack.ts.meta
assets/JJ_Game_04/script/JJ_Game_04_BtnBack.ts.meta
+9
-0
btn_return.png
assets/JJ_Game_04/texture/btn_return.png
+0
-0
btn_return.png.meta
assets/JJ_Game_04/texture/btn_return.png.meta
+36
-0
No files found.
assets/JJ_Game_04/anima/laba/btn_laba.png.meta
View file @
41b5b3bc
...
...
@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
74
,
"height":
78
,
"width":
112
,
"height":
111
,
"platformSettings": {},
"subMetas": {
"btn_laba": {
...
...
assets/JJ_Game_04/anima/laba/btn_laba2.png.meta
View file @
41b5b3bc
...
...
@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
74
,
"height":
78
,
"width":
112
,
"height":
111
,
"platformSettings": {},
"subMetas": {
"btn_laba2": {
...
...
assets/JJ_Game_04/scene/JJ_Game_04.fire
View file @
41b5b3bc
This diff is collapsed.
Click to expand it.
assets/JJ_Game_04/script/JJ_Game_04_BtnBack.ts
0 → 100644
View file @
41b5b3bc
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start
()
{
}
handleClickBack
()
{
const
middleLayer
=
global
[
"
middleLayer
"
];
if
(
middleLayer
)
{
// 有些模板需要在返回时上报数据,直接把数据作为参数传入就可以了
middleLayer
.
exitGame
({});
}
else
{
console
.
log
(
"
==触发返回事件==
"
);
}
}
// update (dt) {}
}
assets/JJ_Game_04/script/JJ_Game_04_BtnBack.ts.meta
0 → 100644
View file @
41b5b3bc
{
"ver": "1.0.8",
"uuid": "54892d44-799d-4ff5-95b2-5a9898e0fd54",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/JJ_Game_04/texture/btn_return.png
0 → 100644
View file @
41b5b3bc
1.56 KB
assets/JJ_Game_04/texture/btn_return.png.meta
0 → 100644
View file @
41b5b3bc
{
"ver": "2.3.5",
"uuid": "dbd8b4ff-4d51-460a-ab5b-8e8d287cf1ec",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 139,
"height": 97,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "6c6b76a2-687e-4e82-b57a-25b981c484cd",
"rawTextureUuid": "dbd8b4ff-4d51-460a-ab5b-8e8d287cf1ec",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 139,
"height": 97,
"rawWidth": 139,
"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