Commit 1d2f60d0 authored by 吴江涛's avatar 吴江涛

daily_20241109_fit

parent 9cd2022c
......@@ -52,7 +52,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 67
"__id__": 68
},
"_id": "04224ebd-adcd-4112-8010-da14ed5ea48a"
},
......@@ -80,9 +80,6 @@
],
"_active": true,
"_components": [
{
"__id__": 63
},
{
"__id__": 64
},
......@@ -91,6 +88,9 @@
},
{
"__id__": 66
},
{
"__id__": 67
}
],
"_prefab": null,
......@@ -1401,7 +1401,7 @@
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 41,
"_alignFlags": 17,
"_target": null,
"_left": 0,
"_right": 0,
......@@ -1434,16 +1434,16 @@
"__id__": 38
},
{
"__id__": 41
"__id__": 42
}
],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 62
},
{
"__id__": 62
"__id__": 63
}
],
"_prefab": null,
......@@ -1492,12 +1492,15 @@
},
{
"__id__": 40
},
{
"__id__": 41
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 14,
"x": 0,
"y": 42,
"z": 0
},
......@@ -1585,6 +1588,36 @@
"_atlas": null,
"_id": "387o2E+xVBD4zCyVl0YC8E"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 16,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "8d+zfGet1Ggqa/9WsRokuQ"
},
{
"__type__": "cc.Node",
"_name": "start",
......@@ -1595,29 +1628,29 @@
},
"_children": [
{
"__id__": 42
"__id__": 43
},
{
"__id__": 55
"__id__": 56
}
],
"_active": true,
"_components": [
{
"__id__": 58
},
{
"__id__": 59
},
{
"__id__": 60
},
{
"__id__": 61
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 13,
"y": -108,
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
......@@ -1649,20 +1682,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 41
"__id__": 42
},
"_children": [
{
"__id__": 43
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 54
},
{
"__id__": 54
"__id__": 55
}
],
"_prefab": null,
......@@ -1701,17 +1734,17 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 42
"__id__": 43
},
"_children": [
{
"__id__": 44
"__id__": 45
},
{
"__id__": 47
"__id__": 48
},
{
"__id__": 50
"__id__": 51
}
],
"_active": true,
......@@ -1752,16 +1785,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 43
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 46
},
{
"__id__": 46
"__id__": 47
}
],
"_prefab": null,
......@@ -1792,7 +1825,7 @@
"y": -180,
"z": -19.35996391123362
},
"_id": "26AaghC3ZLQoivi8IPLLx6"
"_id": "49+JZI/39BkIQSWg+1AfFk"
},
{
"__type__": "cc.UITransform",
......@@ -1800,7 +1833,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 44
"__id__": 45
},
"_enabled": true,
"__prefab": null,
......@@ -1814,7 +1847,7 @@
"x": 0,
"y": 1
},
"_id": "4awsrLTDZPupNEWNUynBR3"
"_id": "b1keSI3vVPaa2NgTRowfi1"
},
{
"__type__": "cc.Sprite",
......@@ -1822,7 +1855,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 44
"__id__": 45
},
"_enabled": true,
"__prefab": null,
......@@ -1850,7 +1883,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "b8gMWkSXRMxK5hFXrZOP9g"
"_id": "b342bqSlxDaKI1TiITPAg+"
},
{
"__type__": "cc.Node",
......@@ -1858,16 +1891,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 43
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 49
},
{
"__id__": 49
"__id__": 50
}
],
"_prefab": null,
......@@ -1898,7 +1931,7 @@
"y": 180,
"z": 0
},
"_id": "8d9MTuN+hJCqWfWMTAH874"
"_id": "363eukOkxIHZ0HPcuU18O6"
},
{
"__type__": "cc.UITransform",
......@@ -1906,7 +1939,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 47
"__id__": 48
},
"_enabled": true,
"__prefab": null,
......@@ -1920,7 +1953,7 @@
"x": 0,
"y": 1
},
"_id": "13L7gQxkVEMLNT/oINPmvT"
"_id": "0bKAqKyelCip6LNwyDwaB1"
},
{
"__type__": "cc.Sprite",
......@@ -1928,7 +1961,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 47
"__id__": 48
},
"_enabled": true,
"__prefab": null,
......@@ -1956,7 +1989,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "6cx/20SspPX4lorFO9bDOT"
"_id": "29QzG0bcdA9aA9wRj0PIPs"
},
{
"__type__": "cc.Node",
......@@ -1964,16 +1997,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 43
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 52
},
{
"__id__": 52
"__id__": 53
}
],
"_prefab": null,
......@@ -2004,7 +2037,7 @@
"y": 180,
"z": 0
},
"_id": "23YQ0ruDNFKIjEUCfs6Dy7"
"_id": "5bwalMZfBKTJgzVCd9Mw0R"
},
{
"__type__": "cc.UITransform",
......@@ -2012,7 +2045,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 50
"__id__": 51
},
"_enabled": true,
"__prefab": null,
......@@ -2026,7 +2059,7 @@
"x": 0,
"y": 1
},
"_id": "97LgeXPmZExbhqMi3/Fimf"
"_id": "57YOiM0uJMkJTB94jnsYYP"
},
{
"__type__": "cc.Sprite",
......@@ -2034,7 +2067,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 50
"__id__": 51
},
"_enabled": true,
"__prefab": null,
......@@ -2062,7 +2095,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "5cwgvd7XlMSZ1mLwH6+aVv"
"_id": "d94+819Z9L6YJAC3dOSTMu"
},
{
"__type__": "cc.UITransform",
......@@ -2070,7 +2103,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 43
},
"_enabled": true,
"__prefab": null,
......@@ -2092,7 +2125,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 43
},
"_enabled": true,
"__prefab": null,
......@@ -2111,16 +2144,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 41
"__id__": 42
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 57
},
{
"__id__": 57
"__id__": 58
}
],
"_prefab": null,
......@@ -2159,7 +2192,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 56
},
"_enabled": true,
"__prefab": null,
......@@ -2181,7 +2214,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 56
},
"_enabled": true,
"__prefab": null,
......@@ -2220,7 +2253,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 41
"__id__": 42
},
"_enabled": true,
"__prefab": null,
......@@ -2242,15 +2275,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 41
"__id__": 42
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 9,
"_alignFlags": 17,
"_target": null,
"_left": 190,
"_right": 0,
"_top": -90,
"_top": -198,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
......@@ -2272,7 +2305,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 41
"__id__": 42
},
"_enabled": true,
"__prefab": null,
......@@ -2328,7 +2361,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"width": 100,
"height": 0
},
"_anchorPoint": {
......@@ -2348,10 +2381,10 @@
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 42,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_left": 325,
"_right": 325,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
......@@ -2448,7 +2481,7 @@
"__prefab": null,
"uiLayer": null,
"startBtn": {
"__id__": 41
"__id__": 42
},
"ruleBtn": {
"__id__": 24
......@@ -2464,28 +2497,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 68
"__id__": 69
},
"shadows": {
"__id__": 69
"__id__": 70
},
"_skybox": {
"__id__": 70
"__id__": 71
},
"fog": {
"__id__": 71
"__id__": 72
},
"octree": {
"__id__": 72
"__id__": 73
},
"skin": {
"__id__": 73
"__id__": 74
},
"lightProbeInfo": {
"__id__": 74
"__id__": 75
},
"postSettings": {
"__id__": 75
"__id__": 76
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
......
import { _decorator, assetManager, Component, Label, Node, Prefab, ProgressBar, resources, } from 'cc';
import { _decorator, assetManager, Component, Label, Node, Prefab, ProgressBar, ResolutionPolicy, resources, screen, view, } from 'cc';
import { PREVIEW } from 'cc/env';
import { UIMgr } from "../Module/UIMgr";
import { changeScene, showPanel, showToast } from "db://assets/Module/UIFast";
......@@ -33,6 +33,17 @@ export class Start extends Component {
onLoad() {
// game.frameRate = _FPS;
let winsize = screen.windowSize;
let ratio = winsize.width / winsize.height;
// let drs = view.getDesignResolutionSize();
// let drsRatio = drs.width/drs.height;
if (ratio > 0.7) {
view.setResolutionPolicy(ResolutionPolicy.FIXED_HEIGHT);
} else {
console.log("进来了");
view.setResolutionPolicy(ResolutionPolicy.FIXED_WIDTH);
}
// 预览调试时,显示性能统计面板
if (PREVIEW) {
// profiler.showStats();
......
......@@ -3,7 +3,7 @@
"config": {
"images": [],
"sceneUUID": {},
"scene": "7b5de2a0-8504-46ba-9019-37a3548ce8e1"
"scene": "04224ebd-adcd-4112-8010-da14ed5ea48a"
},
"show": false
}
......@@ -7,7 +7,7 @@
"enable": true,
"customSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=441e6f8e3e7ba0c9581ed7936daee45d"
"form": "https://creator-api.cocos.com/api/form/show?sid=c8b0f711bb162e709b868ea0782d22de"
}
},
"removeSplash": {
......@@ -16,7 +16,7 @@
"enable": true,
"removeSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=441e6f8e3e7ba0c9581ed7936daee45d"
"form": "https://creator-api.cocos.com/api/form/show?sid=c8b0f711bb162e709b868ea0782d22de"
}
}
}
......
......@@ -3,7 +3,8 @@
"general": {
"designResolution": {
"width": 750,
"height": 1624
"height": 1624,
"fitHeight": false
},
"downloadMaxConcurrency": 20,
"renderPipeline": "c7e748e8-be82-4f6f-b2c0-085b604e40e5"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment