Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
APP02005
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
APP02005
Commits
3321f247
Commit
3321f247
authored
Jun 24, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整1 2 个适配
parent
9545e3c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
40 deletions
+146
-40
APP02005.fire
assets/APP02005/scene/APP02005.fire
+115
-18
page3.ts
assets/APP02005/scene/page3.ts
+8
-3
defaultData.ts
assets/APP02005/script/defaultData.ts
+23
-19
No files found.
assets/APP02005/scene/APP02005.fire
View file @
3321f247
...
...
@@ -81,13 +81,13 @@
"_active": true,
"_components": [
{
"__id__": 5
1
"__id__": 5
3
},
{
"__id__": 5
2
"__id__": 5
4
},
{
"__id__": 5
3
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -773,15 +773,18 @@
},
{
"__id__": 41
},
{
"__id__": 49
}
],
"_active": true,
"_components": [
{
"__id__":
49
"__id__":
51
},
{
"__id__": 5
0
"__id__": 5
2
}
],
"_prefab": null,
...
...
@@ -1759,8 +1762,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
1
26,
"height":
56.4
"width":
2
26,
"height":
40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -1772,7 +1775,7 @@
"ctor": "Float64Array",
"array": [
-13.107,
-1
28.045
,
-1
30.562
,
0,
0,
0,
...
...
@@ -1814,8 +1817,8 @@
"_string": "剧情预告",
"_N$string": "剧情预告",
"_fontSize": 30,
"_lineHeight":
4
0,
"_enableWrapText":
tru
e,
"_lineHeight":
3
0,
"_enableWrapText":
fals
e,
"_N$file": {
"__uuid__": "8700c4ce-513b-4374-b284-b51c1d29393c"
},
...
...
@@ -1827,7 +1830,7 @@
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow":
0
,
"_N$overflow":
2
,
"_N$cacheMode": 0,
"_id": "4c7HOTq3NLJLT472LpS2+F"
},
...
...
@@ -2045,7 +2048,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
292
,
"width": 1
334
,
"height": 600
},
"_anchorPoint": {
...
...
@@ -2057,7 +2060,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-6
28.723
,
-6
67
,
-27.235,
0,
0,
...
...
@@ -2114,7 +2117,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
292
,
"width": 1
334
,
"height": 600
},
"_anchorPoint": {
...
...
@@ -2234,8 +2237,8 @@
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingLeft":
10
0,
"_N$paddingRight":
10
0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": -17,
...
...
@@ -2329,8 +2332,8 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left":
38.277000000000044
,
"_right":
3.7229999999999563
,
"_left":
0
,
"_right":
0
,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
...
...
@@ -2345,6 +2348,100 @@
"_originalHeight": 0,
"_id": "26mF12Z0VGNJ5V9nzBTiCg"
},
{
"__type__": "cc.Node",
"_name": "layout",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 880,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "64PQnXAjxHNoO/UJsE3qC+"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 880,
"height": 200
},
"_resize": 0,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "c5NrIm611GRpfTxX4SLbOe"
},
{
"__type__": "cfef9RS1bRFZqpW++GCoUte",
"_name": "",
...
...
assets/APP02005/scene/page3.ts
View file @
3321f247
...
...
@@ -34,13 +34,18 @@ export default class NewClass extends cc.Component {
private
layout
:
cc
.
Node
;
private
item
:
cc
.
Node
;
onLoad
()
{
let
scrollview
=
this
.
node
.
getChildByName
(
"
scrollview
"
);
let
view
=
scrollview
.
getChildByName
(
"
view
"
);
this
.
layout
=
view
.
getChildByName
(
"
content
"
);
this
.
item
=
this
.
node
.
getChildByName
(
"
item
"
);
this
.
item
.
active
=
false
;
}
initView
()
{
if
(
this
.
list
.
length
<
3
)
{
this
.
layout
=
this
.
node
.
getChildByName
(
"
layout
"
);
this
.
layout
.
width
=
this
.
list
.
length
==
2
?
880
:
440
;
}
else
{
let
scrollview
=
this
.
node
.
getChildByName
(
"
scrollview
"
);
let
view
=
scrollview
.
getChildByName
(
"
view
"
);
this
.
layout
=
view
.
getChildByName
(
"
content
"
);
}
this
.
list
.
forEach
((
data
,
index
)
=>
{
let
item
=
cc
.
instantiate
(
this
.
item
);
this
.
updateItem
(
item
,
data
,
index
);
...
...
assets/APP02005/script/defaultData.ts
View file @
3321f247
...
...
@@ -34,30 +34,34 @@ export const defaultData = {
//游戏列表
gameList
:
[{
img
:
'
http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg
'
,
name
:
'
小红帽历险记1
'
,
name
:
'
小红帽历险记1
设施难以熊圣诞节否
'
,
locked
:
false
,
id
:
1231
,
},
{
},
{
img
:
'
http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg
'
,
name
:
'
小红帽历险记2
'
,
locked
:
false
,
id
:
1232
,
},
{
img
:
'
http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg
'
,
name
:
'
小红帽历险记3
'
,
locked
:
false
,
id
:
1233
,
},
{
img
:
'
http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg
'
,
name
:
'
小红帽历险记4
'
,
locked
:
false
,
id
:
1234
,
},
{
img
:
'
http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg
'
,
name
:
'
小红帽历险记5
'
,
locked
:
false
,
id
:
1235
,
totalIcon
:
100
,
}],
},
// {
// img: 'http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg',
// name: '小红帽历险记3',
// locked: false,
// id: 1233,
// },
// {
// img: 'http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg',
// name: '小红帽历险记4',
// locked: false,
// id: 1234,
// }, {
// img: 'http://staging-teach.cdn.ireadabc.com/0d332cb2b167feb4204b1d77a6f02ed6.jpg',
// name: '小红帽历险记5',
// locked: false,
// id: 1235,
// totalIcon: 100,
// }
],
}
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