xujialiang 4 anni fa
parent
commit
5adba93e85

+ 3 - 1
assets/Animation.meta

@@ -5,5 +5,7 @@
   "uuid": "b8843fad-3551-4904-92b0-10371ed0c9c4",
   "files": [],
   "subMetas": {},
-  "userData": {}
+  "userData": {
+    "isSubpackage": true
+  }
 }

+ 4 - 1
assets/resources/d3d.meta

@@ -5,5 +5,8 @@
   "uuid": "91785bef-f7be-41db-baac-93ab234d9afd",
   "files": [],
   "subMetas": {},
-  "userData": {}
+  "userData": {
+    "isSubpackage": false,
+    "subpackageName": ""
+  }
 }

+ 3 - 1
assets/resources/icons.meta

@@ -5,5 +5,7 @@
   "uuid": "467775b5-28ad-438a-ba15-f2cd0316bc2a",
   "files": [],
   "subMetas": {},
-  "userData": {}
+  "userData": {
+    "isSubpackage": true
+  }
 }

+ 2 - 2
assets/resources/icons/30101.png.meta

@@ -21,6 +21,7 @@
       ],
       "subMetas": {},
       "userData": {
+        "imageUuidOrDatabaseUri": "73982eea-8542-41ab-8bde-3e9b660f69a7",
         "wrapModeS": "repeat",
         "wrapModeT": "repeat",
         "minfilter": "linear",
@@ -28,8 +29,7 @@
         "mipfilter": "none",
         "premultiplyAlpha": false,
         "anisotropy": 1,
-        "isUuid": true,
-        "imageUuidOrDatabaseUri": "73982eea-8542-41ab-8bde-3e9b660f69a7"
+        "isUuid": true
       }
     },
     "f9941": {

+ 2 - 2
assets/resources/icons/30201.png.meta

@@ -21,6 +21,7 @@
       ],
       "subMetas": {},
       "userData": {
+        "imageUuidOrDatabaseUri": "bf869a92-8d99-4a79-a114-d6cc38a04b65",
         "wrapModeS": "repeat",
         "wrapModeT": "repeat",
         "minfilter": "linear",
@@ -28,8 +29,7 @@
         "mipfilter": "none",
         "premultiplyAlpha": false,
         "anisotropy": 1,
-        "isUuid": true,
-        "imageUuidOrDatabaseUri": "bf869a92-8d99-4a79-a114-d6cc38a04b65"
+        "isUuid": true
       }
     },
     "f9941": {

+ 9 - 0
assets/resources/loadingView.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "0.0.1",
+  "importer": "*",
+  "imported": true,
+  "uuid": "cc04258c-f9a3-44a1-aab2-1549b3134560",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 1 - 1
assets/resources/sounds.meta

@@ -6,6 +6,6 @@
   "files": [],
   "subMetas": {},
   "userData": {
-    "isSubpackage": false
+    "isSubpackage": true
   }
 }

+ 1 - 1
assets/scripts/games/scenes/PreloadingScene.ts

@@ -49,7 +49,7 @@ export class PreloadingScene extends Component {
     private LoadSubPackage():void{
         console.log("加载分包");
         LoadingView.single.UpdateLabel("加载分包");
-        SubPackageLoader.load(["uiRes","d3d"],(progress:number)=>{
+        SubPackageLoader.load(["uiRes","d3d", "sounds", "icons", "Animation"],(progress:number)=>{
             LoadingView.single.UpdateProgress(progress);
         },()=>{
             LoadingView.single.UpdateLabel("拉取平台数据");

+ 44 - 0
preview-template/index.ejs

@@ -0,0 +1,44 @@
+<html>
+    <head>
+        <link rel="icon" href="./favicon.ico" />
+        <meta charset="utf-8" />
+        <title><%=title%></title>
+        <meta
+            name="viewport"
+            content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"
+        />
+        <meta name="apple-mobile-web-app-capable" content="yes" />
+        <meta name="full-screen" content="yes" />
+        <meta name="screen-orientation" content="portrait" />
+        <meta name="x5-fullscreen" content="true" />
+        <meta name="360-fullscreen" content="true" />
+        <meta name="renderer" content="webkit" />
+        <meta name="force-rendering" content="webkit" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+        <link rel="stylesheet" type="text/css" href="./index.css" />
+    </head>
+    <body>
+        <%- include(cocosToolBar, {config: config}) %>
+        <div id="content" class="content">
+            <div class="contentWrap">
+                <div id="GameDiv" class="wrapper">
+                    <canvas id="GameCanvas"></canvas>
+                    <div id="splash">
+                        <div class="progress-bar stripes"><span></span></div>
+                    </div>
+                    <div id="bulletin">
+                        <div id="sceneIsEmpty" class="inner"><%=tip_sceneIsEmpty%></div>
+                    </div>
+                    <div class="error" id="error">
+                        <div class="title">Error <i>(Please open the console to see detailed errors)</i></div>
+                        <div class="error-main"></div>
+                    </div>
+                </div>
+            </div>
+            <p class="footer">
+                Created with <a href="https://www.cocos.com/products" target="_blank" title="Cocos Creator 3D">Cocos Creator 3D</a>
+            </p>
+        </div>
+        <%- include(cocosTemplate, {}) %>
+    </body>
+</html>