Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_jxw_demo
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_jxw_demo
Commits
aeba1710
Commit
aeba1710
authored
Aug 22, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:测试布局
parent
9d28e89c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
160 deletions
+70
-160
gamecenter.fire
...middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
+63
-156
gamecenter.ts
...s/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.ts
+3
-0
middleLayer_for_jxw_demo.fire
...dleLayer_for_jxw_demo/scene/middleLayer_for_jxw_demo.fire
+4
-4
No files found.
assets/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
View file @
aeba1710
...
...
@@ -81,19 +81,19 @@
"__id__": 13
},
{
"__id__": 1
7
"__id__": 1
6
}
],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
5
},
{
"__id__": 2
7
"__id__": 2
6
},
{
"__id__": 2
8
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -397,8 +397,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
6
8,
"height":
6
8
"width":
12
8,
"height":
12
8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -409,8 +409,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-8
68
,
4
48
,
-8
46
,
4
26
,
0,
0,
0,
...
...
@@ -477,9 +477,9 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 5
8
,
"_left": 5
0
,
"_right": 0,
"_top": 5
8
,
"_top": 5
0
,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
...
...
@@ -577,81 +577,19 @@
"handler": "onClickBack",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "header",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 14
},
{
"__id__": 16
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-397.08,
442.044,
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": "c5Kwn37rFBJogCgvlRhU93"
},
{
"__type__": "cc.Node",
"_name": "title_label",
"_objFlags": 0,
"_parent": {
"__id__":
13
"__id__":
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 15
}
...
...
@@ -667,8 +605,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
128
,
"height":
40.32
"width":
256
,
"height":
80.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -679,8 +617,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
-582
,
424.68
,
0,
0,
0,
...
...
@@ -709,7 +647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
4
"__id__": 1
3
},
"_enabled": true,
"_materials": [
...
...
@@ -721,8 +659,8 @@
"_dstBlendFactor": 771,
"_string": "游戏广场",
"_N$string": "游戏广场",
"_fontSize":
32
,
"_lineHeight":
32
,
"_fontSize":
64
,
"_lineHeight":
64
,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
...
...
@@ -738,62 +676,31 @@
"_id": "edOtIKUDdHJanv0iuIsgPx"
},
{
"__type__": "cc.
Node
",
"_name": "
icon_back
",
"__type__": "cc.
Widget
",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"
node
": {
"__id__": 13
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "abBn52Pk5CuLG3cVNbL2r1"
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 250,
"_right": 0,
"_top": 75,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "78a3DbOKtCtaFfcLZHAk2e"
},
{
"__type__": "cc.Node",
...
...
@@ -804,7 +711,7 @@
},
"_children": [
{
"__id__": 1
8
"__id__": 1
7
}
],
"_active": true,
...
...
@@ -862,17 +769,17 @@
"_name": "scroll_view",
"_objFlags": 0,
"_parent": {
"__id__": 1
7
"__id__": 1
6
},
"_children": [
{
"__id__": 1
9
"__id__": 1
8
}
],
"_active": true,
"_components": [
{
"__id__": 2
5
"__id__": 2
4
}
],
"_prefab": null,
...
...
@@ -928,20 +835,20 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 1
8
"__id__": 1
7
},
"_children": [
{
"__id__":
20
"__id__":
19
},
{
"__id__": 2
2
"__id__": 2
1
}
],
"_active": true,
"_components": [
{
"__id__": 2
4
"__id__": 2
3
}
],
"_prefab": null,
...
...
@@ -997,13 +904,13 @@
"_name": "line1",
"_objFlags": 0,
"_parent": {
"__id__": 1
9
"__id__": 1
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
1
"__id__": 2
0
}
],
"_prefab": null,
...
...
@@ -1059,7 +966,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
20
"__id__":
19
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1091,13 +998,13 @@
"_name": "line2",
"_objFlags": 0,
"_parent": {
"__id__": 1
9
"__id__": 1
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
3
"__id__": 2
2
}
],
"_prefab": null,
...
...
@@ -1153,7 +1060,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
2
"__id__": 2
1
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1185,7 +1092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
9
"__id__": 1
8
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1217,7 +1124,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
8
"__id__": 1
7
},
"_enabled": true,
"horizontal": true,
...
...
@@ -1229,10 +1136,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 1
9
"__id__": 1
8
},
"content": {
"__id__": 1
9
"__id__": 1
8
},
"_id": "30yHDRW1FLSaYTIlriOrwH"
},
...
...
@@ -1289,13 +1196,13 @@
},
"_enabled": true,
"gameListContainer": {
"__id__": 1
7
"__id__": 1
6
},
"gameCardPrefab": {
"__uuid__": "3e0857f7-c988-4162-90e4-5e6c1887c3d6"
},
"scrollView": {
"__id__": 2
5
"__id__": 2
4
},
"_id": "36tZootWRFMaA7LPmJ+XR/"
}
...
...
assets/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.ts
View file @
aeba1710
...
...
@@ -39,6 +39,9 @@ export default class GameCenter extends cc.Component {
start
()
{
this
.
getGameList
();
const
canvas
=
cc
.
find
(
"
Canvas
"
);
canvas
.
getComponent
(
cc
.
Widget
).
updateAlignment
();
}
private
initComponents
()
{
...
...
assets/middleLayer_for_jxw_demo/scene/middleLayer_for_jxw_demo.fire
View file @
aeba1710
...
...
@@ -776,8 +776,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
6
8,
"height":
6
8
"width":
12
8,
"height":
12
8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -826,9 +826,9 @@
"__id__": 2
},
"_alignFlags": 9,
"_left":
24
,
"_left":
50
,
"_right": 0,
"_top":
24
,
"_top":
50
,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
...
...
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