英雄卡牌ui修改,todo 抽卡修改
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -31,26 +31,29 @@
|
|||||||
"__id__": 29
|
"__id__": 29
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 43
|
"__id__": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 49
|
"__id__": 49
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 55
|
"__id__": 55
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 61
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 61
|
"__id__": 67
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 63
|
"__id__": 69
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 65
|
"__id__": 71
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -714,6 +717,142 @@
|
|||||||
"targetOverrides": null,
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "ListFrame04_Single_f_Blue",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"_children": [],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 32
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_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": 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__": 29
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": {
|
||||||
|
"__id__": 31
|
||||||
|
},
|
||||||
|
"_contentSize": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 128,
|
||||||
|
"height": 130
|
||||||
|
},
|
||||||
|
"_anchorPoint": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0.5
|
||||||
|
},
|
||||||
|
"_id": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.CompPrefabInfo",
|
||||||
|
"fileId": "2agU4KPrpIfpmecPXGCJyJ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Sprite",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 29
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": {
|
||||||
|
"__id__": 33
|
||||||
|
},
|
||||||
|
"_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@b9426",
|
||||||
|
"__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": "1dagWlTkNNl6RUPCoHn99B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"asset": {
|
||||||
|
"__id__": 0
|
||||||
|
},
|
||||||
|
"fileId": "62BOGEqbpGCpEQEErq5Y56",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
|
"nestedPrefabInstanceRoots": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "hero",
|
"_name": "hero",
|
||||||
@@ -724,23 +863,23 @@
|
|||||||
},
|
},
|
||||||
"_children": [
|
"_children": [
|
||||||
{
|
{
|
||||||
"__id__": 30
|
"__id__": 36
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 36
|
"__id__": 42
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 38
|
"__id__": 44
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 40
|
"__id__": 46
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 42
|
"__id__": 48
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -777,25 +916,25 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"_parent": {
|
"_parent": {
|
||||||
"__id__": 29
|
"__id__": 35
|
||||||
},
|
},
|
||||||
"_children": [],
|
"_children": [],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 31
|
"__id__": 37
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 33
|
"__id__": 39
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 35
|
"__id__": 41
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 4.996,
|
"x": 6.915,
|
||||||
"y": -50.051,
|
"y": -53.508,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -807,8 +946,8 @@
|
|||||||
},
|
},
|
||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.5,
|
"x": 0.55,
|
||||||
"y": 0.5,
|
"y": 0.55,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
@@ -827,11 +966,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 30
|
"__id__": 36
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 32
|
"__id__": 38
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -855,11 +994,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 30
|
"__id__": 36
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 34
|
"__id__": 40
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -913,11 +1052,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 29
|
"__id__": 35
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 37
|
"__id__": 43
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -941,11 +1080,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 29
|
"__id__": 35
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 39
|
"__id__": 45
|
||||||
},
|
},
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
"_inverted": false,
|
"_inverted": false,
|
||||||
@@ -963,11 +1102,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 29
|
"__id__": 35
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 41
|
"__id__": 47
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1028,14 +1167,14 @@
|
|||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 44
|
"__id__": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 46
|
"__id__": 52
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 48
|
"__id__": 54
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -1072,11 +1211,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 43
|
"__id__": 49
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 45
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1100,11 +1239,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 43
|
"__id__": 49
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 47
|
"__id__": 53
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1187,14 +1326,14 @@
|
|||||||
"_active": false,
|
"_active": false,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 50
|
"__id__": 56
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 52
|
"__id__": 58
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 54
|
"__id__": 60
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -1231,11 +1370,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 49
|
"__id__": 55
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 51
|
"__id__": 57
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1259,11 +1398,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 49
|
"__id__": 55
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 53
|
"__id__": 59
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1323,14 +1462,14 @@
|
|||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 56
|
"__id__": 62
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 58
|
"__id__": 64
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 60
|
"__id__": 66
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -1367,11 +1506,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 55
|
"__id__": 61
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 57
|
"__id__": 63
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1395,11 +1534,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 55
|
"__id__": 61
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 59
|
"__id__": 65
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1457,7 +1596,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 62
|
"__id__": 68
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1485,7 +1624,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 64
|
"__id__": 70
|
||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
400
assets/resources/gui/gui2.plist
Normal file
400
assets/resources/gui/gui2.plist
Normal file
@@ -0,0 +1,400 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>frames</key>
|
||||||
|
<dict>
|
||||||
|
<key>Background_Stage01_Icon.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{252,195}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{252,195}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,731},{252,195}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Background_Stage02_icon.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{291,229}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{291,229}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,251},{291,229}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Background_Stage03_icon.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{235,200}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{235,200}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{263,567},{235,200}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Background_Stage04_icon.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{247,260}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{247,260}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,482},{247,260}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>Background_Stage05_icon.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{250,210}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{250,210}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{294,315},{250,210}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>CardFrame03_n_Bg.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{64,67}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{64,67}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{317,1019},{64,67}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>CardFrame03_n_InnerBg.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{40,40}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{40,40}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{113,1038},{40,40}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>CardFrame03_n_Light.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{56,56}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{56,56}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{223,1024},{56,56}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>CardFrame04_FocusGlow.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{108,108}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{108,108}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{113,928},{108,108}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Circle.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{37,37}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{37,37}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{418,863},{37,37}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Light01_Sky.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{1,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{312,180}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{314,184}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{321,1},{312,180}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Light01_Yellow.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{-2,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{305,180}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{309,184}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,69},{305,180}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Light02.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{-1,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{202,92}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{206,92}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{255,769},{202,92}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Light03.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{161,65}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{161,65}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{255,863},{161,65}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Light04.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{318,66}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{318,66}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,1},{318,66}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Square_Blue.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{87,87}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{87,87}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{317,930},{87,87}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Square_Yellow.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{87,87}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{87,87}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{406,997},{87,87}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Star01_Blue.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{92,92}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{92,92}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{418,903},{92,92}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Image_Effect_Star01_Yellow.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{92,92}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{92,92}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{223,930},{92,92}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>ItemFrame00~03_CornerDeco.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{110,110}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{110,110}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1,928},{110,110}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>Title_Line01_Divider_Left.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{65,42}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{65,42}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{459,769},{65,42}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>Title_Line01_Divider_Right.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>anchor</key>
|
||||||
|
<string>{0.5,0.5}</string>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{65,42}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{65,42}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{459,836},{65,42}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>metadata</key>
|
||||||
|
<dict>
|
||||||
|
<key>format</key>
|
||||||
|
<integer>3</integer>
|
||||||
|
<key>pixelFormat</key>
|
||||||
|
<string>RGBA8888</string>
|
||||||
|
<key>premultiplyAlpha</key>
|
||||||
|
<false/>
|
||||||
|
<key>realTextureFileName</key>
|
||||||
|
<string>gui2.png</string>
|
||||||
|
<key>size</key>
|
||||||
|
<string>{511,1085}</string>
|
||||||
|
<key>smartupdate</key>
|
||||||
|
<string>$TexturePacker:SmartUpdate:1f5c5e46d0e7817ce652ca5a52b94bfd:b9ff5b23a2124bd3caf57edfcbbd0f33:02d895b6f8eccee3d27099fa0f66bd83$</string>
|
||||||
|
<key>textureFileName</key>
|
||||||
|
<string>gui2.png</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
1029
assets/resources/gui/gui2.plist.meta
Normal file
1029
assets/resources/gui/gui2.plist.meta
Normal file
File diff suppressed because it is too large
Load Diff
BIN
assets/resources/gui/gui2.png
Normal file
BIN
assets/resources/gui/gui2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 352 KiB |
42
assets/resources/gui/gui2.png.meta
Normal file
42
assets/resources/gui/gui2.png.meta
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.26",
|
||||||
|
"importer": "image",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "486aac0a-12a3-438a-8902-c797ec07aedc",
|
||||||
|
"files": [
|
||||||
|
".json",
|
||||||
|
".png"
|
||||||
|
],
|
||||||
|
"subMetas": {
|
||||||
|
"6c48a": {
|
||||||
|
"importer": "texture",
|
||||||
|
"uuid": "486aac0a-12a3-438a-8902-c797ec07aedc@6c48a",
|
||||||
|
"displayName": "gui2",
|
||||||
|
"id": "6c48a",
|
||||||
|
"name": "texture",
|
||||||
|
"userData": {
|
||||||
|
"wrapModeS": "repeat",
|
||||||
|
"wrapModeT": "repeat",
|
||||||
|
"minfilter": "linear",
|
||||||
|
"magfilter": "linear",
|
||||||
|
"mipfilter": "none",
|
||||||
|
"anisotropy": 0,
|
||||||
|
"isUuid": true,
|
||||||
|
"imageUuidOrDatabaseUri": "486aac0a-12a3-438a-8902-c797ec07aedc",
|
||||||
|
"visible": false
|
||||||
|
},
|
||||||
|
"ver": "1.0.22",
|
||||||
|
"imported": true,
|
||||||
|
"files": [
|
||||||
|
".json"
|
||||||
|
],
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"userData": {
|
||||||
|
"hasAlpha": true,
|
||||||
|
"type": "texture",
|
||||||
|
"fixAlphaTransparencyArtifacts": false,
|
||||||
|
"redirect": "486aac0a-12a3-438a-8902-c797ec07aedc@6c48a"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
"__id__": 284
|
"__id__": 284
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 392
|
"__id__": 392
|
||||||
@@ -6817,7 +6817,7 @@
|
|||||||
"_layoutType": 3,
|
"_layoutType": 3,
|
||||||
"_cellSize": {
|
"_cellSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 130,
|
"width": 160,
|
||||||
"height": 200
|
"height": 200
|
||||||
},
|
},
|
||||||
"_startAxis": 0,
|
"_startAxis": 0,
|
||||||
@@ -31738,7 +31738,7 @@
|
|||||||
"__id__": 1462
|
"__id__": 1462
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": false,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 1482
|
"__id__": 1482
|
||||||
@@ -33599,7 +33599,7 @@
|
|||||||
"__id__": 1574
|
"__id__": 1574
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": false,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 3048
|
"__id__": 3048
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export class BuffComp extends Component {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
this.heroView = this.node.getComponent(HeroViewComp);
|
this.heroView = this.node.getComponent(HeroViewComp);
|
||||||
this.buff_get("dodge")
|
// this.buff_get("dodge")
|
||||||
// this.node.getChildByName("top").getChildByName("buff").getChildByName("ap").active = false;
|
// this.node.getChildByName("top").getChildByName("buff").getChildByName("ap").active = false;
|
||||||
// this.node.getChildByName("top").getChildByName("buff").getChildByName("cd").active = false;
|
// this.node.getChildByName("top").getChildByName("buff").getChildByName("cd").active = false;
|
||||||
// this.node.getChildByName("top").getChildByName("buff").getChildByName("def").active = false;
|
// this.node.getChildByName("top").getChildByName("buff").getChildByName("def").active = false;
|
||||||
|
|||||||
@@ -15,17 +15,20 @@ export class HeroCard extends ecs.Entity {
|
|||||||
load(uuid:number=101,parent:any) {
|
load(uuid:number=101,parent:any) {
|
||||||
// var path = "game/monster/"+prefab_path;
|
// var path = "game/monster/"+prefab_path;
|
||||||
var path = "game/gui/hero_card";
|
var path = "game/gui/hero_card";
|
||||||
var icon_path = "game/heros/herois"
|
// var icon_path = "game/heros/herois"
|
||||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
var node = instantiate(prefab);
|
var node = instantiate(prefab);
|
||||||
let slv = node.getChildByName("slv");
|
let slv = node.getChildByName("slv");
|
||||||
node.parent = parent;
|
node.parent = parent;
|
||||||
node.getChildByName("name").getComponent(Label).string = HeroInfo[uuid].name
|
node.getChildByName("name").getComponent(Label).string = HeroInfo[uuid].name
|
||||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||||
const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
|
// const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
|
||||||
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
||||||
});
|
// });
|
||||||
|
var path = "game/heros/uiheros/"+HeroInfo[uuid].path;
|
||||||
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
|
var snode = instantiate(prefab);
|
||||||
|
snode.parent = node.getChildByName("Mask")
|
||||||
let hcc = node.getComponent(HeroCardComp)!;
|
let hcc = node.getComponent(HeroCardComp)!;
|
||||||
hcc.h_uuid = uuid;
|
hcc.h_uuid = uuid;
|
||||||
hcc.update_data();
|
hcc.update_data();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Color, Label, ProgressBar, Sprite } from "cc";
|
import { _decorator, Color, instantiate, Label, Prefab, ProgressBar, Sprite } from "cc";
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||||
import { HeroHomeComp } from "../map/HeroHomeComp";
|
import { HeroHomeComp } from "../map/HeroHomeComp";
|
||||||
@@ -41,7 +41,6 @@ export class HeroCardComp extends CCComp {
|
|||||||
this.node.getChildByName("show").active=val
|
this.node.getChildByName("show").active=val
|
||||||
}
|
}
|
||||||
update_data(){
|
update_data(){
|
||||||
|
|
||||||
let slv = this.node.getChildByName("slv")
|
let slv = this.node.getChildByName("slv")
|
||||||
this.node.getChildByName("lv").getComponent(Label).string=smc.heros[this.h_uuid].lv.toString()+"级"
|
this.node.getChildByName("lv").getComponent(Label).string=smc.heros[this.h_uuid].lv.toString()+"级"
|
||||||
// if(smc.heros[this.h_uuid].slv==0){
|
// if(smc.heros[this.h_uuid].slv==0){
|
||||||
@@ -70,14 +69,16 @@ export class HeroCardComp extends CCComp {
|
|||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
/** 全局消息逻辑处理 */
|
|
||||||
// private onHandler(event: string, args: any) {
|
|
||||||
// switch (event) {
|
|
||||||
// case ModuleEvent.Cmd:
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
call_hero(uuid:number){
|
||||||
|
var path = "game/heros/uiheros/"+HeroInfo[uuid].path;
|
||||||
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
|
var node = instantiate(prefab);
|
||||||
|
node.parent = this.node.getChildByName("Mask")
|
||||||
|
}
|
||||||
|
clear_hero(){
|
||||||
|
this.node.getChildByName("Mask").destroyAllChildren()
|
||||||
|
}
|
||||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||||
reset() {
|
reset() {
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
|
|||||||
@@ -15,16 +15,20 @@ export class HeroSelect extends ecs.Entity {
|
|||||||
load(uuid:number=101,parent:any) {
|
load(uuid:number=101,parent:any) {
|
||||||
// var path = "game/monster/"+prefab_path;
|
// var path = "game/monster/"+prefab_path;
|
||||||
var path = "game/gui/hero_set";
|
var path = "game/gui/hero_set";
|
||||||
var icon_path = "game/heros/herois"
|
// var icon_path = "game/heros/herois"
|
||||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
var node = instantiate(prefab);
|
var node = instantiate(prefab);
|
||||||
let slv = node.getChildByName("slv");
|
let slv = node.getChildByName("slv");
|
||||||
node.parent = parent;
|
node.parent = parent;
|
||||||
node.getChildByName("name").getComponent(Label).string = HeroInfo[uuid].name
|
node.getChildByName("name").getComponent(Label).string = HeroInfo[uuid].name
|
||||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||||
const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
|
// const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
|
||||||
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
||||||
});
|
// });
|
||||||
|
var path = "game/heros/uiheros/"+HeroInfo[uuid].path;
|
||||||
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
|
var snode = instantiate(prefab);
|
||||||
|
snode.parent = node.getChildByName("Mask")
|
||||||
let hcc = node.getComponent(HeroSelectComp)!;
|
let hcc = node.getComponent(HeroSelectComp)!;
|
||||||
hcc.h_uuid = uuid;
|
hcc.h_uuid = uuid;
|
||||||
hcc.update_data();
|
hcc.update_data();
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
this.node.setScale(this.scale,1);
|
this.node.setScale(this.scale,1);
|
||||||
this.node.getChildByName("top").setScale(this.scale,1);
|
this.node.getChildByName("top").setScale(this.scale,1);
|
||||||
if(this.is_boss){
|
if(this.is_boss){
|
||||||
this.node.setScale(this.node.scale.x*1.2,this.node.scale.y*1.2);
|
this.node.setScale(this.node.scale.x*1.5,this.node.scale.y*1.5);
|
||||||
this.node.getChildByName("top").getChildByName("sboss").active = true;
|
this.node.getChildByName("top").getChildByName("sboss").active = true;
|
||||||
}
|
}
|
||||||
/** 显示角色血量 */
|
/** 显示角色血量 */
|
||||||
|
|||||||
@@ -15,15 +15,19 @@ export class HCard extends ecs.Entity {
|
|||||||
}
|
}
|
||||||
load(uuid:number=1001,index:number=-1,parent:any) {
|
load(uuid:number=1001,index:number=-1,parent:any) {
|
||||||
var path = "game/gui/hcard";
|
var path = "game/gui/hcard";
|
||||||
var icon_path = "game/heros/herois"
|
// var icon_path = "game/heros/herois"
|
||||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
// resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||||
const sprite = node.getChildByName("Mask").getChildByName("icon").getComponent(Sprite);
|
// const sprite = node.getChildByName("Mask").getChildByName("icon").getComponent(Sprite);
|
||||||
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
// sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
|
||||||
});
|
// });
|
||||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
console.log("load_hcard",prefab)
|
console.log("load_hcard",prefab)
|
||||||
var node = instantiate(prefab);
|
var node = instantiate(prefab);
|
||||||
node.parent = parent
|
node.parent = parent
|
||||||
|
var path = "game/heros/uiheros/"+HeroInfo[uuid].path;
|
||||||
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
|
var snode = instantiate(prefab);
|
||||||
|
snode.parent = node.getChildByName("Mask")
|
||||||
var hcc = node.getComponent(HCardComp)!;
|
var hcc = node.getComponent(HCardComp)!;
|
||||||
hcc.hi= index
|
hcc.hi= index
|
||||||
this.add(hcc)
|
this.add(hcc)
|
||||||
|
|||||||
@@ -61,8 +61,7 @@ export class HeroHomeComp extends CCComp {
|
|||||||
this.node.getChildByName("show").active=true
|
this.node.getChildByName("show").active=true
|
||||||
this.h_uuid=uuid
|
this.h_uuid=uuid
|
||||||
this.hero=HeroInfo[uuid]
|
this.hero=HeroInfo[uuid]
|
||||||
this.gold_need=(getUpGoldByRange(smc.heros[uuid].lv)*smc.heros[uuid].lv)
|
|
||||||
this.chip_need=(getUpChipByLv(smc.heros[uuid].lv)-this.hero.lvexp)*smc.heros[uuid].lv
|
|
||||||
console.log("hero_show",uuid)
|
console.log("hero_show",uuid)
|
||||||
let skill1 = SkillSet[this.hero.sk1[0]]
|
let skill1 = SkillSet[this.hero.sk1[0]]
|
||||||
let skill2 = SkillSet[this.hero.sk2[0]]
|
let skill2 = SkillSet[this.hero.sk2[0]]
|
||||||
@@ -101,6 +100,8 @@ export class HeroHomeComp extends CCComp {
|
|||||||
}
|
}
|
||||||
update_data(){
|
update_data(){
|
||||||
this.slv = Math.floor((smc.heros[this.h_uuid].lv) / 5);
|
this.slv = Math.floor((smc.heros[this.h_uuid].lv) / 5);
|
||||||
|
this.gold_need=(getUpGoldByRange(smc.heros[this.h_uuid].lv)*smc.heros[this.h_uuid].lv)
|
||||||
|
this.chip_need=getUpChipByLv(smc.heros[this.h_uuid].lv)-this.hero.lvexp
|
||||||
// let slv_node=this.node.getChildByName("show").getChildByName("name").getChildByName("slv");
|
// let slv_node=this.node.getChildByName("show").getChildByName("name").getChildByName("slv");
|
||||||
let lvup=this.node.getChildByName("show").getChildByName("lvup");
|
let lvup=this.node.getChildByName("show").getChildByName("lvup");
|
||||||
// let slvup=this.node.getChildByName("show").getChildByName("slvup");
|
// let slvup=this.node.getChildByName("show").getChildByName("slvup");
|
||||||
|
|||||||
Reference in New Issue
Block a user