diff --git a/assets/resources/gui/element/reward_item_diamond.prefab b/assets/resources/gui/element/reward_item_diamond.prefab new file mode 100644 index 00000000..f2dd416e --- /dev/null +++ b/assets/resources/gui/element/reward_item_diamond.prefab @@ -0,0 +1,740 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "reward_item_diamond", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "reward_item_diamond", + "_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": 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": 112, + "height": 116 + }, + "_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@d2cb1", + "__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": "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": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ad8TyCDhhOg6n3u1MOLxT+" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/element/reward_item_diamond.prefab.meta b/assets/resources/gui/element/reward_item_diamond.prefab.meta new file mode 100644 index 00000000..a5e9b8cd --- /dev/null +++ b/assets/resources/gui/element/reward_item_diamond.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "781262ca-120d-4286-8885-c2ecd7ce7a2a", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "reward_item_diamond" + } +} diff --git a/assets/resources/gui/element/reward_item_silver.prefab b/assets/resources/gui/element/reward_item_silver.prefab new file mode 100644 index 00000000..69b228d6 --- /dev/null +++ b/assets/resources/gui/element/reward_item_silver.prefab @@ -0,0 +1,740 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "reward_item_silver", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "reward_item_silver", + "_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": 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": 112, + "height": 116 + }, + "_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@4b5bf", + "__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": "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": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ad8TyCDhhOg6n3u1MOLxT+" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/element/reward_item_silver.prefab.meta b/assets/resources/gui/element/reward_item_silver.prefab.meta new file mode 100644 index 00000000..126eb5c7 --- /dev/null +++ b/assets/resources/gui/element/reward_item_silver.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "20ae7600-8171-4f6f-8acf-144ea69852c6", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "reward_item_silver" + } +} diff --git a/assets/resources/gui/element/victory.prefab b/assets/resources/gui/element/victory.prefab index 379e30ca..5a6607f5 100644 --- a/assets/resources/gui/element/victory.prefab +++ b/assets/resources/gui/element/victory.prefab @@ -52,20 +52,20 @@ "_active": true, "_components": [ { - "__id__": 198 + "__id__": 254 }, { - "__id__": 200 + "__id__": 256 }, { - "__id__": 202 + "__id__": 258 }, { - "__id__": 204 + "__id__": 260 } ], "_prefab": { - "__id__": 206 + "__id__": 262 }, "_lpos": { "__type__": "cc.Vec3", @@ -3887,23 +3887,35 @@ "__id__": 169 }, { - "__id__": 177 + "__id__": 183 }, { - "__id__": 185 + "__id__": 197 + }, + { + "__id__": 211 + }, + { + "__id__": 225 + }, + { + "__id__": 233 + }, + { + "__id__": 241 } ], "_active": true, "_components": [ { - "__id__": 193 + "__id__": 249 }, { - "__id__": 195 + "__id__": 251 } ], "_prefab": { - "__id__": 197 + "__id__": 253 }, "_lpos": { "__type__": "cc.Vec3", @@ -3980,6 +3992,15 @@ }, { "__id__": 176 + }, + { + "__id__": 177 + }, + { + "__id__": 179 + }, + { + "__id__": 181 } ], "removedComponents": [] @@ -4010,8 +4031,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": -90, - "y": 0, + "x": -180, + "y": 39.95, "z": 0 } }, @@ -4046,6 +4067,66 @@ "z": 0 } }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 178 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "7855LM0WhDAZgzfFAZdwDU" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 180 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "aakHNvSzpGfIL+hjM94BUL" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 182 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "6etF0z2bNMvZfcKMKcf+XE" + ] + }, { "__type__": "cc.Node", "_objFlags": 0, @@ -4053,14 +4134,14 @@ "__id__": 168 }, "_prefab": { - "__id__": 178 + "__id__": 184 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 177 + "__id__": 183 }, "asset": { "__uuid__": "db18158c-588a-49ea-a224-cace29d5c912", @@ -4068,7 +4149,7 @@ }, "fileId": "47Sc4S8E5EfJ3uZtG97byB", "instance": { - "__id__": 179 + "__id__": 185 }, "targetOverrides": null }, @@ -4082,16 +4163,25 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 180 + "__id__": 186 }, { - "__id__": 182 + "__id__": 188 }, { - "__id__": 183 + "__id__": 189 }, { - "__id__": 184 + "__id__": 190 + }, + { + "__id__": 191 + }, + { + "__id__": 193 + }, + { + "__id__": 195 } ], "removedComponents": [] @@ -4099,7 +4189,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 181 + "__id__": 187 }, "propertyPath": [ "_name" @@ -4115,22 +4205,22 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 181 + "__id__": 187 }, "propertyPath": [ "_lpos" ], "value": { "__type__": "cc.Vec3", - "x": 0, - "y": 0, + "x": -90, + "y": 39.95, "z": 0 } }, { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 181 + "__id__": 187 }, "propertyPath": [ "_lrot" @@ -4146,7 +4236,541 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 181 + "__id__": 187 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 192 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "71tWa+8EFHdJy9NyDH9eU6" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 194 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c6Ux/HhHdBfZQMd0NVreIX" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 196 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "0af0qvhONENbQ7VGnZDica" + ] + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 198 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 197 + }, + "asset": { + "__uuid__": "20ae7600-8171-4f6f-8acf-144ea69852c6", + "__expectedType__": "cc.Prefab" + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "instance": { + "__id__": 199 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "5ebrYMVK5BS4aXUnMsn6E0", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 200 + }, + { + "__id__": 202 + }, + { + "__id__": 203 + }, + { + "__id__": 204 + }, + { + "__id__": 205 + }, + { + "__id__": 207 + }, + { + "__id__": 209 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 201 + }, + "propertyPath": [ + "_name" + ], + "value": "reward_item_silver" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "10z6GxEehAebPrefUJTgkq" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 201 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 39.95, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 201 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 201 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 206 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "7855LM0WhDAZgzfFAZdwDU" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 208 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "aakHNvSzpGfIL+hjM94BUL" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 210 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "6etF0z2bNMvZfcKMKcf+XE" + ] + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 212 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 211 + }, + "asset": { + "__uuid__": "781262ca-120d-4286-8885-c2ecd7ce7a2a", + "__expectedType__": "cc.Prefab" + }, + "fileId": "10z6GxEehAebPrefUJTgkq", + "instance": { + "__id__": 213 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "54VZ5Ui29IMafcVZFHGS84", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 214 + }, + { + "__id__": 216 + }, + { + "__id__": 217 + }, + { + "__id__": 218 + }, + { + "__id__": 219 + }, + { + "__id__": 221 + }, + { + "__id__": 223 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 215 + }, + "propertyPath": [ + "_name" + ], + "value": "reward_item_diamond" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "10z6GxEehAebPrefUJTgkq" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 215 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 90, + "y": 39.95, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 215 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 215 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 220 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "7855LM0WhDAZgzfFAZdwDU" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 222 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 70, + "height": 70 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "aakHNvSzpGfIL+hjM94BUL" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 224 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 140, + "height": 140 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "6etF0z2bNMvZfcKMKcf+XE" + ] + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 226 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 225 + }, + "asset": { + "__uuid__": "4b8fb686-b649-4525-9aae-df0e7369205b", + "__expectedType__": "cc.Prefab" + }, + "fileId": "24rlgXRJ9AHLGpMW+aYyEx", + "instance": { + "__id__": 227 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "4b73Pey7VHlJfUforC6i8Q", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 228 + }, + { + "__id__": 230 + }, + { + "__id__": 231 + }, + { + "__id__": 232 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 229 + }, + "propertyPath": [ + "_name" + ], + "value": "clips" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "24rlgXRJ9AHLGpMW+aYyEx" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 229 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 180, + "y": 39.95, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 229 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 229 }, "propertyPath": [ "_euler" @@ -4165,14 +4789,14 @@ "__id__": 168 }, "_prefab": { - "__id__": 186 + "__id__": 234 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 185 + "__id__": 233 }, "asset": { "__uuid__": "4b8fb686-b649-4525-9aae-df0e7369205b", @@ -4180,13 +4804,13 @@ }, "fileId": "24rlgXRJ9AHLGpMW+aYyEx", "instance": { - "__id__": 187 + "__id__": 235 }, "targetOverrides": null }, { "__type__": "cc.PrefabInstance", - "fileId": "d2BEWXbMlGFIsn1hlQMVR9", + "fileId": "ffMDpF32lBIYHemnN4qaIl", "prefabRootNode": { "__id__": 1 }, @@ -4194,16 +4818,16 @@ "mountedComponents": [], "propertyOverrides": [ { - "__id__": 188 + "__id__": 236 }, { - "__id__": 190 + "__id__": 238 }, { - "__id__": 191 + "__id__": 239 }, { - "__id__": 192 + "__id__": 240 } ], "removedComponents": [] @@ -4211,12 +4835,12 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 189 + "__id__": 237 }, "propertyPath": [ "_name" ], - "value": "clips" + "value": "clips-001" }, { "__type__": "cc.TargetInfo", @@ -4227,22 +4851,22 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 189 + "__id__": 237 }, "propertyPath": [ "_lpos" ], "value": { "__type__": "cc.Vec3", - "x": 90, - "y": 0, + "x": -180, + "y": -39.95, "z": 0 } }, { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 189 + "__id__": 237 }, "propertyPath": [ "_lrot" @@ -4258,7 +4882,119 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 189 + "__id__": 237 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 168 + }, + "_prefab": { + "__id__": 242 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 241 + }, + "asset": { + "__uuid__": "4b8fb686-b649-4525-9aae-df0e7369205b", + "__expectedType__": "cc.Prefab" + }, + "fileId": "24rlgXRJ9AHLGpMW+aYyEx", + "instance": { + "__id__": 243 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "cabaO9X41A46+gpyuApoUk", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 244 + }, + { + "__id__": 246 + }, + { + "__id__": 247 + }, + { + "__id__": 248 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 245 + }, + "propertyPath": [ + "_name" + ], + "value": "clips-002" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "24rlgXRJ9AHLGpMW+aYyEx" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 245 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": -90, + "y": -39.95, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 245 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 245 }, "propertyPath": [ "_euler" @@ -4280,12 +5016,12 @@ }, "_enabled": true, "__prefab": { - "__id__": 194 + "__id__": 250 }, "_contentSize": { "__type__": "cc.Size", - "width": 250, - "height": 200 + "width": 430, + "height": 149.9 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4308,14 +5044,14 @@ }, "_enabled": true, "__prefab": { - "__id__": 196 + "__id__": 252 }, "_resizeMode": 1, - "_layoutType": 1, + "_layoutType": 3, "_cellSize": { "__type__": "cc.Size", - "width": 40, - "height": 40 + "width": 80, + "height": 80 }, "_startAxis": 0, "_paddingLeft": 0, @@ -4323,13 +5059,13 @@ "_paddingTop": 0, "_paddingBottom": 0, "_spacingX": 20, - "_spacingY": 0, + "_spacingY": 9.9, "_verticalDirection": 1, "_horizontalDirection": 0, - "_constraint": 0, - "_constraintNum": 2, + "_constraint": 2, + "_constraintNum": 5, "_affectedByScale": false, - "_isAlign": false, + "_isAlign": true, "_id": "" }, { @@ -4359,7 +5095,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 199 + "__id__": 255 }, "_contentSize": { "__type__": "cc.Size", @@ -4387,7 +5123,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 201 + "__id__": 257 }, "rank_icon": { "__id__": 106 @@ -4428,6 +5164,14 @@ "__uuid__": "db18158c-588a-49ea-a224-cace29d5c912", "__expectedType__": "cc.Prefab" }, + "reward_silver_prefab": { + "__uuid__": "20ae7600-8171-4f6f-8acf-144ea69852c6", + "__expectedType__": "cc.Prefab" + }, + "reward_diamond_prefab": { + "__uuid__": "781262ca-120d-4286-8885-c2ecd7ce7a2a", + "__expectedType__": "cc.Prefab" + }, "_id": "" }, { @@ -4444,7 +5188,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 203 + "__id__": 259 }, "_alignFlags": 45, "_target": null, @@ -4480,7 +5224,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 205 + "__id__": 261 }, "_id": "" }, @@ -4501,10 +5245,22 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": [ { - "__id__": 185 + "__id__": 241 }, { - "__id__": 177 + "__id__": 233 + }, + { + "__id__": 225 + }, + { + "__id__": 211 + }, + { + "__id__": 197 + }, + { + "__id__": 183 }, { "__id__": 169 diff --git a/assets/script/game/common/config/GameSet.ts b/assets/script/game/common/config/GameSet.ts index 57002f71..480b20d4 100644 --- a/assets/script/game/common/config/GameSet.ts +++ b/assets/script/game/common/config/GameSet.ts @@ -231,6 +231,13 @@ export const VICTORY_REWARD_SET = { played_fragment: 1, /** 随机英雄碎片数量(发放给随机抽中的 1 个英雄) */ random_fragment: 2, + /** 银币:固定发放,不分输赢 */ + silver: 3, + /** 钻石:按输赢在 [min, max] 闭区间内随机(不参与 victory_multiplier) */ + diamond: { + victory: { min: 5, max: 10 }, + defeat: { min: 1, max: 3 }, + }, /** 胜利加成系数(失败 1.0) */ victory_multiplier: 1.2, }; diff --git a/assets/script/game/map/RogueConfig.ts b/assets/script/game/map/RogueConfig.ts index bc1a37a5..0d3db0b7 100644 --- a/assets/script/game/map/RogueConfig.ts +++ b/assets/script/game/map/RogueConfig.ts @@ -200,6 +200,8 @@ export interface MonSkillSet { dead?: TriggerGrouped; /** 战斗开始触发 */ fstart?: TriggerGrouped; + /** 复活触发 */ + revive?: TriggerGrouped; /** 在技能池中的抽取权重 */ weight: number; } @@ -355,6 +357,7 @@ export interface GeneratedMonster { atked?: TriggerGrouped; dead?: TriggerGrouped; fstart?: TriggerGrouped; + revive?: TriggerGrouped; }; } diff --git a/assets/script/game/map/VictoryComp.ts b/assets/script/game/map/VictoryComp.ts index c57d2d53..7a9b1289 100644 --- a/assets/script/game/map/VictoryComp.ts +++ b/assets/script/game/map/VictoryComp.ts @@ -47,6 +47,10 @@ interface RewardResult { gold: number; /** 发放的天赋经验数量 */ talentExp: number; + /** 发放的银币数量 */ + silver: number; + /** 发放的钻石数量 */ + diamond: number; /** 英雄碎片奖励列表 */ fragments: FragmentReward[]; } @@ -110,6 +114,12 @@ export class VictoryComp extends CCComp { @property({ type: Prefab, tooltip: "天赋经验奖励条目预制体(reward_item_exp.prefab,挂 RewardItemComp)" }) reward_exp_prefab: Prefab = null!; + @property({ type: Prefab, tooltip: "银币奖励条目预制体(reward_item_silver.prefab,挂 RewardItemComp)" }) + reward_silver_prefab: Prefab = null!; + + @property({ type: Prefab, tooltip: "钻石奖励条目预制体(reward_item_diamond.prefab,挂 RewardItemComp)" }) + reward_diamond_prefab: Prefab = null!; + /** 调试日志开关 */ debugMode: boolean = false; /** 奖励等级(预留) */ @@ -557,6 +567,11 @@ export class VictoryComp extends CCComp { 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); + // 1.5 银币固定发放;钻石按输赢在 [min, max] 内随机(不吃胜利加成,避免与固定区间重复放大) + const silver = cfg.silver; + const dRange = isVictory ? cfg.diamond.victory : cfg.diamond.defeat; + const diamond = dRange.min + Math.floor(Math.random() * (dRange.max - dRange.min + 1)); + // 2. 英雄碎片:出场英雄各保底 + 1 个随机英雄 const playedUuids = this.collectPlayedHeroUuids(); const playedSet = new Set(playedUuids); @@ -574,6 +589,12 @@ export class VictoryComp extends CCComp { if (gold > 0) { smc.updateGold(gold); // 统一入口:改 data 持久层 + 镜像 vmdata + 标脏同步 } + if (silver > 0) { + smc.updateSilver(silver); + } + if (diamond > 0) { + smc.updateDiamond(diamond); + } if (talentExp > 0) { smc.addTalentExp(talentExp); } @@ -581,10 +602,10 @@ export class VictoryComp extends CCComp { smc.addHeroFragments(f.uuid, f.count); } - this._rewardResult = { gold, talentExp, fragments }; + this._rewardResult = { gold, talentExp, silver, diamond, fragments }; mLogger.log(this.debugMode, 'VictoryComp', '[VictoryComp] 结算奖励发放', { - isVictory, wave, gold, talentExp, fragments, + isVictory, wave, gold, talentExp, silver, diamond, fragments, }); } @@ -612,6 +633,20 @@ export class VictoryComp extends CCComp { items.push(node); } + // 银币条目 + if (this.reward_silver_prefab && r.silver > 0) { + const node = instantiate(this.reward_silver_prefab); + node.getComponent(RewardItemComp)?.setReward(r.silver); + items.push(node); + } + + // 钻石条目 + if (this.reward_diamond_prefab && r.diamond > 0) { + const node = instantiate(this.reward_diamond_prefab); + node.getComponent(RewardItemComp)?.setReward(r.diamond); + items.push(node); + } + // 英雄碎片条目(复用 clips.prefab + ChipComp,num 子节点显示数量) if (this.clip_prefab) { for (const f of r.fragments) {