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

daily_20241109_fit

parent 9cd2022c
This diff is collapsed.
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