Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_game_select
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_game_select
Commits
557a20bb
Commit
557a20bb
authored
Jan 09, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改某些背景图无法匹配的问题
parent
0d47ebc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
115 deletions
+87
-115
NJ_game_select.fire
assets/NJ_game_select/scene/NJ_game_select.fire
+83
-113
NJ_game_select.ts
assets/NJ_game_select/scene/NJ_game_select.ts
+4
-2
No files found.
assets/NJ_game_select/scene/NJ_game_select.fire
View file @
557a20bb
...
...
@@ -75,28 +75,28 @@
"__id__": 5
},
{
"__id__": 1
5
"__id__": 1
4
},
{
"__id__": 3
3
"__id__": 3
2
},
{
"__id__": 4
7
"__id__": 4
6
},
{
"__id__": 4
9
"__id__": 4
8
}
],
"_active": true,
"_components": [
{
"__id__": 5
2
"__id__": 5
1
},
{
"__id__": 5
3
"__id__": 5
2
},
{
"__id__": 5
4
"__id__": 5
3
}
],
"_prefab": null,
...
...
@@ -257,19 +257,19 @@
"__id__": 6
},
{
"__id__":
9
"__id__":
8
},
{
"__id__": 1
1
"__id__": 1
0
}
],
"_active": true,
"_components": [
{
"__id__": 1
3
"__id__": 1
2
},
{
"__id__": 1
4
"__id__": 1
3
}
],
"_prefab": null,
...
...
@@ -332,9 +332,6 @@
"_components": [
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": null,
...
...
@@ -415,33 +412,6 @@
"_atlas": null,
"_id": "c7vmkEvcVK3YtSgJJGm4AO"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": false,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_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": "89EgX5Cu5DHa9olJi4Pb6R"
},
{
"__type__": "cc.Node",
"_name": "booble",
...
...
@@ -453,7 +423,7 @@
"_active": true,
"_components": [
{
"__id__":
10
"__id__":
9
}
],
"_prefab": null,
...
...
@@ -509,7 +479,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
"__id__":
8
},
"_enabled": true,
"_materials": [
...
...
@@ -547,7 +517,7 @@
"_active": true,
"_components": [
{
"__id__": 1
2
"__id__": 1
1
}
],
"_prefab": null,
...
...
@@ -603,7 +573,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
1
"__id__": 1
0
},
"_enabled": true,
"_materials": [
...
...
@@ -698,13 +668,13 @@
},
"_children": [
{
"__id__": 1
6
"__id__": 1
5
},
{
"__id__": 2
9
"__id__": 2
8
},
{
"__id__": 3
1
"__id__": 3
0
}
],
"_active": true,
...
...
@@ -762,20 +732,20 @@
"_name": "pad",
"_objFlags": 0,
"_parent": {
"__id__": 1
5
"__id__": 1
4
},
"_children": [
{
"__id__": 1
7
"__id__": 1
6
},
{
"__id__": 2
1
"__id__": 2
0
}
],
"_active": true,
"_components": [
{
"__id__": 2
8
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -831,17 +801,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 1
6
"__id__": 1
5
},
"_children": [
{
"__id__": 1
8
"__id__": 1
7
}
],
"_active": true,
"_components": [
{
"__id__":
20
"__id__":
19
}
],
"_prefab": null,
...
...
@@ -897,13 +867,13 @@
"_name": "page",
"_objFlags": 0,
"_parent": {
"__id__": 1
7
"__id__": 1
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
9
"__id__": 1
8
}
],
"_prefab": null,
...
...
@@ -959,7 +929,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
8
"__id__": 1
7
},
"_enabled": true,
"_materials": [
...
...
@@ -991,7 +961,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
7
"__id__": 1
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1011,14 +981,14 @@
"_name": "circle",
"_objFlags": 0,
"_parent": {
"__id__": 1
6
"__id__": 1
5
},
"_children": [
{
"__id__": 2
2
"__id__": 2
1
},
{
"__id__": 2
4
"__id__": 2
3
}
],
"_active": false,
...
...
@@ -1076,13 +1046,13 @@
"_name": "countDown_black",
"_objFlags": 0,
"_parent": {
"__id__": 2
1
"__id__": 2
0
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
3
"__id__": 2
2
}
],
"_prefab": null,
...
...
@@ -1138,7 +1108,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
2
"__id__": 2
1
},
"_enabled": true,
"_materials": [
...
...
@@ -1170,17 +1140,17 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 2
1
"__id__": 2
0
},
"_children": [
{
"__id__": 2
5
"__id__": 2
4
}
],
"_active": true,
"_components": [
{
"__id__": 2
7
"__id__": 2
6
}
],
"_prefab": null,
...
...
@@ -1236,13 +1206,13 @@
"_name": "countDown_blue",
"_objFlags": 0,
"_parent": {
"__id__": 2
4
"__id__": 2
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1298,7 +1268,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1330,12 +1300,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
3
},
"_enabled": true,
"_N$totalLength": 1,
"_N$barSprite": {
"__id__": 2
6
"__id__": 2
5
},
"_N$mode": 2,
"_N$progress": 1,
...
...
@@ -1347,7 +1317,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1379,13 +1349,13 @@
"_name": "book_left",
"_objFlags": 0,
"_parent": {
"__id__": 1
5
"__id__": 1
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
30
"__id__":
29
}
],
"_prefab": null,
...
...
@@ -1441,7 +1411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"_materials": [
...
...
@@ -1473,13 +1443,13 @@
"_name": "book_right",
"_objFlags": 0,
"_parent": {
"__id__": 1
5
"__id__": 1
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 3
2
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1535,7 +1505,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
1
"__id__": 3
0
},
"_enabled": true,
"_materials": [
...
...
@@ -1571,7 +1541,7 @@
},
"_children": [
{
"__id__": 3
4
"__id__": 3
3
}
],
"_active": false,
...
...
@@ -1629,20 +1599,20 @@
"_name": "pad",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
2
},
"_children": [
{
"__id__": 3
5
"__id__": 3
4
},
{
"__id__": 3
9
"__id__": 3
8
}
],
"_active": true,
"_components": [
{
"__id__": 4
6
"__id__": 4
5
}
],
"_prefab": null,
...
...
@@ -1698,17 +1668,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
3
},
"_children": [
{
"__id__": 3
6
"__id__": 3
5
}
],
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
7
}
],
"_prefab": null,
...
...
@@ -1764,13 +1734,13 @@
"_name": "page",
"_objFlags": 0,
"_parent": {
"__id__": 3
5
"__id__": 3
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
7
"__id__": 3
6
}
],
"_prefab": null,
...
...
@@ -1826,7 +1796,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
6
"__id__": 3
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1858,7 +1828,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1878,14 +1848,14 @@
"_name": "circle",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
3
},
"_children": [
{
"__id__":
40
"__id__":
39
},
{
"__id__": 4
2
"__id__": 4
1
}
],
"_active": false,
...
...
@@ -1943,13 +1913,13 @@
"_name": "countDown_black",
"_objFlags": 0,
"_parent": {
"__id__": 3
9
"__id__": 3
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
1
"__id__": 4
0
}
],
"_prefab": null,
...
...
@@ -2005,7 +1975,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
40
"__id__":
39
},
"_enabled": true,
"_materials": [
...
...
@@ -2037,17 +2007,17 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 3
9
"__id__": 3
8
},
"_children": [
{
"__id__": 4
3
"__id__": 4
2
}
],
"_active": true,
"_components": [
{
"__id__": 4
5
"__id__": 4
4
}
],
"_prefab": null,
...
...
@@ -2103,13 +2073,13 @@
"_name": "countDown_blue",
"_objFlags": 0,
"_parent": {
"__id__": 4
2
"__id__": 4
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
4
"__id__": 4
3
}
],
"_prefab": null,
...
...
@@ -2165,7 +2135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2197,12 +2167,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
1
},
"_enabled": true,
"_N$totalLength": 1,
"_N$barSprite": {
"__id__": 4
4
"__id__": 4
3
},
"_N$mode": 2,
"_N$progress": 1,
...
...
@@ -2214,7 +2184,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2252,7 +2222,7 @@
"_active": true,
"_components": [
{
"__id__": 4
8
"__id__": 4
7
}
],
"_prefab": null,
...
...
@@ -2308,7 +2278,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
7
"__id__": 4
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2350,10 +2320,10 @@
"_active": true,
"_components": [
{
"__id__":
50
"__id__":
49
},
{
"__id__": 5
1
"__id__": 5
0
}
],
"_prefab": null,
...
...
@@ -2409,7 +2379,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
9
"__id__": 4
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2449,7 +2419,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
9
"__id__": 4
8
},
"_enabled": true,
"alignMode": 1,
...
...
assets/NJ_game_select/scene/NJ_game_select.ts
View file @
557a20bb
...
...
@@ -20,7 +20,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
setNodeSpirteFrameByUrl
(
startBg
,
bgNode
,
(
frame
)
=>
{
bgNode
.
x
=
bgNode
.
parent
.
width
/
-
2
;
bgNode
.
y
=
bgNode
.
parent
.
height
/
2
;
bgNode
.
scale
=
bgNode
.
parent
.
height
/
frame
.
height
;
bgNode
.
height
=
bgNode
.
parent
.
height
;
bgNode
.
width
=
(
frame
.
width
/
frame
.
height
)
*
bgNode
.
height
;
resolve
();
});
...
...
@@ -306,7 +307,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
setNodeSpirteFrameByUrl
(
startBg
,
bgNode
,
(
frame
)
=>
{
bgNode
.
x
=
bgNode
.
parent
.
width
/
-
2
;
bgNode
.
y
=
bgNode
.
parent
.
height
/
2
;
bgNode
.
scale
=
bgNode
.
parent
.
height
/
frame
.
height
;
bgNode
.
height
=
bgNode
.
parent
.
height
;
bgNode
.
width
=
(
frame
.
width
/
frame
.
height
)
*
bgNode
.
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