From 6fd3482228685e780f3829b2815b47a47439e141 Mon Sep 17 00:00:00 2001 From: dgflash Date: Tue, 25 Mar 2025 23:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=9C=80=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tom Script Template Help Documentation.url | 2 ++ assets/main.scene | 2 +- assets/resources/config.json | 30 +++++++++++++++++++ assets/script/Main.ts | 4 +++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .creator/asset-template/typescript/Custom Script Template Help Documentation.url diff --git a/.creator/asset-template/typescript/Custom Script Template Help Documentation.url b/.creator/asset-template/typescript/Custom Script Template Help Documentation.url new file mode 100644 index 0000000..7606df0 --- /dev/null +++ b/.creator/asset-template/typescript/Custom Script Template Help Documentation.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template \ No newline at end of file diff --git a/assets/main.scene b/assets/main.scene index 7132f1c..84f9691 100644 --- a/assets/main.scene +++ b/assets/main.scene @@ -265,7 +265,7 @@ "_priority": 1073741824, "_fov": 45, "_fovAxis": 0, - "_orthoHeight": 362.993762993763, + "_orthoHeight": 360, "_near": 1, "_far": 2000, "_color": { diff --git a/assets/resources/config.json b/assets/resources/config.json index 6e80622..9e60651 100644 --- a/assets/resources/config.json +++ b/assets/resources/config.json @@ -14,6 +14,36 @@ "webSocketReceiveTime": 10000, "webSocketReconnetTimeOut": 3000 }, + "gui": [ + { + "name": "LayerGame", + "type": "Node" + }, + { + "name": "LayerUI", + "type": "UI" + }, + { + "name": "LayerPopUp", + "type": "PopUp" + }, + { + "name": "LayerDialog", + "type": "Dialog" + }, + { + "name": "LayerSystem", + "type": "Dialog" + }, + { + "name": "LayerNotify", + "type": "Notify" + }, + { + "name": "LayerGuide", + "type": "Node" + } + ], "language": { "default": "zh", "type": [ diff --git a/assets/script/Main.ts b/assets/script/Main.ts index fc97b6a..c8ba432 100644 --- a/assets/script/Main.ts +++ b/assets/script/Main.ts @@ -20,6 +20,10 @@ const { ccclass, property } = _decorator; export class Main extends Root { start() { if (DEBUG) profiler.showStats(); + + + oops.storage.set("AAAA", "1111"); + console.log(oops.storage.get("AAAA")); } protected run() {