ui调整
This commit is contained in:
@@ -28,29 +28,29 @@
|
|||||||
"__id__": 26
|
"__id__": 26
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 37
|
"__id__": 47
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 46
|
"__id__": 56
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 48
|
"__id__": 58
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 50
|
"__id__": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 52
|
"__id__": 62
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 54
|
"__id__": 64
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 56
|
"__id__": 66
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -126,8 +126,8 @@
|
|||||||
},
|
},
|
||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -1,
|
"x": -1.2,
|
||||||
"y": 1,
|
"y": 1.2,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
@@ -552,6 +552,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 36
|
"__id__": 36
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 37
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 39
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 41
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 43
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 45
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"removedComponents": []
|
"removedComponents": []
|
||||||
@@ -582,8 +597,8 @@
|
|||||||
],
|
],
|
||||||
"value": {
|
"value": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0.251,
|
||||||
"y": 107.768,
|
"y": 166.516,
|
||||||
"z": 0
|
"z": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -654,6 +669,112 @@
|
|||||||
"z": 1
|
"z": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 38
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_contentSize"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 100,
|
||||||
|
"height": 30
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"cdvV5hAkdEaY6AT6urHKuf"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 40
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_color"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 219,
|
||||||
|
"g": 212,
|
||||||
|
"b": 52,
|
||||||
|
"a": 255
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"63mCHH6lhNV7iIr3Lvf2gG"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 42
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lscale"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0.7,
|
||||||
|
"y": 0.7,
|
||||||
|
"z": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"894T590c9Nyr7Y3ok7yBrM"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 44
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lscale"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0.7,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"4bGUhFXlZF/Jdkcq0HY9ai"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 46
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_color"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 0,
|
||||||
|
"g": 224,
|
||||||
|
"b": 9,
|
||||||
|
"a": 255
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"42Iqibz0VOArXYqoFJhNMf"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
@@ -661,14 +782,14 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 38
|
"__id__": 48
|
||||||
},
|
},
|
||||||
"__editorExtras__": {}
|
"__editorExtras__": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
"root": {
|
"root": {
|
||||||
"__id__": 37
|
"__id__": 47
|
||||||
},
|
},
|
||||||
"asset": {
|
"asset": {
|
||||||
"__uuid__": "ae4493bd-cbcc-4392-921c-3e2b0fcd5338",
|
"__uuid__": "ae4493bd-cbcc-4392-921c-3e2b0fcd5338",
|
||||||
@@ -676,7 +797,7 @@
|
|||||||
},
|
},
|
||||||
"fileId": "91yoyAQGNDm5ziI7NUChZ+",
|
"fileId": "91yoyAQGNDm5ziI7NUChZ+",
|
||||||
"instance": {
|
"instance": {
|
||||||
"__id__": 39
|
"__id__": 49
|
||||||
},
|
},
|
||||||
"targetOverrides": null
|
"targetOverrides": null
|
||||||
},
|
},
|
||||||
@@ -690,19 +811,19 @@
|
|||||||
"mountedComponents": [],
|
"mountedComponents": [],
|
||||||
"propertyOverrides": [
|
"propertyOverrides": [
|
||||||
{
|
{
|
||||||
"__id__": 40
|
"__id__": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 42
|
"__id__": 52
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 43
|
"__id__": 53
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 44
|
"__id__": 54
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 45
|
"__id__": 55
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"removedComponents": []
|
"removedComponents": []
|
||||||
@@ -710,7 +831,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 41
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_name"
|
"_name"
|
||||||
@@ -726,7 +847,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 41
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lpos"
|
"_lpos"
|
||||||
@@ -741,7 +862,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 41
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lrot"
|
"_lrot"
|
||||||
@@ -757,7 +878,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 41
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_euler"
|
"_euler"
|
||||||
@@ -772,7 +893,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 41
|
"__id__": 51
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@@ -789,7 +910,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 47
|
"__id__": 57
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -817,7 +938,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 49
|
"__id__": 59
|
||||||
},
|
},
|
||||||
"anm": {
|
"anm": {
|
||||||
"__id__": 5
|
"__id__": 5
|
||||||
@@ -838,7 +959,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 51
|
"__id__": 61
|
||||||
},
|
},
|
||||||
"debugMode": false,
|
"debugMode": false,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
@@ -857,7 +978,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 53
|
"__id__": 63
|
||||||
},
|
},
|
||||||
"enabledContactListener": false,
|
"enabledContactListener": false,
|
||||||
"bullet": false,
|
"bullet": false,
|
||||||
@@ -891,7 +1012,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 55
|
"__id__": 65
|
||||||
},
|
},
|
||||||
"tag": 0,
|
"tag": 0,
|
||||||
"_group": 4,
|
"_group": 4,
|
||||||
@@ -928,7 +1049,7 @@
|
|||||||
"targetOverrides": null,
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": [
|
"nestedPrefabInstanceRoots": [
|
||||||
{
|
{
|
||||||
"__id__": 37
|
"__id__": 47
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 26
|
"__id__": 26
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
"__id__": 33
|
"__id__": 33
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 41
|
"__id__": 41
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": -6.942,
|
"y": -8.389,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -247,8 +247,8 @@
|
|||||||
},
|
},
|
||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.5,
|
"x": 0.7,
|
||||||
"y": 0.6,
|
"y": 0.8,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
@@ -1123,8 +1123,8 @@
|
|||||||
},
|
},
|
||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.5,
|
"x": 0.7,
|
||||||
"y": 0.8,
|
"y": 1,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
|
|||||||
@@ -668,10 +668,10 @@
|
|||||||
"height": 97,
|
"height": 97,
|
||||||
"rawWidth": 132,
|
"rawWidth": 132,
|
||||||
"rawHeight": 97,
|
"rawHeight": 97,
|
||||||
"borderTop": 0,
|
"borderTop": 46,
|
||||||
"borderBottom": 0,
|
"borderBottom": 41,
|
||||||
"borderLeft": 0,
|
"borderLeft": 38,
|
||||||
"borderRight": 0,
|
"borderRight": 44,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
"pixelsToUnit": 100,
|
"pixelsToUnit": 100,
|
||||||
"pivotX": 0.5,
|
"pivotX": 0.5,
|
||||||
@@ -760,10 +760,10 @@
|
|||||||
"height": 107,
|
"height": 107,
|
||||||
"rawWidth": 134,
|
"rawWidth": 134,
|
||||||
"rawHeight": 107,
|
"rawHeight": 107,
|
||||||
"borderTop": 0,
|
"borderTop": 43,
|
||||||
"borderBottom": 0,
|
"borderBottom": 34,
|
||||||
"borderLeft": 0,
|
"borderLeft": 58,
|
||||||
"borderRight": 0,
|
"borderRight": 63,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
"pixelsToUnit": 100,
|
"pixelsToUnit": 100,
|
||||||
"pivotX": 0.5,
|
"pivotX": 0.5,
|
||||||
@@ -2508,10 +2508,10 @@
|
|||||||
"height": 274,
|
"height": 274,
|
||||||
"rawWidth": 428,
|
"rawWidth": 428,
|
||||||
"rawHeight": 274,
|
"rawHeight": 274,
|
||||||
"borderTop": 0,
|
"borderTop": 22,
|
||||||
"borderBottom": 0,
|
"borderBottom": 32,
|
||||||
"borderLeft": 0,
|
"borderLeft": 29,
|
||||||
"borderRight": 0,
|
"borderRight": 35,
|
||||||
"packable": true,
|
"packable": true,
|
||||||
"pixelsToUnit": 100,
|
"pixelsToUnit": 100,
|
||||||
"pivotX": 0.5,
|
"pivotX": 0.5,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -96,7 +96,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
/* 显示角色血*/
|
/* 显示角色血*/
|
||||||
this.top_node.getChildByName("hp").active = true;
|
this.top_node.getChildByName("hp").active = true;
|
||||||
|
|
||||||
this.top_node.getChildByName("mp").active = false
|
this.top_node.getChildByName("mp").active = true
|
||||||
|
|
||||||
this.top_node.getChildByName("shield").active = false;
|
this.top_node.getChildByName("shield").active = false;
|
||||||
// 初始隐藏血条(有更新时才显示)
|
// 初始隐藏血条(有更新时才显示)
|
||||||
@@ -111,8 +111,8 @@ export class HeroViewComp extends CCComp {
|
|||||||
/** 初始化 UI 节点引用 */
|
/** 初始化 UI 节点引用 */
|
||||||
private initUINodes() {
|
private initUINodes() {
|
||||||
this.top_node = this.node.getChildByName("top");
|
this.top_node = this.node.getChildByName("top");
|
||||||
let hp_y = this.node.getComponent(UITransform).height+10;
|
// let hp_y = this.node.getComponent(UITransform).height+10;
|
||||||
this.top_node.setPosition(0, hp_y, 0);
|
// this.top_node.setPosition(0, hp_y, 0);
|
||||||
smc.updateHeroInfo(this.model)
|
smc.updateHeroInfo(this.model)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user