Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ38
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
JJ38
Commits
ff263ea3
Commit
ff263ea3
authored
May 24, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
5e8d3846
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
36 deletions
+17
-36
JJ38.js
assets/JJ38/scene/JJ38.js
+17
-0
panel_old.png
assets/JJ38/textures/new/panel_old.png
+0
-0
panel_old.png.meta
assets/JJ38/textures/new/panel_old.png.meta
+0
-36
No files found.
assets/JJ38/scene/JJ38.js
View file @
ff263ea3
...
...
@@ -414,6 +414,7 @@ cc.Class({
this
.
initPanel
();
this
.
initColorPanel
();
this
.
showBackBtn
();
// this._textureIdMapDataContainer = {};
...
...
@@ -446,6 +447,22 @@ cc.Class({
// });
},
showBackBtn
()
{
const
backBtn
=
cc
.
find
(
'
Canvas/back_btn
'
);
backBtn
.
active
=
true
;
backBtn
.
zIndex
=
30
;
backBtn
.
on
(
'
touchstart
'
,
()
=>
{
const
middleLayer
=
global
[
"
middleLayer
"
];
if
(
middleLayer
)
{
// 有些模板需要在返回时上报数据,直接把数据作为参数传入就可以了
middleLayer
.
exitGame
({});
}
else
{
console
.
log
(
"
==触发返回事件==
"
);
}
})
},
initTitle
()
{
const
title
=
cc
.
find
(
'
Canvas/bg/title
'
);
...
...
assets/JJ38/textures/new/panel_old.png
deleted
100644 → 0
View file @
5e8d3846
3.75 KB
assets/JJ38/textures/new/panel_old.png.meta
deleted
100644 → 0
View file @
5e8d3846
{
"ver": "2.3.5",
"uuid": "2d75d35c-e475-4239-a784-98de8f3daddf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 973,
"height": 506,
"platformSettings": {},
"subMetas": {
"panel_old": {
"ver": "1.0.4",
"uuid": "457c77b8-9091-4d51-b7f0-c6e85dd1e09d",
"rawTextureUuid": "2d75d35c-e475-4239-a784-98de8f3daddf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 973,
"height": 506,
"rawWidth": 973,
"rawHeight": 506,
"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