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
4f4d5ad9
Commit
4f4d5ad9
authored
Aug 22, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 基本布局完成
parent
238bebea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
15 deletions
+46
-15
gamecenter.fire
...middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
+40
-9
gamecenter.ts
...s/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.ts
+1
-1
game-card.prefab
...er_for_jxw_demo/pages/gamecenter/prefabs/game-card.prefab
+5
-5
No files found.
assets/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
View file @
4f4d5ad9
...
...
@@ -86,14 +86,14 @@
],
"_active": true,
"_components": [
{
"__id__": 25
},
{
"__id__": 26
},
{
"__id__": 27
},
{
"__id__": 28
}
],
"_prefab": null,
...
...
@@ -715,7 +715,11 @@
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 25
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -727,7 +731,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
80
0,
"width": 1
28
0,
"height": 600
},
"_anchorPoint": {
...
...
@@ -739,8 +743,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0
,
5
0,
-49.176
,
0,
0,
0,
...
...
@@ -805,8 +809,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-6
18.2
,
-46.715
,
-6
40
,
0
,
0,
0,
0,
...
...
@@ -1143,6 +1147,33 @@
},
"_id": "30yHDRW1FLSaYTIlriOrwH"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 50,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "206/llzq5AuIAFBUoktUtK"
},
{
"__type__": "cc.Canvas",
"_name": "",
...
...
assets/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.ts
View file @
4f4d5ad9
...
...
@@ -55,7 +55,7 @@ export default class GameCenter extends cc.Component {
let
sx
=
cc
.
winSize
.
width
/
frameSize
.
width
;
let
sy
=
cc
.
winSize
.
height
/
frameSize
.
height
;
const
cocosScale
=
Math
.
min
(
sx
,
sy
);
//
const cocosScale = Math.min(sx, sy);
sx
=
frameSize
.
width
/
designSize
.
width
;
sy
=
frameSize
.
height
/
designSize
.
height
;
...
...
assets/middleLayer_for_jxw_demo/pages/gamecenter/prefabs/game-card.prefab
View file @
4f4d5ad9
...
...
@@ -325,7 +325,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"width":
325
,
"height": 40.32
},
"_anchorPoint": {
...
...
@@ -338,7 +338,7 @@
"ctor": "Float64Array",
"array": [
-1.089,
-
99
.039,
-
106
.039,
0,
0,
0,
...
...
@@ -377,8 +377,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_string": "
呃呃恶臭
",
"_N$string": "
呃呃恶臭
",
"_fontSize": 32,
"_lineHeight": 32,
"_enableWrapText": true,
...
...
@@ -391,7 +391,7 @@
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow":
0
,
"_N$overflow":
1
,
"_N$cacheMode": 0,
"_id": ""
},
...
...
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