This commit is contained in:
szrpf 2023-10-01 22:15:40 +08:00
parent 4b9cac1744
commit 3f3ee943a4
3 changed files with 49 additions and 109 deletions

View File

@ -75,19 +75,19 @@
"__id__": 5
},
{
"__id__": 8
"__id__": 7
},
{
"__id__": 11
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 12
},
{
"__id__": 16
"__id__": 13
}
],
"_prefab": null,
@ -248,9 +248,6 @@
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
@ -333,33 +330,6 @@
"_atlas": null,
"_id": "d9tJr+3jpGA66qiPl1XnSz"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"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": 1080,
"_originalHeight": 1920,
"_id": "dbMGEcZJZNQI75L1FLgbd9"
},
{
"__type__": "cc.Node",
"_name": "Ball",
@ -371,10 +341,7 @@
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 10
"__id__": 8
}
],
"_prefab": null,
@ -430,7 +397,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 7
},
"_enabled": true,
"_materials": [
@ -457,33 +424,6 @@
"_atlas": null,
"_id": "8fWn4KeXROfJvlWO4E6nB4"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 100,
"_top": 0,
"_bottom": 100,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "deTRVuGE1MxpQx3RkM1BUz"
},
{
"__type__": "cc.Node",
"_name": "Title",
@ -495,13 +435,10 @@
"_active": true,
"_components": [
{
"__id__": 12
"__id__": 10
},
{
"__id__": 13
},
{
"__id__": 14
"__id__": 11
}
],
"_prefab": null,
@ -557,7 +494,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 9
},
"_enabled": true,
"_materials": [
@ -590,7 +527,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 9
},
"_enabled": true,
"_color": {
@ -603,33 +540,6 @@
"_width": 4,
"_id": "a8HiFt9pBAEK25pfIPlINu"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 80,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "90OgtuTF5IHKM7kXftU4Aw"
},
{
"__type__": "cc.Canvas",
"_name": "",

View File

@ -16,13 +16,8 @@ export default class SceneAdapter extends cc.Component {
this.destroy();
return;
}
if (cvs.designResolution.width < cvs.designResolution.height) {
cvs.fitWidth = true;
cvs.fitHeight = false;
} else {
cvs.fitWidth = false;
cvs.fitHeight = true;
}
cvs.fitWidth = true;
cvs.fitHeight = true;
this.resize();
cc.view.setResizeCallback(this.resize.bind(this));
}

View File

@ -4,7 +4,42 @@
true
]
],
"excluded-modules": [],
"excluded-modules": [
"Button",
"Collider",
"Dynamic Atlas",
"DragonBones",
"EditBox",
"Graphics",
"Geom Utils",
"Intersection",
"Layout",
"Mask",
"MotionStreak",
"NodePool",
"Native Socket",
"Physics",
"PageView",
"PageViewIndicator",
"ProgressBar",
"ParticleSystem",
"RichText",
"Slider",
"ScrollBar",
"ScrollView",
"Spine Skeleton",
"StudioComponent",
"Toggle",
"TiledMap",
"VideoPlayer",
"WebView",
"3D",
"3D Primitive",
"3D Physics/cannon.js",
"3D Physics/Builtin",
"3D Particle",
"SafeArea"
],
"group-list": [
"default"
],
@ -20,7 +55,7 @@
"width": 960,
"height": 640
},
"last-module-event-record-time": 1695092167763,
"last-module-event-record-time": 1696156367234,
"assets-sort-type": "name",
"facebook": {
"enable": false,