From f40ff033c2fed1d2b20097af8c646d56abef6c55 Mon Sep 17 00:00:00 2001 From: pan Date: Tue, 1 Sep 2026 10:18:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=88=98=E6=96=97?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=A5=96=E5=8A=B1=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增结算奖励配置常量,定义金币、天赋经验、英雄碎片的发放规则与胜利加成系数 2. 新增RewardItemComp通用奖励条目组件,实现数量展示与弹跳入场动画 3. 为VictoryComp添加结算奖励逻辑:计算发放奖励、渲染奖励UI并添加入场动画效果 4. 新增金币、天赋经验奖励预制体并配置到结算弹窗中 5. 调整ui3.plist的图片边框参数适配新奖励图标 --- assets/resources/gui/element/clips.prefab | 3260 +++++------------ .../gui/element/reward_item_exp.prefab | 899 +++++ .../gui/element/reward_item_exp.prefab.meta | 13 + .../gui/element/reward_item_gold.prefab | 734 ++++ .../gui/element/reward_item_gold.prefab.meta | 13 + assets/resources/gui/element/victory.prefab | 520 ++- assets/resources/gui/ui3.plist.meta | 64 +- assets/script/game/common/config/GameSet.ts | 17 + assets/script/game/common/config/ItemSet.ts | 0 .../script/game/common/config/ItemSet.ts.meta | 9 + assets/script/game/map/RewardItemComp.ts | 60 + assets/script/game/map/RewardItemComp.ts.meta | 9 + assets/script/game/map/VictoryComp.ts | 194 +- 13 files changed, 3492 insertions(+), 2300 deletions(-) create mode 100644 assets/resources/gui/element/reward_item_exp.prefab create mode 100644 assets/resources/gui/element/reward_item_exp.prefab.meta create mode 100644 assets/resources/gui/element/reward_item_gold.prefab create mode 100644 assets/resources/gui/element/reward_item_gold.prefab.meta create mode 100644 assets/script/game/common/config/ItemSet.ts create mode 100644 assets/script/game/common/config/ItemSet.ts.meta create mode 100644 assets/script/game/map/RewardItemComp.ts create mode 100644 assets/script/game/map/RewardItemComp.ts.meta diff --git a/assets/resources/gui/element/clips.prefab b/assets/resources/gui/element/clips.prefab index 82d81956..3c1d000b 100644 --- a/assets/resources/gui/element/clips.prefab +++ b/assets/resources/gui/element/clips.prefab @@ -22,17 +22,23 @@ "__id__": 2 }, { - "__id__": 199 + "__id__": 48 + }, + { + "__id__": 64 } ], "_active": true, "_components": [ { - "__id__": 215 + "__id__": 70 + }, + { + "__id__": 72 } ], "_prefab": { - "__id__": 217 + "__id__": 74 }, "_lpos": { "__type__": "cc.Vec3", @@ -76,32 +82,29 @@ "__id__": 3 }, { - "__id__": 24 + "__id__": 11 }, { - "__id__": 58 + "__id__": 19 }, { - "__id__": 92 + "__id__": 27 }, { - "__id__": 126 - }, - { - "__id__": 160 + "__id__": 35 } ], "_active": true, "_components": [ { - "__id__": 194 + "__id__": 43 }, { - "__id__": 196 + "__id__": 45 } ], "_prefab": { - "__id__": 198 + "__id__": 47 }, "_lpos": { "__type__": "cc.Vec3", @@ -118,8 +121,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.7, - "y": 0.7, + "x": 1, + "y": 1, "z": 1 }, "_mobility": 0, @@ -134,54 +137,190 @@ }, { "__type__": "cc.Node", + "_name": "yellow", "_objFlags": 0, + "__editorExtras__": {}, "_parent": { "__id__": 2 }, - "_prefab": { - "__id__": 4 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 3 - }, - "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" - }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 5 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "75H+OTxYlE5bEJKOODIeZy", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, { "__id__": 6 }, { "__id__": 8 - }, - { - "__id__": 9 - }, - { - "__id__": 10 - }, - { - "__id__": 11 - }, + } + ], + "_prefab": { + "__id__": 10 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "48IShfJ4lMybQEteSRx+ph" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@55671", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8aEgSl4MhA1LVHk8Ho+IuJ" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "83A0OXHZFOSYgZxZhg6Aow" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c8ZLrmQK1LdIrgcZEVN6io", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ { "__id__": 12 }, @@ -190,265 +329,532 @@ }, { "__id__": 16 - }, - { - "__id__": 18 - }, - { - "__id__": 20 - }, - { - "__id__": 22 } ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 7 + "_prefab": { + "__id__": 18 }, - "propertyPath": [ - "_name" - ], - "value": "yellow" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 7 - }, - "propertyPath": [ - "_lpos" - ], - "value": { + "_lpos": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 7 }, - "propertyPath": [ - "_lrot" - ], - "value": { + "_lrot": { "__type__": "cc.Quat", "x": 0, "y": 0, "z": 0, "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 7 }, - "propertyPath": [ - "_euler" - ], - "value": { + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 7 }, - "propertyPath": [ - "_active" - ], - "value": true + "_id": "" }, { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { "__id__": 13 }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 98.28571428571429, - "height": 98.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 17 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 106.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 19 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { + "_contentSize": { "__type__": "cc.Size", "width": 114.28571428571429, "height": 114.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 21 }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -20.321428571428573, - "y": 22.321428571428573, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 23 + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 44 - } + "_id": "" }, { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] + "__type__": "cc.CompPrefabInfo", + "fileId": "ec9r6kmgJLkqCTfFaDydhm" }, { - "__type__": "cc.Node", + "__type__": "cc.Sprite", + "_name": "", "_objFlags": 0, - "_parent": { - "__id__": 2 + "__editorExtras__": {}, + "node": { + "__id__": 11 }, - "_prefab": { - "__id__": 25 + "_enabled": true, + "__prefab": { + "__id__": 15 }, - "__editorExtras__": {} + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@1a1e9", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "65UNFj4+RJlLsg3nDSs9B1" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "02F1ccGidLHLJz0YUdAypE" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 24 - }, - "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" - }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 26 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "869HLE0JRL4I+BR5m5i/q+", - "prefabRootNode": { "__id__": 1 }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ + "asset": { + "__id__": 0 + }, + "fileId": "26AfX9NQNFxbHph2tkkFfm", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "red", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ { - "__id__": 27 + "__id__": 20 }, { - "__id__": 29 + "__id__": 22 + }, + { + "__id__": 24 + } + ], + "_prefab": { + "__id__": 26 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 21 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 114.28571428571429, + "height": 114.28571428571429 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "732JizrfNPD6V6FO0p1Rzx" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 23 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@36a81", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8cfxvhsLpIMbGqthTRJJtt" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 25 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6/Q1WzptO4qZYpE5PFYef" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "055X5rUXVHobOXT3YBytP/", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "green", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 28 }, { "__id__": 30 }, - { - "__id__": 31 - }, { "__id__": 32 - }, - { - "__id__": 34 - }, + } + ], + "_prefab": { + "__id__": 34 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 27 + }, + "_enabled": true, + "__prefab": { + "__id__": 29 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 114.28571428571429, + "height": 114.28571428571429 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "98NWCmvS1Dd5SaBvJrIUGG" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 27 + }, + "_enabled": true, + "__prefab": { + "__id__": 31 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@f0088", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "00koz8eyJE8Z744+poaZ0V" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 27 + }, + "_enabled": true, + "__prefab": { + "__id__": 33 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6burOYRp1KUanrgI1iyBzc" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "39X6hwFUtBca0VW5e3Vmtf", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "purple", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": false, + "_components": [ { "__id__": 36 }, @@ -457,1989 +863,164 @@ }, { "__id__": 40 - }, - { - "__id__": 42 - }, - { - "__id__": 44 - }, - { - "__id__": 46 - }, - { - "__id__": 47 - }, - { - "__id__": 49 - }, - { - "__id__": 51 - }, - { - "__id__": 53 - }, - { - "__id__": 55 - }, - { - "__id__": 56 } ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 28 + "_prefab": { + "__id__": 42 }, - "propertyPath": [ - "_name" - ], - "value": "blue" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 28 - }, - "propertyPath": [ - "_lpos" - ], - "value": { + "_lpos": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 28 }, - "propertyPath": [ - "_lrot" - ], - "value": { + "_lrot": { "__type__": "cc.Quat", "x": 0, "y": 0, "z": 0, "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 28 }, - "propertyPath": [ - "_euler" - ], - "value": { + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 33 }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 34, - "g": 71, - "b": 121, - "a": 255 - } + "_id": "" }, { - "__type__": "cc.TargetInfo", - "localID": [ - "d67w0LWpZGDIOKFRdClHxZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { "__id__": 35 }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 113, - "g": 211, - "b": 220, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08nT29mQpCLKxN2SVjI3cu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { + "_enabled": true, + "__prefab": { "__id__": 37 }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 56, - "g": 154, - "b": 201, - "a": 255 - } + "_contentSize": { + "__type__": "cc.Size", + "width": 114.28571428571429, + "height": 114.28571428571429 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" }, { - "__type__": "cc.TargetInfo", - "localID": [ - "8dxUNBKXNN1ZD0UUu6Y+ek" - ] + "__type__": "cc.CompPrefabInfo", + "fileId": "331FFlhwdFVKgLZ44JZ3pq" }, { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": { "__id__": 39 }, - "propertyPath": [ - "_active" - ], - "value": true + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@0b126", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" }, { - "__type__": "cc.TargetInfo", - "localID": [ - "3fzhiI2P9Os7ruQJg+Awdq" - ] + "__type__": "cc.CompPrefabInfo", + "fileId": "18GK1ndS9DPpbajeYKcLfj" }, { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": { "__id__": 41 }, - "propertyPath": [ - "_active" - ], - "value": true + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" }, { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 43 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "a6a/8vYCBFl5hxt8lfklSI" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 45 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3994XTlbxF7YxpLo9qDrmy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 28 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 48 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 50 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 98.28571428571429, - "height": 98.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 52 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 106.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 54 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 114.28571428571429, - "height": 114.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 41 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -20.321428571428573, - "y": 22.321428571428573, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 57 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 44 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] - }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_prefab": { - "__id__": 59 - }, - "__editorExtras__": {} + "__type__": "cc.CompPrefabInfo", + "fileId": "96fYwRxMJBMrrH8Qukp575" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 58 - }, - "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" - }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 60 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "14qCv6uDpLp5b/y2VFbtmi", - "prefabRootNode": { "__id__": 1 }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 61 - }, - { - "__id__": 63 - }, - { - "__id__": 64 - }, - { - "__id__": 65 - }, - { - "__id__": 66 - }, - { - "__id__": 68 - }, - { - "__id__": 70 - }, - { - "__id__": 72 - }, - { - "__id__": 74 - }, - { - "__id__": 76 - }, - { - "__id__": 78 - }, - { - "__id__": 80 - }, - { - "__id__": 81 - }, - { - "__id__": 83 - }, - { - "__id__": 85 - }, - { - "__id__": 87 - }, - { - "__id__": 89 - }, - { - "__id__": 90 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 62 - }, - "propertyPath": [ - "_name" - ], - "value": "red" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 62 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 62 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 62 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 67 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 124, - "g": 25, - "b": 25, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "d67w0LWpZGDIOKFRdClHxZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 69 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 194, - "g": 53, - "b": 66, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08nT29mQpCLKxN2SVjI3cu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 71 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 194, - "g": 53, - "b": 66, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "8dxUNBKXNN1ZD0UUu6Y+ek" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 73 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3fzhiI2P9Os7ruQJg+Awdq" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 75 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 77 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "a6a/8vYCBFl5hxt8lfklSI" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 79 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3994XTlbxF7YxpLo9qDrmy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 62 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 82 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 84 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 98.28571428571429, - "height": 98.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 86 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 106.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 88 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 114.28571428571429, - "height": 114.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 75 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -20.321428571428573, - "y": 22.321428571428573, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 91 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 44 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] - }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_prefab": { - "__id__": 93 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 92 - }, "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" + "__id__": 0 }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 94 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "a3rA0Y8plL+ZsYUQlgiM9b", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 95 - }, - { - "__id__": 97 - }, - { - "__id__": 98 - }, - { - "__id__": 99 - }, - { - "__id__": 100 - }, - { - "__id__": 102 - }, - { - "__id__": 104 - }, - { - "__id__": 106 - }, - { - "__id__": 108 - }, - { - "__id__": 110 - }, - { - "__id__": 112 - }, - { - "__id__": 114 - }, - { - "__id__": 115 - }, - { - "__id__": 117 - }, - { - "__id__": 119 - }, - { - "__id__": 121 - }, - { - "__id__": 123 - }, - { - "__id__": 124 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 96 - }, - "propertyPath": [ - "_name" - ], - "value": "green" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 96 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 96 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 96 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 101 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 33, - "g": 112, - "b": 91, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "d67w0LWpZGDIOKFRdClHxZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 103 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 87, - "g": 213, - "b": 116, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08nT29mQpCLKxN2SVjI3cu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 105 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 19, - "g": 165, - "b": 84, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "8dxUNBKXNN1ZD0UUu6Y+ek" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 107 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3fzhiI2P9Os7ruQJg+Awdq" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 109 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 111 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "a6a/8vYCBFl5hxt8lfklSI" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 113 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3994XTlbxF7YxpLo9qDrmy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 96 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 116 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 118 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 98.28571428571429, - "height": 98.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 120 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 106.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 122 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 114.28571428571429, - "height": 114.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 109 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -20.321428571428573, - "y": 22.321428571428573, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 125 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 44 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] - }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_prefab": { - "__id__": 127 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 126 - }, - "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" - }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 128 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "84np8hkE9EHbKDN0Qi/dXU", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 129 - }, - { - "__id__": 131 - }, - { - "__id__": 132 - }, - { - "__id__": 133 - }, - { - "__id__": 134 - }, - { - "__id__": 136 - }, - { - "__id__": 138 - }, - { - "__id__": 140 - }, - { - "__id__": 142 - }, - { - "__id__": 144 - }, - { - "__id__": 146 - }, - { - "__id__": 148 - }, - { - "__id__": 149 - }, - { - "__id__": 151 - }, - { - "__id__": 153 - }, - { - "__id__": 155 - }, - { - "__id__": 157 - }, - { - "__id__": 158 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 130 - }, - "propertyPath": [ - "_name" - ], - "value": "purple" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 130 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 130 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 130 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 135 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 73, - "g": 19, - "b": 107, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "d67w0LWpZGDIOKFRdClHxZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 137 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 203, - "g": 99, - "b": 250, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08nT29mQpCLKxN2SVjI3cu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 139 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 163, - "g": 56, - "b": 213, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "8dxUNBKXNN1ZD0UUu6Y+ek" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 141 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3fzhiI2P9Os7ruQJg+Awdq" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 143 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 145 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "a6a/8vYCBFl5hxt8lfklSI" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 147 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3994XTlbxF7YxpLo9qDrmy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 130 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 150 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 152 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 98.28571428571429, - "height": 98.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 154 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 106.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 156 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 114.28571428571429, - "height": 114.28571428571429 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 143 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -20.321428571428573, - "y": 22.321428571428573, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 159 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 106.28571428571429, - "height": 44 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] - }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_prefab": { - "__id__": 161 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 160 - }, - "asset": { - "__uuid__": "56a982e0-00ae-4ea4-a412-b54666d0e78b", - "__expectedType__": "cc.Prefab" - }, - "fileId": "ee9HwyGFhDTarF97iXfEHu", - "instance": { - "__id__": 162 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "af66DcR3pNdYWadBzpEGYr", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 163 - }, - { - "__id__": 165 - }, - { - "__id__": 166 - }, - { - "__id__": 167 - }, - { - "__id__": 168 - }, - { - "__id__": 170 - }, - { - "__id__": 172 - }, - { - "__id__": 174 - }, - { - "__id__": 176 - }, - { - "__id__": 178 - }, - { - "__id__": 180 - }, - { - "__id__": 182 - }, - { - "__id__": 183 - }, - { - "__id__": 185 - }, - { - "__id__": 187 - }, - { - "__id__": 189 - }, - { - "__id__": 191 - }, - { - "__id__": 192 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 164 - }, - "propertyPath": [ - "_name" - ], - "value": "white" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "ee9HwyGFhDTarF97iXfEHu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 164 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 164 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 164 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 169 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "d67w0LWpZGDIOKFRdClHxZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 171 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 226, - "g": 226, - "b": 226, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "08nT29mQpCLKxN2SVjI3cu" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 173 - }, - "propertyPath": [ - "_color" - ], - "value": { - "__type__": "cc.Color", - "r": 190, - "g": 190, - "b": 190, - "a": 255 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "8dxUNBKXNN1ZD0UUu6Y+ek" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 175 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3fzhiI2P9Os7ruQJg+Awdq" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 177 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "75w8fK3CJCSbcfUF7Bzbl3" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 179 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "a6a/8vYCBFl5hxt8lfklSI" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 181 - }, - "propertyPath": [ - "_active" - ], - "value": true - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "3994XTlbxF7YxpLo9qDrmy" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 164 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 184 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 100, - "height": 115 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "afvZZKnn9Fb5obG6jVyKta" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 186 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 184, - "height": 214 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "16PS2L0JBEEoS7TAT1HRoZ" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 188 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 192, - "height": 222 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "59WtR+lBhBiIzfpFWU1cG8" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 190 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 200, - "height": 230 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "6fsOId08VB9bqPtzuiF8/t" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 177 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -41.75, - "y": 51.25, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 193 - }, - "propertyPath": [ - "_contentSize" - ], - "value": { - "__type__": "cc.Size", - "width": 192, - "height": 44 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "1f2dXBc41DFp8cNetX1car" - ] + "fileId": "70ZddLq2NFqofk/VJD14wD", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null }, { "__type__": "cc.UITransform", @@ -2451,12 +1032,12 @@ }, "_enabled": true, "__prefab": { - "__id__": 195 + "__id__": 44 }, "_contentSize": { "__type__": "cc.Size", - "width": 57.142857142857146, - "height": 57.142857142857146 + "width": 70, + "height": 70 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2479,7 +1060,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 197 + "__id__": 46 }, "_alignFlags": 45, "_target": null, @@ -2528,26 +1109,26 @@ }, "_children": [ { - "__id__": 200 + "__id__": 49 } ], "_active": true, "_components": [ { - "__id__": 206 + "__id__": 55 }, { - "__id__": 208 + "__id__": 57 }, { - "__id__": 210 + "__id__": 59 }, { - "__id__": 212 + "__id__": 61 } ], "_prefab": { - "__id__": 214 + "__id__": 63 }, "_lpos": { "__type__": "cc.Vec3", @@ -2584,20 +1165,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 199 + "__id__": 48 }, "_children": [], "_active": true, "_components": [ { - "__id__": 201 + "__id__": 50 }, { - "__id__": 203 + "__id__": 52 } ], "_prefab": { - "__id__": 205 + "__id__": 54 }, "_lpos": { "__type__": "cc.Vec3", @@ -2614,8 +1195,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": -0.8, - "y": 0.8, + "x": -1, + "y": 1, "z": 1 }, "_mobility": 0, @@ -2634,11 +1215,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 200 + "__id__": 49 }, "_enabled": true, "__prefab": { - "__id__": 202 + "__id__": 51 }, "_contentSize": { "__type__": "cc.Size", @@ -2662,11 +1243,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 200 + "__id__": 49 }, "_enabled": true, "__prefab": { - "__id__": 204 + "__id__": 53 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2723,16 +1304,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 199 + "__id__": 48 }, "_enabled": true, "__prefab": { - "__id__": 207 + "__id__": 56 }, "_contentSize": { "__type__": "cc.Size", - "width": 32, - "height": 32 + "width": 45, + "height": 45 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2751,11 +1332,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 199 + "__id__": 48 }, "_enabled": true, "__prefab": { - "__id__": 209 + "__id__": 58 }, "_type": 3, "_inverted": false, @@ -2773,18 +1354,18 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 199 + "__id__": 48 }, - "_enabled": true, + "_enabled": false, "__prefab": { - "__id__": 211 + "__id__": 60 }, "_alignFlags": 45, "_target": null, - "_left": 4, - "_right": 4, - "_top": 4, - "_bottom": 4, + "_left": 20, + "_right": 20, + "_top": 20, + "_bottom": 20, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -2809,11 +1390,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 199 + "__id__": 48 }, "_enabled": true, "__prefab": { - "__id__": 213 + "__id__": 62 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2864,6 +1445,165 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 65 + }, + { + "__id__": 67 + } + ], + "_prefab": { + "__id__": 69 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 23.92, + "y": -23.919, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 64 + }, + "_enabled": true, + "__prefab": { + "__id__": 66 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 26.24609375, + "height": 29.2 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "99GXVOOhxLv6HYFzXD8qI7" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 64 + }, + "_enabled": true, + "__prefab": { + "__id__": 68 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "99", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 20, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "bckAjBBO9Ob5COKSUTDEcI" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "840izZ1o5N84e/O1jFl7Gl", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -2874,12 +1614,12 @@ }, "_enabled": true, "__prefab": { - "__id__": 216 + "__id__": 71 }, "_contentSize": { "__type__": "cc.Size", - "width": 40, - "height": 40 + "width": 70, + "height": 70 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2892,6 +1632,30 @@ "__type__": "cc.CompPrefabInfo", "fileId": "b6/HPesdpG8ZsWB4vg6xf2" }, + { + "__type__": "dc82382UetAX4NhcCfrScim", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 73 + }, + "icon_node": { + "__id__": 49 + }, + "BG_node": { + "__id__": 2 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "22fxGwqQBLg72wNXwpgyFq" + }, { "__type__": "cc.PrefabInfo", "root": { @@ -2902,26 +1666,6 @@ }, "fileId": "24rlgXRJ9AHLGpMW+aYyEx", "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": [ - { - "__id__": 160 - }, - { - "__id__": 126 - }, - { - "__id__": 92 - }, - { - "__id__": 58 - }, - { - "__id__": 24 - }, - { - "__id__": 3 - } - ] + "targetOverrides": null } ] \ No newline at end of file diff --git a/assets/resources/gui/element/reward_item_exp.prefab b/assets/resources/gui/element/reward_item_exp.prefab new file mode 100644 index 00000000..f568a8d8 --- /dev/null +++ b/assets/resources/gui/element/reward_item_exp.prefab @@ -0,0 +1,899 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "reward_item_exp", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "reward_item_exp", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 16 + }, + { + "__id__": 22 + }, + { + "__id__": 28 + } + ], + "_active": true, + "_components": [ + { + "__id__": 34 + }, + { + "__id__": 36 + } + ], + "_prefab": { + "__id__": 38 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 81.456, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + } + ], + "_prefab": { + "__id__": 15 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "ItemFrame02_Single_Gray", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0af0qvhONENbQ7VGnZDica" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@5eaff", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "86TCikdfVHgpQMxXNQIMPm" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "78iixvi+NHTYPTyPR5T8YM" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "cbkcNX6spFZoV0Wq+QuzM7", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6Ux/HhHdBfZQMd0NVreIX" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_alignFlags": 45, + "_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": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c0B1iavUxAUZrad/TzzzDB" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "bbIROaQytLa7tkpPKzVoid", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 17 + }, + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 21 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.4, + "y": 0.4, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 16 + }, + "_enabled": true, + "__prefab": { + "__id__": 18 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 102, + "height": 107 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "54EYuEBjxM4YnwDzq8nUpt" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 16 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d9047", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "59y6ViOVNPd7M4d+rJy8fK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "81a6ino0dLi4Kxb/NpuPYy", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 27 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 34.0146484375, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cbewm4XtZP7IxLCF2+Hb4s" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "EXP", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 15, + "_fontSize": 15, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "12FmeZwFdHMJ78eJSLCEZN" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4e1AoZvgpLJ7nR1HuAmFZy", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 29 + }, + { + "__id__": 31 + } + ], + "_prefab": { + "__id__": 33 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 18.627, + "y": -19.839, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 26.24609375, + "height": 31.72 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d08UCcdkFBFpbDsvDVeW9I" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "99", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 22, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dcMaL7S59EZ45JC8ZAcdFG" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7bVF5TCMhCxYHg/COrstD8", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 35 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "71tWa+8EFHdJy9NyDH9eU6" + }, + { + "__type__": "7e48dbWsJxANrnlAANRAYby", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 37 + }, + "count_label": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0fByt84dpKPYZlPZfpn8Um" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "47Sc4S8E5EfJ3uZtG97byB", + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/element/reward_item_exp.prefab.meta b/assets/resources/gui/element/reward_item_exp.prefab.meta new file mode 100644 index 00000000..a7cca1c9 --- /dev/null +++ b/assets/resources/gui/element/reward_item_exp.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "db18158c-588a-49ea-a224-cace29d5c912", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "reward_item_exp" + } +} diff --git a/assets/resources/gui/element/reward_item_gold.prefab b/assets/resources/gui/element/reward_item_gold.prefab new file mode 100644 index 00000000..aec697cf --- /dev/null +++ b/assets/resources/gui/element/reward_item_gold.prefab @@ -0,0 +1,734 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "reward_item_gold", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "reward_item_gold", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 16 + }, + { + "__id__": 22 + } + ], + "_active": true, + "_components": [ + { + "__id__": 28 + }, + { + "__id__": 30 + } + ], + "_prefab": { + "__id__": 32 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + } + ], + "_prefab": { + "__id__": 15 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "ItemFrame02_Single_Gray", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5, + "y": 0.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6etF0z2bNMvZfcKMKcf+XE" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@5eaff", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f4BQyrtixM7aRzKRI0+fN4" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_alignFlags": 45, + "_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": 60, + "_originalHeight": 62, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ebBYK2S0hLEKtcTPzjiZWA" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "73lTA8SbdPp5PUMKKaQbr1", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "aakHNvSzpGfIL+hjM94BUL" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_alignFlags": 45, + "_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": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "44cGz2I3hE+7DP4PaG+vpL" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "22JrmAuP9Mc5nhUqnn0DQH", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 17 + }, + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 21 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 16 + }, + "_enabled": true, + "__prefab": { + "__id__": 18 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 38, + "height": 42 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9fYt43CI5LVKv3KVmz2xQI" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 16 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@a9695", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "caMrqV9NVKuLdbw5U1X9/n" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "04m+B47pZBYJC4kS+1Rl8u", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 27 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 18.627, + "y": -19.839, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 26.24609375, + "height": 31.72 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "19sM4nlv1KaY+OIHJ5tlYo" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "99", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 22, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e1h5mbeZBFw6EOg39xn44T" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "61yc2n1yhL7pOYMzvC2Tyn", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 29 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7855LM0WhDAZgzfFAZdwDU" + }, + { + "__type__": "7e48dbWsJxANrnlAANRAYby", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 31 + }, + "count_label": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ad8TyCDhhOg6n3u1MOLxT+" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/element/reward_item_gold.prefab.meta b/assets/resources/gui/element/reward_item_gold.prefab.meta new file mode 100644 index 00000000..7ddf4692 --- /dev/null +++ b/assets/resources/gui/element/reward_item_gold.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "f802de61-c1b5-4575-ab88-2e6fc4e15e5c", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "reward_item_gold" + } +} diff --git a/assets/resources/gui/element/victory.prefab b/assets/resources/gui/element/victory.prefab index 48b41bd0..33570e5d 100644 --- a/assets/resources/gui/element/victory.prefab +++ b/assets/resources/gui/element/victory.prefab @@ -44,25 +44,28 @@ }, { "__id__": 150 + }, + { + "__id__": 168 } ], "_active": true, "_components": [ { - "__id__": 168 + "__id__": 198 }, { - "__id__": 170 + "__id__": 200 }, { - "__id__": 172 + "__id__": 202 }, { - "__id__": 174 + "__id__": 204 } ], "_prefab": { - "__id__": 176 + "__id__": 206 }, "_lpos": { "__type__": "cc.Vec3", @@ -3868,6 +3871,481 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "Rewards", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 169 + }, + { + "__id__": 177 + }, + { + "__id__": 185 + } + ], + "_active": true, + "_components": [ + { + "__id__": 193 + }, + { + "__id__": 195 + } + ], + "_prefab": { + "__id__": 197 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -227.118, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 170 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 + }, + "asset": { + "__uuid__": "f802de61-c1b5-4575-ab88-2e6fc4e15e5c", + "__expectedType__": "cc.Prefab" + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "instance": { + "__id__": 171 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "b5AF11DKdNponYuZ5McsDz", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 172 + }, + { + "__id__": 174 + }, + { + "__id__": 175 + }, + { + "__id__": 176 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 173 + }, + "propertyPath": [ + "_name" + ], + "value": "reward_item_gold" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "10z6GxEehAebPrefUJTgkq" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 173 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": -90, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 173 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 173 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 178 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 177 + }, + "asset": { + "__uuid__": "db18158c-588a-49ea-a224-cace29d5c912", + "__expectedType__": "cc.Prefab" + }, + "fileId": "47Sc4S8E5EfJ3uZtG97byB", + "instance": { + "__id__": 179 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "25MhRHMVhGS7j//M5snvkH", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 180 + }, + { + "__id__": 182 + }, + { + "__id__": 183 + }, + { + "__id__": 184 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 181 + }, + "propertyPath": [ + "_name" + ], + "value": "reward_item_exp" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "47Sc4S8E5EfJ3uZtG97byB" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 181 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 181 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 181 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 186 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 185 + }, + "asset": { + "__uuid__": "4b8fb686-b649-4525-9aae-df0e7369205b", + "__expectedType__": "cc.Prefab" + }, + "fileId": "24rlgXRJ9AHLGpMW+aYyEx", + "instance": { + "__id__": 187 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "d2BEWXbMlGFIsn1hlQMVR9", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 188 + }, + { + "__id__": 190 + }, + { + "__id__": 191 + }, + { + "__id__": 192 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 189 + }, + "propertyPath": [ + "_name" + ], + "value": "clips" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "24rlgXRJ9AHLGpMW+aYyEx" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 189 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 90, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 189 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 189 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 168 + }, + "_enabled": true, + "__prefab": { + "__id__": 194 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 250, + "height": 200 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7dsZEiP41NhL4M2/NjpZCI" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 168 + }, + "_enabled": true, + "__prefab": { + "__id__": 196 + }, + "_resizeMode": 1, + "_layoutType": 1, + "_cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_startAxis": 0, + "_paddingLeft": 0, + "_paddingRight": 0, + "_paddingTop": 0, + "_paddingBottom": 0, + "_spacingX": 20, + "_spacingY": 0, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 0, + "_constraintNum": 2, + "_affectedByScale": false, + "_isAlign": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b9EzIUlHpPlpvFLBGZOkY3" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "e84cB5sbVA+JkeMVQTgwOQ", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -3878,7 +4356,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 169 + "__id__": 199 }, "_contentSize": { "__type__": "cc.Size", @@ -3906,7 +4384,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 171 + "__id__": 201 }, "rank_icon": { "__id__": 106 @@ -3932,6 +4410,21 @@ "__uuid__": "12df63de-cda7-4be2-8e23-ea387fbba6f5", "__expectedType__": "cc.Prefab" }, + "rewards_container": { + "__id__": 168 + }, + "clip_prefab": { + "__uuid__": "4b8fb686-b649-4525-9aae-df0e7369205b", + "__expectedType__": "cc.Prefab" + }, + "reward_gold_prefab": { + "__uuid__": "f802de61-c1b5-4575-ab88-2e6fc4e15e5c", + "__expectedType__": "cc.Prefab" + }, + "reward_exp_prefab": { + "__uuid__": "db18158c-588a-49ea-a224-cace29d5c912", + "__expectedType__": "cc.Prefab" + }, "_id": "" }, { @@ -3948,7 +4441,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 173 + "__id__": 203 }, "_alignFlags": 45, "_target": null, @@ -3984,7 +4477,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 175 + "__id__": 205 }, "_id": "" }, @@ -4004,6 +4497,15 @@ "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": [ + { + "__id__": 185 + }, + { + "__id__": 177 + }, + { + "__id__": 169 + }, { "__id__": 77 } diff --git a/assets/resources/gui/ui3.plist.meta b/assets/resources/gui/ui3.plist.meta index 3cbb1ea8..97c3c568 100644 --- a/assets/resources/gui/ui3.plist.meta +++ b/assets/resources/gui/ui3.plist.meta @@ -530,10 +530,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3612,10 +3612,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3658,10 +3658,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3704,10 +3704,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3750,10 +3750,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3796,10 +3796,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3842,10 +3842,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, @@ -3888,10 +3888,10 @@ "height": 62, "rawWidth": 60, "rawHeight": 62, - "borderTop": 0, - "borderBottom": 0, - "borderLeft": 0, - "borderRight": 0, + "borderTop": 31, + "borderBottom": 31, + "borderLeft": 30, + "borderRight": 30, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5, diff --git a/assets/script/game/common/config/GameSet.ts b/assets/script/game/common/config/GameSet.ts index 9d9072f0..2e043802 100644 --- a/assets/script/game/common/config/GameSet.ts +++ b/assets/script/game/common/config/GameSet.ts @@ -211,3 +211,20 @@ export function getLvColor(lv: number): Color { * 用于 BG_node 下子节点的显隐切换 */ export const CARD_LV_BG_COLORS: string[] = ["green", "blue", "purple", "yellow", "red"]; + +/** + * 战斗结算奖励配置(每局结束后发放:英雄碎片 + 金币 + 天赋经验)。 + * 数值均为"失败基准",胜利时整体乘以 victory_multiplier。 + */ +export const VICTORY_REWARD_SET = { + /** 金币:base + wave_win_count × per_wave */ + gold: { base: 100, per_wave: 50 }, + /** 天赋经验:base + wave_win_count × per_wave */ + talent_exp: { base: 20, per_wave: 10 }, + /** 每个出场英雄保底碎片数 */ + played_fragment: 1, + /** 随机英雄碎片数量(发放给随机抽中的 1 个英雄) */ + random_fragment: 2, + /** 胜利加成系数(失败 1.0) */ + victory_multiplier: 1.2, +}; diff --git a/assets/script/game/common/config/ItemSet.ts b/assets/script/game/common/config/ItemSet.ts new file mode 100644 index 00000000..e69de29b diff --git a/assets/script/game/common/config/ItemSet.ts.meta b/assets/script/game/common/config/ItemSet.ts.meta new file mode 100644 index 00000000..2697259d --- /dev/null +++ b/assets/script/game/common/config/ItemSet.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "18fae899-4daa-406a-806a-2857fad8b648", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/RewardItemComp.ts b/assets/script/game/map/RewardItemComp.ts new file mode 100644 index 00000000..14bee80c --- /dev/null +++ b/assets/script/game/map/RewardItemComp.ts @@ -0,0 +1,60 @@ +/** + * @file RewardItemComp.ts + * @description 结算奖励条目组件(UI 视图层) + * + * 挂载在 reward_item.prefab 上,用于展示单个非英雄碎片类奖励(金币 / 天赋经验等)。 + * 图标在编辑器内直接配置好(Sprite 静态图),组件只负责: + * 1. 设置数量文本("+N")。 + * 2. 播放入场弹跳动画(scale 0 → 1,backOut)。 + * + * 英雄碎片奖励不使用本组件,而是复用 clips.prefab + ChipComp(见 VictoryComp.renderRewards)。 + */ +import { _decorator, Label, tween, v3, Tween } from "cc"; +import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; +import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; + +const { ccclass, property } = _decorator; + +/** 奖励条目入场动画时长(秒) */ +const ENTER_DURATION = 0.35; + +/** + * RewardItemComp —— 单个结算奖励条目视图组件 + */ +@ccclass('RewardItemComp') +@ecs.register('RewardItemComp', false) +export class RewardItemComp extends CCComp { + + @property({ type: Label, tooltip: "数量文本(count_label)" }) + count_label: Label = null!; + + /** + * 设置奖励数量并播放入场动画。 + * @param count 奖励数量(展示为 "+N") + */ + setReward(count: number) { + if (this.count_label) { + this.count_label.string = `+${count}`; + } + this.playEnter(); + } + + /** 入场动画:从 0 缩放弹至 1 */ + private playEnter() { + Tween.stopAllByTarget(this.node); + this.node.setScale(0, 0, 1); + tween(this.node) + .to(ENTER_DURATION, { scale: v3(1, 1, 1) }, { easing: 'backOut' }) + .start(); + } + + protected onDestroy(): void { + Tween.stopAllByTarget(this.node); + super.onDestroy(); + } + + /** ECS 组件移除时销毁节点 */ + reset() { + this.node.destroy(); + } +} diff --git a/assets/script/game/map/RewardItemComp.ts.meta b/assets/script/game/map/RewardItemComp.ts.meta new file mode 100644 index 00000000..33b93f63 --- /dev/null +++ b/assets/script/game/map/RewardItemComp.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "7e48d6d6-b09c-4036-b9e5-0003510186f2", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/VictoryComp.ts b/assets/script/game/map/VictoryComp.ts index 833e378b..cb098d0d 100644 --- a/assets/script/game/map/VictoryComp.ts +++ b/assets/script/game/map/VictoryComp.ts @@ -16,6 +16,11 @@ import { getRankByScore, getNextRank, getRankProgress, ScoreRankInfo } from "../ import { LangPrefix, lang, langf } from "../common/LangUtil"; import { mLogger } from "../common/Logger"; import { UIID } from "../common/config/GameUIConfig"; +import { VICTORY_REWARD_SET } from "../common/config/GameSet"; +import { HeroInfo } from "../common/config/heroSet"; +import { HeroAttrsComp } from "../hero/HeroAttrsComp"; +import { ChipComp } from "./ChipComp"; +import { RewardItemComp } from "./RewardItemComp"; const { ccclass, property } = _decorator; @@ -23,6 +28,28 @@ const { ccclass, property } = _decorator; const SCORE_TWEEN_DURATION = 1.6; /** 段位晋升动效时长(秒) */ const RANK_UP_DURATION = 0.5; +/** 奖励条目逐个入场的间隔(秒) */ +const REWARD_ENTER_INTERVAL = 0.12; + +/** 单个英雄碎片奖励 */ +interface FragmentReward { + /** 英雄模板 uuid */ + uuid: number; + /** 碎片数量 */ + count: number; + /** 是否为本局出场英雄(否则为随机英雄) */ + isPlayed: boolean; +} + +/** 结算奖励结果 */ +interface RewardResult { + /** 发放的金币数量 */ + gold: number; + /** 发放的天赋经验数量 */ + talentExp: number; + /** 英雄碎片奖励列表 */ + fragments: FragmentReward[]; +} /** * VictoryComp —— 战斗结算弹窗视图组件 @@ -69,6 +96,20 @@ export class VictoryComp extends CCComp { @property({ type: Prefab, tooltip: "亮点成就标签预制体" }) highlight_prefab: Prefab = null!; + // ======================== 结算奖励绑定 ======================== + + @property({ type: Node, tooltip: "结算奖励条目容器(rewards_container,横向 Layout)" }) + rewards_container: Node = null!; + + @property({ type: Prefab, tooltip: "英雄碎片条目预制体(clips.prefab,挂 ChipComp,num 子节点显示数量)" }) + clip_prefab: Prefab = null!; + + @property({ type: Prefab, tooltip: "金币奖励条目预制体(reward_item_gold.prefab,挂 RewardItemComp)" }) + reward_gold_prefab: Prefab = null!; + + @property({ type: Prefab, tooltip: "天赋经验奖励条目预制体(reward_item_exp.prefab,挂 RewardItemComp)" }) + reward_exp_prefab: Prefab = null!; + /** 调试日志开关 */ debugMode: boolean = false; /** 奖励等级(预留) */ @@ -84,6 +125,11 @@ export class VictoryComp extends CCComp { diamond: 0 } + // ======================== 结算奖励(运行时) ======================== + + /** 本次结算实际发放的奖励结果(供渲染) */ + private _rewardResult: RewardResult = null!; + // ======================== 动画状态 ======================== /** 动画期间实时显示的分数(tween 驱动) */ @@ -128,6 +174,9 @@ export class VictoryComp extends CCComp { // 计算总分并写入历史纪录 this.calculateTotalScore(); + // 计算并发放结算奖励(英雄碎片 + 金币 + 天赋经验) + this.grantRewards(!!args.victory); + // 每次战斗结束都标记数据脏并触发云端同步(防抖 3 秒后自动上传) smc.updateCloudData(); @@ -136,6 +185,9 @@ export class VictoryComp extends CCComp { // 渲染亮点标签 this.renderHighlights(); + + // 渲染结算奖励条目 + this.renderRewards(); } // ======================== 分数计算(逻辑层,保持不变) ======================== @@ -440,6 +492,145 @@ export class VictoryComp extends CCComp { .start(); } + // ======================== 结算奖励 ======================== + + /** + * 收集本局出场英雄的 uuid 列表(去重)。 + * 来源 = 存活英雄(heroGrid 中实体的 hero_uuid)+ 死亡英雄快照(dead_heroes)。 + */ + private collectPlayedHeroUuids(): number[] { + const uuidSet = new Set(); + + // 存活英雄:heroGrid 存 eid,反查实体属性 + for (const eid of smc.mission.heroGrid) { + if (eid < 0) continue; + const entity = ecs.getEntityByEid(eid); + const attrs = entity?.get(HeroAttrsComp); + if (attrs && attrs.fac === 0) { + uuidSet.add(attrs.hero_uuid); + } + } + + // 死亡英雄快照 + const deadList = smc.mission.dead_heroes || []; + for (const rec of deadList) { + if (rec && rec.uuid > 0) uuidSet.add(rec.uuid); + } + + return [...uuidSet]; + } + + /** + * 从全英雄池中随机抽取 1 个英雄 uuid(优先未出场,避免与出场碎片重复)。 + */ + private pickRandomHeroUuid(exclude: Set): number { + const all = Object.keys(HeroInfo).map(k => Number(k)).filter(u => u > 0); + const candidates = all.filter(u => !exclude.has(u)); + const pool = candidates.length > 0 ? candidates : all; + if (pool.length === 0) return 0; + return pool[Math.floor(Math.random() * pool.length)]; + } + + /** + * 计算并发放结算奖励,结果存入 _rewardResult。 + * @param isVictory 是否胜利(胜利整体 ×1.2) + */ + private grantRewards(isVictory: boolean) { + const s = smc.vmdata.scores; + const cfg = VICTORY_REWARD_SET; + const mult = isVictory ? cfg.victory_multiplier : 1.0; + const wave = Math.max(0, s.wave_win_count || 0); + + // 1. 金币 / 天赋经验(按波次计算,胜利加成) + const gold = Math.floor((cfg.gold.base + wave * cfg.gold.per_wave) * mult); + const talentExp = Math.floor((cfg.talent_exp.base + wave * cfg.talent_exp.per_wave) * mult); + + // 2. 英雄碎片:出场英雄各保底 + 1 个随机英雄 + const playedUuids = this.collectPlayedHeroUuids(); + const playedSet = new Set(playedUuids); + const fragments: FragmentReward[] = playedUuids.map(uuid => ({ + uuid, + count: cfg.played_fragment, + isPlayed: true, + })); + const randomUuid = this.pickRandomHeroUuid(playedSet); + if (randomUuid > 0) { + fragments.push({ uuid: randomUuid, count: cfg.random_fragment, isPlayed: false }); + } + + // 3. 落地发放 + if (gold > 0) { + smc.data.gold = (smc.data.gold || 0) + gold; // 持久化(存档口径) + smc.updateGold(gold); // 驱动 MVVM 展示 + } + if (talentExp > 0) { + smc.addTalentExp(talentExp); + } + for (const f of fragments) { + smc.addHeroFragments(f.uuid, f.count); + } + + this._rewardResult = { gold, talentExp, fragments }; + + mLogger.log(this.debugMode, 'VictoryComp', '[VictoryComp] 结算奖励发放', { + isVictory, wave, gold, talentExp, fragments, + }); + } + + /** + * 渲染结算奖励条目(金币 / 天赋经验 / 英雄碎片),逐个弹跳入场。 + */ + private renderRewards() { + if (!this.rewards_container || !this._rewardResult) return; + this.rewards_container.removeAllChildren(); + + const items: Node[] = []; + const r = this._rewardResult; + + // 金币条目 + if (this.reward_gold_prefab && r.gold > 0) { + const node = instantiate(this.reward_gold_prefab); + node.getComponent(RewardItemComp)?.setReward(r.gold); + items.push(node); + } + + // 天赋经验条目 + if (this.reward_exp_prefab && r.talentExp > 0) { + const node = instantiate(this.reward_exp_prefab); + node.getComponent(RewardItemComp)?.setReward(r.talentExp); + items.push(node); + } + + // 英雄碎片条目(复用 clips.prefab + ChipComp,num 子节点显示数量) + if (this.clip_prefab) { + for (const f of r.fragments) { + const node = instantiate(this.clip_prefab); + node.getComponent(ChipComp)?.setHeroByUuid(f.uuid); + const numLabel = node.getChildByName("num")?.getComponent(Label); + if (numLabel) { + numLabel.string = `+${f.count}`; + numLabel.node.active = true; + } + items.push(node); + } + } + + // 逐个入场(初始隐藏,间隔弹出) + items.forEach((node, i) => { + node.active = false; + this.rewards_container.addChild(node); + this.scheduleOnce(() => { + node.active = true; + // 碎片条目没有 RewardItemComp,手动播一次弹跳 + if (!node.getComponent(RewardItemComp)) { + Tween.stopAllByTarget(node); + node.setScale(0, 0, 1); + tween(node).to(0.35, { scale: v3(1, 1, 1) }, { easing: 'backOut' }).start(); + } + }, REWARD_ENTER_INTERVAL * (i + 1)); + }); + } + // ======================== 亮点成就 ======================== /** @@ -524,9 +715,10 @@ export class VictoryComp extends CCComp { } protected onDestroy(): void { - // 停止所有动画,防止节点销毁后 tween 回调访问无效对象 + // 停止所有动画与延迟回调,防止节点销毁后 tween/scheduleOnce 访问无效对象 if (this.rank_icon) Tween.stopAllByTarget(this.rank_icon.node); if (this.gain_label) Tween.stopAllByTarget(this.gain_label.node); + this.unscheduleAllCallbacks(); super.onDestroy(); mLogger.log(this.debugMode, 'VictoryComp', "释放胜利界面"); }