Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_usercenter
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_usercenter
Commits
c65d5f1d
Commit
c65d5f1d
authored
May 20, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 滚动区域
parent
1ef72cc6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3802 additions
and
667 deletions
+3802
-667
NJ_usercenter.fire
assets/NJ_usercenter/scene/NJ_usercenter.fire
+3791
-657
NJ_usercenter.ts
assets/NJ_usercenter/scene/NJ_usercenter.ts
+3
-2
box.png.meta
assets/NJ_usercenter/textures/learnreport/box.png.meta
+4
-4
cardArea.png.meta
assets/NJ_usercenter/textures/learnreport/cardArea.png.meta
+4
-4
No files found.
assets/NJ_usercenter/scene/NJ_usercenter.fire
View file @
c65d5f1d
This diff is collapsed.
Click to expand it.
assets/NJ_usercenter/scene/NJ_usercenter.ts
View file @
c65d5f1d
...
@@ -226,8 +226,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -226,8 +226,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
maxLen
=
cc
.
find
(
`L
${
i
}
`
,
typeNode
).
width
const
maxLen
=
cc
.
find
(
`L
${
i
}
`
,
typeNode
).
width
cc
.
find
(
`L
${
i
}
/processlan`
,
typeNode
).
width
=
Math
.
floor
(
maxLen
*
prcss
.
process
/
100
);
cc
.
find
(
`L
${
i
}
/processlan`
,
typeNode
).
width
=
Math
.
floor
(
maxLen
*
prcss
.
process
/
100
);
}
else
{
}
else
{
console
.
log
(
`L
${
i
}
/processlan`
);
console
.
log
(
cc
.
find
(
`L
${
i
}
/processlan`
,
typeNode
));
cc
.
find
(
`L
${
i
}
/percent`
,
typeNode
).
getComponent
(
cc
.
Label
).
string
=
"
0%
"
;
cc
.
find
(
`L
${
i
}
/percent`
,
typeNode
).
getComponent
(
cc
.
Label
).
string
=
"
0%
"
;
cc
.
find
(
`L
${
i
}
/processlan`
,
typeNode
).
width
=
0
;
cc
.
find
(
`L
${
i
}
/processlan`
,
typeNode
).
width
=
0
;
}
}
...
@@ -247,6 +245,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -247,6 +245,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg
()
{
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
bgNode
.
scale
=
this
.
_mapScaleMax
;
// const reportNode = cc.find('Canvas/learnreport');
// reportNode.scale = this._mapScaleMax;
}
}
// update (dt) {}
// update (dt) {}
...
...
assets/NJ_usercenter/textures/learnreport/box.png.meta
View file @
c65d5f1d
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
"height": 592,
"height": 592,
"rawWidth": 830,
"rawWidth": 830,
"rawHeight": 592,
"rawHeight": 592,
"borderTop": 0,
"borderTop":
10
0,
"borderBottom": 0,
"borderBottom":
5
0,
"borderLeft": 0,
"borderLeft":
5
0,
"borderRight": 0,
"borderRight":
5
0,
"subMetas": {}
"subMetas": {}
}
}
}
}
...
...
assets/NJ_usercenter/textures/learnreport/cardArea.png.meta
View file @
c65d5f1d
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
"height": 473,
"height": 473,
"rawWidth": 649,
"rawWidth": 649,
"rawHeight": 473,
"rawHeight": 473,
"borderTop": 0,
"borderTop":
4
0,
"borderBottom": 0,
"borderBottom":
4
0,
"borderLeft": 0,
"borderLeft":
4
0,
"borderRight": 0,
"borderRight":
4
0,
"subMetas": {}
"subMetas": {}
}
}
}
}
...
...
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