From 8686d50a6c96b52194e6d44405464034df1fc6f4 Mon Sep 17 00:00:00 2001 From: pan Date: Thu, 15 Aug 2024 10:53:40 +0800 Subject: [PATCH] dd --- assets/resources/common/prefab/window.prefab | 186 +- assets/resources/game/heros/hero_card.prefab | 1234 +++++++++++- assets/resources/game/map/map_rpg.prefab | 3 + assets/resources/gui/gui.plist.meta | 4 +- assets/resources/gui/role_controller.prefab | 1720 +++++++++++------ assets/script/game/map/CardController.ts | 14 +- assets/script/game/map/RefController.ts | 41 + assets/script/game/map/RefController.ts.meta | 1 + assets/script/game/map/view/MapViewScene.ts | 4 + .../script/game/monster/HeroCardViewComp.ts | 78 +- 10 files changed, 2596 insertions(+), 689 deletions(-) create mode 100644 assets/script/game/map/RefController.ts create mode 100644 assets/script/game/map/RefController.ts.meta diff --git a/assets/resources/common/prefab/window.prefab b/assets/resources/common/prefab/window.prefab index b98e2c66..8c458dbe 100644 --- a/assets/resources/common/prefab/window.prefab +++ b/assets/resources/common/prefab/window.prefab @@ -3,13 +3,13 @@ "__type__": "cc.Prefab", "_name": "window", "_objFlags": 0, + "__editorExtras__": {}, "_native": "", "data": { "__id__": 1 }, "optimizationPolicy": 0, - "persistent": false, - "asyncLoadAssets": false + "persistent": false }, { "__type__": "cc.Node", @@ -65,6 +65,7 @@ "y": 1, "z": 1 }, + "_mobility": 0, "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", @@ -78,6 +79,7 @@ "__type__": "cc.Node", "_name": "lab_title", "_objFlags": 0, + "__editorExtras__": {}, "_parent": { "__id__": 1 }, @@ -100,7 +102,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 114, + "y": 143.597, "z": 0 }, "_lrot": { @@ -116,6 +118,7 @@ "y": 1, "z": 1 }, + "_mobility": 0, "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", @@ -129,6 +132,7 @@ "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 2 }, @@ -156,6 +160,7 @@ "__type__": "cc.Label", "_name": "", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 2 }, @@ -190,6 +195,29 @@ "_isUnderline": false, "_underlineHeight": 2, "_cacheMode": 1, + "_enableOutline": false, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, "_id": "" }, { @@ -200,6 +228,7 @@ "__type__": "110c8vEd5NEPL/N9meGQnaX", "_name": "lab_ok", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 2 }, @@ -223,12 +252,16 @@ "asset": { "__id__": 0 }, - "fileId": "42TIPOfhhM7ra85tXw74QR" + "fileId": "42TIPOfhhM7ra85tXw74QR", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null }, { "__type__": "cc.Node", "_name": "lab_content", "_objFlags": 0, + "__editorExtras__": {}, "_parent": { "__id__": 1 }, @@ -267,6 +300,7 @@ "y": 1, "z": 1 }, + "_mobility": 0, "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", @@ -280,6 +314,7 @@ "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 10 }, @@ -307,6 +342,7 @@ "__type__": "cc.Label", "_name": "", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 10 }, @@ -341,6 +377,29 @@ "_isUnderline": false, "_underlineHeight": 2, "_cacheMode": 1, + "_enableOutline": false, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, "_id": "" }, { @@ -351,6 +410,7 @@ "__type__": "110c8vEd5NEPL/N9meGQnaX", "_name": "lab_ok", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 10 }, @@ -374,12 +434,16 @@ "asset": { "__id__": 0 }, - "fileId": "7fk7nP/NJBI7+oI60VkgZO" + "fileId": "7fk7nP/NJBI7+oI60VkgZO", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null }, { "__type__": "cc.Node", "_name": "btn_ok", "_objFlags": 0, + "__editorExtras__": {}, "_parent": { "__id__": 1 }, @@ -425,6 +489,7 @@ "y": 1, "z": 1 }, + "_mobility": 0, "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", @@ -438,6 +503,7 @@ "__type__": "cc.Node", "_name": "lab_ok", "_objFlags": 0, + "__editorExtras__": {}, "_parent": { "__id__": 18 }, @@ -476,6 +542,7 @@ "y": 1, "z": 1 }, + "_mobility": 0, "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", @@ -489,6 +556,7 @@ "__type__": "cc.UITransform", "_name": "Label", "_objFlags": 0, + "__editorExtras__": {}, "node": { "__id__": 19 }, @@ -516,6 +584,7 @@ "__type__": "cc.Label", "_name": "Label