diff --git a/assets/resources/gui/item_box.prefab b/assets/resources/gui/item_box.prefab index 06b7e7d6..3a4e1b15 100644 --- a/assets/resources/gui/item_box.prefab +++ b/assets/resources/gui/item_box.prefab @@ -28,17 +28,14 @@ "_active": true, "_components": [ { - "__id__": 148 + "__id__": 204 }, { - "__id__": 150 - }, - { - "__id__": 152 + "__id__": 206 } ], "_prefab": { - "__id__": 154 + "__id__": 208 }, "_lpos": { "__type__": "cc.Vec3", @@ -231,16 +228,19 @@ }, { "__id__": 141 + }, + { + "__id__": 171 } ], "_active": true, "_components": [ { - "__id__": 145 + "__id__": 201 } ], "_prefab": { - "__id__": 147 + "__id__": 203 }, "_lpos": { "__type__": "cc.Vec3", @@ -1041,7 +1041,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 0, + "x": 10, "y": 0, "z": 0 }, @@ -2706,7 +2706,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 205, - "y": 50, + "y": 10, "z": 0 }, "_lrot": { @@ -3396,15 +3396,78 @@ "_parent": { "__id__": 8 }, + "_children": [ + { + "__id__": 142 + }, + { + "__id__": 148 + }, + { + "__id__": 154 + }, + { + "__id__": 162 + } + ], + "_active": true, + "_components": [ + { + "__id__": 168 + } + ], + "_prefab": { + "__id__": 170 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 205, + "y": 50, + "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": "data_bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 141 + }, "_children": [], "_active": true, "_components": [ { - "__id__": 142 + "__id__": 143 + }, + { + "__id__": 145 } ], "_prefab": { - "__id__": 144 + "__id__": 147 }, "_lpos": { "__type__": "cc.Vec3", @@ -3441,16 +3504,152 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 141 + "__id__": 142 }, "_enabled": true, "__prefab": { - "__id__": 143 + "__id__": 144 }, "_contentSize": { "__type__": "cc.Size", - "width": 100, - "height": 100 + "width": 200, + "height": 35 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b2DxG3Z29PU7MF691C9foa" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 142 + }, + "_enabled": true, + "__prefab": { + "__id__": 146 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@22385", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_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": "59hmPERoZERaxw46jMldzp" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "bcO9SN5pRLIoz7kLQNpUpW", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Cartoon RPG UI_Game Icon - Attack", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 141 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 149 + }, + { + "__id__": 151 + } + ], + "_prefab": { + "__id__": 153 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 20, + "y": 0.443, + "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__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 150 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 25, + "height": 25 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3461,7 +3660,52 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "b53UM/s7tM/JLYmzO0vM5Q" + "fileId": "e4v0j/0fFG+5apYHZIDhs+" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 152 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@63bfa", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_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": "44tmatBVREhY6j+E3eglFo" }, { "__type__": "cc.PrefabInfo", @@ -3471,7 +3715,1107 @@ "asset": { "__id__": 0 }, - "fileId": "b5H8zuAdlF66eXGif/6pnv", + "fileId": "17uQK0CQpP3KGW1klWBqr+", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "v", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 141 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 155 + }, + { + "__id__": 157 + }, + { + "__id__": 159 + } + ], + "_prefab": { + "__id__": 161 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 100, + "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__": 154 + }, + "_enabled": true, + "__prefab": { + "__id__": 156 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 12.34228515625, + "height": 24.16 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5a9/7U/gxMo4no045jsb8c" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 154 + }, + "_enabled": true, + "__prefab": { + "__id__": 158 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 15, + "_fontSize": 15, + "_fontFamily": "Arial", + "_lineHeight": 16, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_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": "5dFwvnTCBODJ2oqndVUQPS" + }, + { + "__type__": "545c05XsG9GDJispEGWKvYv", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 154 + }, + "_enabled": true, + "__prefab": { + "__id__": 160 + }, + "templateMode": false, + "watchPath": "data.item_box.hp", + "labelType": "cc.Label", + "watchPathArr": [], + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "77Qe1IapNK6qQ7o53jvRR/" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c7HMDK0lBDNK3dke7Ipq9q", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "hp", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 141 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 163 + }, + { + "__id__": 165 + } + ], + "_prefab": { + "__id__": 167 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 40, + "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__": 162 + }, + "_enabled": true, + "__prefab": { + "__id__": 164 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 44, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "15SKfoW3lM+Z/OjRyx/mG+" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 162 + }, + "_enabled": true, + "__prefab": { + "__id__": 166 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "生命", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_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": "3ftXDSNXJLAZq9Bq9rHF0a" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ae2mu/d4RExL4oCC+85QR3", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 141 + }, + "_enabled": true, + "__prefab": { + "__id__": 169 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 45, + "height": 20 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3d8UyOiAtBRpuVSzAcl6uV" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "6fIjCi3spA9IWCYcqAgeFD", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "shield", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 8 + }, + "_children": [ + { + "__id__": 172 + }, + { + "__id__": 178 + }, + { + "__id__": 184 + }, + { + "__id__": 192 + } + ], + "_active": true, + "_components": [ + { + "__id__": 198 + } + ], + "_prefab": { + "__id__": 200 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 205, + "y": 50, + "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": "data_bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 171 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 173 + }, + { + "__id__": 175 + } + ], + "_prefab": { + "__id__": 177 + }, + "_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__": 172 + }, + "_enabled": true, + "__prefab": { + "__id__": 174 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 35 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e42oS4lFNJkq3vi0Ftai4a" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 172 + }, + "_enabled": true, + "__prefab": { + "__id__": 176 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@22385", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_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": "10n6wi9OxInqorp6Ehrjca" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d1BRW8T+hD2I9xEi5L0ajr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Cartoon RPG UI_Game Icon - Attack", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 171 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 179 + }, + { + "__id__": 181 + } + ], + "_prefab": { + "__id__": 183 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 20, + "y": 0.443, + "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__": 178 + }, + "_enabled": true, + "__prefab": { + "__id__": 180 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 25, + "height": 25 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b19f/JNEZBTYiV2XRNkWZ7" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 178 + }, + "_enabled": true, + "__prefab": { + "__id__": 182 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a018f", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_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": "99k0xeKxtAA6QHy8GYw/FF" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ab5Y3srvNLZo3zarNhbBpe", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "v", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 171 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 185 + }, + { + "__id__": 187 + }, + { + "__id__": 189 + } + ], + "_prefab": { + "__id__": 191 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 100, + "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__": 184 + }, + "_enabled": true, + "__prefab": { + "__id__": 186 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 12.34228515625, + "height": 24.16 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "aaOSIIos1PaYh2nNSKIcpo" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 184 + }, + "_enabled": true, + "__prefab": { + "__id__": 188 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 15, + "_fontSize": 15, + "_fontFamily": "Arial", + "_lineHeight": 16, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_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": "46pSJ/PcFCb7wpWuBSIwQs" + }, + { + "__type__": "545c05XsG9GDJispEGWKvYv", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 184 + }, + "_enabled": true, + "__prefab": { + "__id__": 190 + }, + "templateMode": false, + "watchPath": "data.item_box.shield", + "labelType": "cc.Label", + "watchPathArr": [], + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ddeysdLGFDb5gTRp7xraLX" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "912vwPHSxBlrnWToXGgvoH", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "shield", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 171 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 193 + }, + { + "__id__": 195 + } + ], + "_prefab": { + "__id__": 197 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 40, + "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__": 192 + }, + "_enabled": true, + "__prefab": { + "__id__": 194 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 44, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "26tXf+WgFPIIo9cG8HULr+" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 192 + }, + "_enabled": true, + "__prefab": { + "__id__": 196 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "护甲", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_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": "30jS8kP01GI77bszMjPW70" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "eaf3L6AlpEKqnQFRsdKddr", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 171 + }, + "_enabled": true, + "__prefab": { + "__id__": 199 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 45, + "height": 20 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "60svjOETNN3I8u1/emKryo" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "763M+3OYRFwocBOLEAV3BV", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3486,7 +4830,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 146 + "__id__": 202 }, "_contentSize": { "__type__": "cc.Size", @@ -3527,7 +4871,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 149 + "__id__": 205 }, "_contentSize": { "__type__": "cc.Size", @@ -3555,7 +4899,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 151 + "__id__": 207 }, "_alignFlags": 40, "_target": null, @@ -3581,42 +4925,6 @@ "__type__": "cc.CompPrefabInfo", "fileId": "4cvO4etMZPXb7O03rne8fM" }, - { - "__type__": "20c2cDdGI5B2rdO/ayuJLM3", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 153 - }, - "n_name": { - "__id__": 9 - }, - "n_hp": { - "__id__": 141 - }, - "n_atk": { - "__id__": 51 - }, - "n_info": { - "__id__": 33 - }, - "n_atk_cd": { - "__id__": 81 - }, - "n_skillcd": { - "__id__": 111 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2dhMxpwRNCE7wLo8lm8xBb" - }, { "__type__": "cc.PrefabInfo", "root": { diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 8b75c462..f42e7f70 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -38,42 +38,60 @@ export const SkillSet={ 9003:{uuid: 9003,path: "1001",type: 2,level: 1,name: "魔法波动",sp_name:"base3",info:"释放一个魔法球攻击敌人", dis:720,count:1,atk:0,hp:0,shield:0,sd:10,cd:3,bsd:10,bcd:1,sk_uuid:1001,sk_count:0,speed:450,}, - 6001:{uuid: 6001,path: "6001",type: 92,level: 1,name: "普通单手剑",sp_name:"", + 6001:{uuid: 6001,path: "6001",type: 92,level: 1,name: "普通单手剑",sp_name:"",info:"", dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6002:{uuid: 6002,path: "6002",type: 93,level: 3,name: "精致单手剑",sp_name:"", + + 6002:{uuid: 6002,path: "6002",type: 93,level: 3,name: "精致单手剑",sp_name:"",info:"", dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6003:{uuid: 6003,path: "6003",type: 94,level: 3,name: "魔法单手剑",sp_name:"", + + 6003:{uuid: 6003,path: "6003",type: 94,level: 3,name: "魔法单手剑",sp_name:"",info:"", dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6004:{uuid: 6004,path: "6004",type: 92,level: 1,name: "普通木盾",sp_name:"", - dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6005:{uuid: 6005,path: "6005",type: 93,level: 3,name: "精致钢盾",sp_name:"", - dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6006:{uuid: 6006,path: "6006",type: 94,level: 3,name: "魔法盾",sp_name:"", - dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6101:{uuid: 6101,path: "6101",type: 91,level: 1,name: "初级药水",sp_name:"", + + 6004:{uuid: 6004,path: "6004",type: 92,level: 1,name: "普通木盾",sp_name:"",info:"", + dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6005:{uuid: 6005,path: "6005",type: 93,level: 3,name: "精致钢盾",sp_name:"",info:"", + dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6006:{uuid: 6006,path: "6006",type: 94,level: 3,name: "魔法盾",sp_name:"",info:"", + dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6101:{uuid: 6101,path: "6101",type: 91,level: 1,name: "初级药水",sp_name:"",info:"", dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6102:{uuid: 6102,path: "6102",type: 93,level: 3,name: "高级药水",sp_name:"", + + 6102:{uuid: 6102,path: "6102",type: 93,level: 3,name: "高级药水",sp_name:"",info:"", dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6103:{uuid: 6103,path: "6103",type: 94,level: 3,name: "活力药水",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6210:{uuid: 6210,path: "6210",type: 92,level: 3,name: "普通攻击石",sp_name:"", + + 6103:{uuid: 6103,path: "6103",type: 94,level: 3,name: "活力药水",sp_name:"",info:"", + dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6210:{uuid: 6210,path: "6210",type: 92,level: 3,name: "普通攻击石",sp_name:"",info:"", dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6211:{uuid: 6211,path: "6211",type: 93,level: 4,name: "特效攻击石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6212:{uuid: 6212,path: "6212",type: 94,level: 4,name: "精炼攻击石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6213:{uuid: 6213,path: "6213",type: 92,level: 3,name: "普通生命石",sp_name:"", + + 6211:{uuid: 6211,path: "6211",type: 93,level: 4,name: "特效攻击石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:0,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6212:{uuid: 6212,path: "6212",type: 94,level: 4,name: "精炼攻击石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:0,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6213:{uuid: 6213,path: "6213",type: 92,level: 3,name: "普通生命石",sp_name:"",info:"", dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6214:{uuid: 6214,path: "6214",type: 93,level: 4,name: "特效生命石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6215:{uuid: 6215,path: "6215",type: 94,level: 4,name: "精炼生命石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6216:{uuid: 6216,path: "6216",type: 92,level: 3,name: "普通全能石",sp_name:"", + + 6214:{uuid: 6214,path: "6214",type: 93,level: 4,name: "特效生命石",sp_name:"",info:"", dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6217:{uuid: 6217,path: "6217",type: 93,level: 4,name: "特效全能石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, - 6218:{uuid: 6218,path: "6218",type: 94,level: 4,name: "精炼全能石",sp_name:"", - dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6215:{uuid: 6215,path: "6215",type: 94,level: 4,name: "精炼生命石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6216:{uuid: 6216,path: "6216",type: 92,level: 3,name: "普通全能石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6217:{uuid: 6217,path: "6217",type: 93,level: 4,name: "特效全能石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + + 6218:{uuid: 6218,path: "6218",type: 94,level: 4,name: "精炼全能石",sp_name:"",info:"", + dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, }, + } export const AllItems={ diff --git a/assets/script/game/monster/HeroCardViewComp.ts b/assets/script/game/monster/HeroCardViewComp.ts index 570b33ad..580e6795 100644 --- a/assets/script/game/monster/HeroCardViewComp.ts +++ b/assets/script/game/monster/HeroCardViewComp.ts @@ -64,7 +64,9 @@ export class HeroCardViewComp extends CCComp { this.show_info() } show_info(){ + console.log("show_info",this.card_uid) let parent = this.node.parent.parent + let node =parent.getChildByName("item_box") if(this.card_type == 2){ smc.vm_data.item_box.info = SkillSet[this.card_uid].info smc.vm_data.item_box.name = SkillSet[this.card_uid].name @@ -72,7 +74,24 @@ export class HeroCardViewComp extends CCComp { smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp - parent.getChildByName("item_box").active=true + node.active=true + } + if(this.card_type == 3){ + console.log(SkillSet[this.card_uid]) + smc.vm_data.item_box.info = SkillSet[this.card_uid].info + smc.vm_data.item_box.name = SkillSet[this.card_uid].name + smc.vm_data.item_box.skillcd = SkillSet[this.card_uid].cd + smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd + smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk + smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp + smc.vm_data.item_box.shield = SkillSet[this.card_uid].shield + node.active=true + if(SkillSet[this.card_uid].shield > 0){ + node.getChildByName("data").getChildByName("shield").active=true + } + if(SkillSet[this.card_uid].hp > 0){ + node.getChildByName("data").getChildByName("hp").active=true + } } } onTouchEnd(){ @@ -82,8 +101,11 @@ export class HeroCardViewComp extends CCComp { this.node.setPosition(this.pos_x,this.pos_y); } let parent = this.node.parent.parent - - parent.getChildByName("item_box").active=false + let node = parent.getChildByName("item_box") + node.active=false + node.getChildByName("data").getChildByName("shield").active=false + node.getChildByName("data").getChildByName("hp").active=false + } private do_active_card_eid(event: string, args: any) { diff --git a/assets/script/game/monster/MonsterViewComp.ts b/assets/script/game/monster/MonsterViewComp.ts index 4e72389a..b958f0af 100644 --- a/assets/script/game/monster/MonsterViewComp.ts +++ b/assets/script/game/monster/MonsterViewComp.ts @@ -77,7 +77,7 @@ export class MonsterViewComp extends CCComp { box_group:number = 2; atk_range:number = 150; - private timer:Timer = new Timer(0.1); //计时器 + private timer:Timer = new Timer(1); //计时器 is_dead:boolean = false; //是否摧毁 is_stop:boolean = false; is_atking:boolean = false;