Commit 3865d0ef authored by 吴江涛's avatar 吴江涛

推错分支了我勒个豆

parent 9cd2022c
......@@ -115,7 +115,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 375,
"y": 811.9999999999999,
"y": 812.0000000000001,
"z": 0
},
"_lrot": {
......@@ -200,19 +200,19 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 811.9999999999999,
"_orthoHeight": 812.0000000000001,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 11,
"g": 5,
"b": 79,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
......@@ -514,7 +514,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1623.9999999999998
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -766,7 +766,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1623.9999999999998
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1893,7 +1893,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1623.9999999999998
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -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,13 +88,16 @@
},
{
"__id__": 66
},
{
"__id__": 67
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 375,
"y": 812,
"y": 812.0000000000001,
"z": 0
},
"_lrot": {
......@@ -182,19 +182,19 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 812,
"_orthoHeight": 812.0000000000001,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 12,
"g": 7,
"b": 105,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
......@@ -394,7 +394,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 649.6,
"y": 649.6000000000001,
"z": 0
},
"_lrot": {
......@@ -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": "35WyWsczVKRI2V/y/XeIgz"
},
{
"__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": "d5S4O235RIVqd8MW6vgRv6"
},
{
"__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": "8fh0D89UZHLYaRFDd/Mr3l"
},
{
"__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": "0dCk6NeB9FyLeiJUfpi5eX"
},
{
"__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": "d6G/GhUvFGyoAqlNFvblJM"
},
{
"__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": "802DqhXCFC4ZiYk92q9dQy"
},
{
"__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": "19cE5w1ZZE1bnTFyub7Vu1"
},
{
"__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": "c7V9dyxd5Is50mEU8FnEhk"
},
{
"__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": "49E4V5xWZG4528jFRoUvNb"
},
{
"__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,
......@@ -2381,7 +2414,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -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
......
......@@ -102,7 +102,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 375,
"y": 812,
"y": 812.0000000000001,
"z": 0
},
"_lrot": {
......@@ -187,19 +187,19 @@
"_priority": 50000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 812,
"_orthoHeight": 812.0000000000001,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 11,
"g": 5,
"b": 79,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
......@@ -251,7 +251,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 812,
"y": 812.0000000000001,
"z": 0
},
"_lrot": {
......@@ -1005,7 +1005,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -96,7 +96,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 375,
"y": 812,
"y": 812.0000000000001,
"z": 0
},
"_lrot": {
......@@ -181,14 +181,14 @@
"_priority": 6553,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 812,
"_orthoHeight": 812.0000000000001,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 11,
"g": 5,
"b": 79,
"a": 255
},
"_depth": 1,
......@@ -393,7 +393,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 57.69999999999993,
"y": 57.700000000000045,
"z": 0
},
"_lrot": {
......@@ -962,7 +962,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 749.9999999999998,
"height": 1624
"height": 1624.0000000000002
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
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();
......
......@@ -49,6 +49,7 @@
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background-color: #0b054f;
}
/* Remove spin of input type number */
......
......@@ -20,7 +20,7 @@
<script type="text/javascript" src="https://appx/web-view.min.js"></script>
</head>
<body style="overflow: hidden;">
<body style="overflow: hidden; background-color: #0b054f;">
<%- include(cocosToolBar, {config: config}) %>
<div id="content" class="content" style="overflow: hidden;">
<div class="contentWrap">
......
......@@ -3,7 +3,7 @@
"config": {
"images": [],
"sceneUUID": {},
"scene": "7b5de2a0-8504-46ba-9019-37a3548ce8e1"
"scene": "9e293cde-e27b-4902-808b-e884f3e9da32"
},
"show": false
}
......@@ -965,31 +965,6 @@
},
"scale": 0.2579971130259416
},
"04224ebd-adcd-4112-8010-da14ed5ea48a": {
"position": {
"x": 42.3255019022979,
"y": 1153.7660120435216,
"z": 5000
},
"rotation": {
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"viewCenter": {
"x": 0,
"y": 0,
"z": 0
},
"contentRect": {
"x": -166.933695420623,
"y": 700.6500967736237,
"width": 174.2456896551724,
"height": 377.3
},
"scale": 0.5337486321925865
},
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01": {
"position": {
"x": 25.781532652817866,
......@@ -1190,31 +1165,6 @@
},
"scale": 0.8081151640227069
},
"9e293cde-e27b-4902-808b-e884f3e9da32": {
"position": {
"x": 478.3405003429166,
"y": 856.0198583323003,
"z": 5000
},
"rotation": {
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"viewCenter": {
"x": 0,
"y": 0,
"z": 0
},
"contentRect": {
"x": -270.588262040965,
"y": -175.96859377147348,
"width": 508,
"height": 700
},
"scale": 0.339151081861917
},
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6": {
"position": {
"x": 101.18938926939029,
......@@ -1289,6 +1239,56 @@
"height": 0
},
"scale": 0.22375626773199253
},
"9e293cde-e27b-4902-808b-e884f3e9da32": {
"position": {
"x": 478.3405003429166,
"y": 856.0198583323003,
"z": 5000
},
"rotation": {
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"viewCenter": {
"x": 0,
"y": 0,
"z": 0
},
"contentRect": {
"x": -270.5882620409651,
"y": -175.96859377147348,
"width": 508,
"height": 700
},
"scale": 0.339151081861917
},
"04224ebd-adcd-4112-8010-da14ed5ea48a": {
"position": {
"x": 559.0130866172899,
"y": 1474.782036419733,
"z": 5000
},
"rotation": {
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"viewCenter": {
"x": 0,
"y": 0,
"z": 0
},
"contentRect": {
"x": 213.94271763296143,
"y": 727.5896641123327,
"width": 174.2456896551724,
"height": 377.3
},
"scale": 0.2524784874575621
}
},
"camera-uuids": [
......@@ -1329,7 +1329,6 @@
"e006bcbd-d4b2-4d6e-b86d-b98a06cf9cc7",
"1ce93d96-f621-4162-9f51-fbfb066ca238",
"063b0464-e893-46fd-95f9-73a41f19fd25",
"04224ebd-adcd-4112-8010-da14ed5ea48a",
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01",
"50650cb7-af92-4041-93d7-e8d9a7fa446d",
"8d656426-fb3d-4f9c-a332-22103459c2d4",
......@@ -1338,10 +1337,11 @@
"7cae554b-bec7-45e7-a1d4-ec5e84e5688c",
"b6ce0806-8608-4249-a153-720d6ed0bd0f",
"0fe5b446-0dca-460d-99f1-cf13098f7777",
"9e293cde-e27b-4902-808b-e884f3e9da32",
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6",
"58af8588-6a46-4cd2-a3e1-23f925f77095",
"7b5de2a0-8504-46ba-9019-37a3548ce8e1"
"7b5de2a0-8504-46ba-9019-37a3548ce8e1",
"9e293cde-e27b-4902-808b-e884f3e9da32",
"04224ebd-adcd-4112-8010-da14ed5ea48a"
],
"camera": {
"color": [
......
......@@ -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