Commit 9726de09 authored by haiyoucuv's avatar haiyoucuv

上传

parent 461cd9ec
...@@ -5,8 +5,7 @@ export default class Module extends Component { ...@@ -5,8 +5,7 @@ export default class Module extends Component {
static skin: string = ""; static skin: string = "";
static group: string | string[] = null; static group: string | string[] = null;
static data: any = {}; data: any = {};
btnEnable(btn: Node | Button, enable) { btnEnable(btn: Node | Button, enable) {
if (btn instanceof Node) { if (btn instanceof Node) {
......
...@@ -10,8 +10,6 @@ const {ccclass, property} = _decorator; ...@@ -10,8 +10,6 @@ const {ccclass, property} = _decorator;
export default class Panel extends Module { export default class Panel extends Module {
view: { [key in string]: Node } = {}; view: { [key in string]: Node } = {};
data: any = {};
onLoad() { onLoad() {
this.view = loadAllObject(this.node); this.view = loadAllObject(this.node);
} }
......
...@@ -120,15 +120,13 @@ export class UIMgr { ...@@ -120,15 +120,13 @@ export class UIMgr {
this.showWaiting(); this.showWaiting();
await Promise.all(loadPs); await Promise.all(loadPs);
cls.data = data;
director.loadScene( director.loadScene(
skin, skin,
() => { (err, scene) => {
scene.getComponentInChildren(cls).data = data;
this.hideWaiting(); this.hideWaiting();
this.currentScene = cls;
}, },
() => { () => {
this.currentScene.data = {};
} }
); );
} }
......
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e54f963e-153d-4415-8658-23d769a0dd22",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "37f872cd-1838-4d13-bf3a-629e80253a7d",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "37f872cd-1838-4d13-bf3a-629e80253a7d@6c48a",
"displayName": "nx",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "37f872cd-1838-4d13-bf3a-629e80253a7d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "37f872cd-1838-4d13-bf3a-629e80253a7d@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f6afd569-5b48-454d-9593-fc4c950d4fcc",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f6afd569-5b48-454d-9593-fc4c950d4fcc@6c48a",
"displayName": "ny",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "f6afd569-5b48-454d-9593-fc4c950d4fcc",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f6afd569-5b48-454d-9593-fc4c950d4fcc@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "36783286-d8a5-4373-b683-77b8fe757f21",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "36783286-d8a5-4373-b683-77b8fe757f21@6c48a",
"displayName": "nz",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "36783286-d8a5-4373-b683-77b8fe757f21",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "36783286-d8a5-4373-b683-77b8fe757f21@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e164b9b2-9061-47d5-9c85-a173957515af",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e164b9b2-9061-47d5-9c85-a173957515af@6c48a",
"displayName": "px",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "e164b9b2-9061-47d5-9c85-a173957515af",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e164b9b2-9061-47d5-9c85-a173957515af@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c3a8d0e3-ea4b-4330-b05e-2fd09877a3b4",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c3a8d0e3-ea4b-4330-b05e-2fd09877a3b4@6c48a",
"displayName": "py",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "c3a8d0e3-ea4b-4330-b05e-2fd09877a3b4",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c3a8d0e3-ea4b-4330-b05e-2fd09877a3b4@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "90f7b4db-20c2-45eb-ab96-4b8901e97688",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "90f7b4db-20c2-45eb-ab96-4b8901e97688@6c48a",
"displayName": "pz",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "90f7b4db-20c2-45eb-ab96-4b8901e97688",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "90f7b4db-20c2-45eb-ab96-4b8901e97688@6c48a"
}
}
Author
======
This is the work of Emil Persson, aka Humus.
http://www.humus.name
humus@comhem.se
Legal stuff
===========
This work is free and may be used by anyone for any purpose
and may be distributed freely to anyone using any distribution
media or distribution method as long as this file is included.
Distribution without this file is allowed if it's distributed
with free non-commercial software; however, fair credit of the
original author is expected.
Any commercial distribution of this software requires the written
approval of Emil Persson.
{
"ver": "1.0.1",
"importer": "text",
"imported": true,
"uuid": "180afe3b-d50f-4b99-b43c-bcc0d35acfd1",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.4",
"importer": "texture-cube",
"imported": true,
"uuid": "c6083191-4eaf-4d74-b1f9-6167553c3d42",
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isRGBE": false,
"top": "c3a8d0e3-ea4b-4330-b05e-2fd09877a3b4",
"bottom": "f6afd569-5b48-454d-9593-fc4c950d4fcc",
"front": "90f7b4db-20c2-45eb-ab96-4b8901e97688",
"back": "36783286-d8a5-4373-b683-77b8fe757f21",
"right": "e164b9b2-9061-47d5-9c85-a173957515af",
"left": "37f872cd-1838-4d13-bf3a-629e80253a7d",
"mipBakeMode": 1
}
}
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005@6c48a",
"displayName": "image 2186",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005@f9941",
"displayName": "image 2186",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2232,
"height": 1104,
"rawWidth": 2232,
"rawHeight": 1104,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-1116,
-552,
0,
1116,
-552,
0,
-1116,
552,
0,
1116,
552,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1104,
2232,
1104,
0,
0,
2232,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-1116,
-552,
0
],
"maxPos": [
1116,
552,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d02a1f5b-9f28-4c2d-8ce1-aa4cc40de005@6c48a"
}
}
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"_effectAsset": {
"__uuid__": "c8f66d17-351a-48da-a12c-0212d28575c4",
"__expectedType__": "cc.EffectAsset"
},
"_techIdx": 0,
"_defines": [
{
"USE_ALBEDO_MAP": true
},
{},
{},
{},
{},
{}
],
"_states": [
{
"rasterizerState": {
"cullMode": 1
},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
},
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
},
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
},
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
},
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
},
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
}
],
"_props": [
{
"mainTexture": {
"__uuid__": "8b776c5e-532f-45d7-a783-93b47251f011@6c48a",
"__expectedType__": "cc.Texture2D"
}
},
{},
{},
{},
{},
{}
]
}
\ No newline at end of file
{
"ver": "1.0.21",
"importer": "material",
"imported": true,
"uuid": "a24252d5-a8d0-44c7-9dd1-fbf929ada8b3",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "scene",
"imported": true,
"uuid": "b2977ab2-3b5c-4a8c-9a36-c01acd6f8ccc",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8b776c5e-532f-45d7-a783-93b47251f011",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8b776c5e-532f-45d7-a783-93b47251f011@6c48a",
"displayName": "spruit_sunrise_4k",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8b776c5e-532f-45d7-a783-93b47251f011",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8b776c5e-532f-45d7-a783-93b47251f011@6c48a"
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cave Cruiser</title>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true" />
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<!-- force webkit on 360 -->
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
<!-- force edge on IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="msapplication-tap-highlight" content="no">
<!-- force full screen on some browser -->
<meta name="full-screen" content="yes" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<!--fix fireball/issues/3568 -->
<!--<meta name="browsermode" content="application">-->
<meta name="x5-page-mode" content="app">
<!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/assets/plugin/zepto.min.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/assets/plugin/declare-process.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/style.css" />
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/custom.css" />
<script type="text/javascript" src="https://appx/web-view.min.js"></script>
</head>
<body style="overflow: hidden;">
<div id="GameDiv" cc_exact_fit_screen="true" style="overflow: hidden;">
<div id="Cocos3dGameContainer">
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="99"></canvas>
</div>
</div>
<!-- Polyfills bundle. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script>
System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1724913254908/index.js').catch(function (err) {
console.error(err);
})
</script>
</body>
</html>
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