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__": 5
}, },
{ {
"__id__": 8 "__id__": 7
}, },
{ {
"__id__": 11 "__id__": 9
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 12
}, },
{ {
"__id__": 16 "__id__": 13
} }
], ],
"_prefab": null, "_prefab": null,
@ -248,9 +248,6 @@
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 6
},
{
"__id__": 7
} }
], ],
"_prefab": null, "_prefab": null,
@ -333,33 +330,6 @@
"_atlas": null, "_atlas": null,
"_id": "d9tJr+3jpGA66qiPl1XnSz" "_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", "__type__": "cc.Node",
"_name": "Ball", "_name": "Ball",
@ -371,10 +341,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 8
},
{
"__id__": 10
} }
], ],
"_prefab": null, "_prefab": null,
@ -430,7 +397,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -457,33 +424,6 @@
"_atlas": null, "_atlas": null,
"_id": "8fWn4KeXROfJvlWO4E6nB4" "_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", "__type__": "cc.Node",
"_name": "Title", "_name": "Title",
@ -495,13 +435,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 10
}, },
{ {
"__id__": 13 "__id__": 11
},
{
"__id__": 14
} }
], ],
"_prefab": null, "_prefab": null,
@ -557,7 +494,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -590,7 +527,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"_color": { "_color": {
@ -603,33 +540,6 @@
"_width": 4, "_width": 4,
"_id": "a8HiFt9pBAEK25pfIPlINu" "_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", "__type__": "cc.Canvas",
"_name": "", "_name": "",

View File

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

View File

@ -4,7 +4,42 @@
true 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": [ "group-list": [
"default" "default"
], ],
@ -20,7 +55,7 @@
"width": 960, "width": 960,
"height": 640 "height": 640
}, },
"last-module-event-record-time": 1695092167763, "last-module-event-record-time": 1696156367234,
"assets-sort-type": "name", "assets-sort-type": "name",
"facebook": { "facebook": {
"enable": false, "enable": false,