Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
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
middleLayer_for_kyxq
Commits
4aae02ec
Commit
4aae02ec
authored
Oct 31, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
347cbd65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+2
-2
HomePage.ts
assets/middleLayer_for_kyxq/script/HomePage.ts
+7
-2
No files found.
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
4aae02ec
...
@@ -5988,14 +5988,14 @@
...
@@ -5988,14 +5988,14 @@
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0.5,
"y": 0
.5
"y": 0
},
},
"_trs": {
"_trs": {
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
0
,
-315
,
0,
0,
0,
0,
0,
0,
...
...
assets/middleLayer_for_kyxq/script/HomePage.ts
View file @
4aae02ec
...
@@ -114,11 +114,16 @@ export default class NewClass extends cc.Component {
...
@@ -114,11 +114,16 @@ export default class NewClass extends cc.Component {
}
}
getSpriteFrimeByUrl
(
row
.
cover
,
async
(
spriteFrame
)
=>
{
// console.log("row.cover: ", row.cover);
getSprNodeByUrl
(
row
.
cover
,
async
(
resSpr
)
=>
{
// getSpriteFrimeByUrl(row.cover, async (spriteFrame) => {
const
coverNode
=
cc
.
find
(
`bg`
,
ci
);
const
coverNode
=
cc
.
find
(
`bg`
,
ci
);
const
spr
=
coverNode
.
getComponent
(
cc
.
Sprite
);
const
spr
=
coverNode
.
getComponent
(
cc
.
Sprite
);
spr
.
spriteFrame
=
spriteFrame
;
coverNode
.
width
=
resSpr
.
node
.
width
;
coverNode
.
height
=
resSpr
.
node
.
height
;
spr
.
spriteFrame
=
resSpr
.
spriteFrame
;
// const sx = 476 / coverNode.width;
// const sx = 476 / coverNode.width;
// const sy = 630 / coverNode.height;
// const sy = 630 / coverNode.height;
...
...
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