This commit is contained in:
panw
2026-03-10 11:15:46 +08:00
parent 7c1e09106e
commit 9ef2dd105f
5 changed files with 6096 additions and 1018 deletions

View File

@@ -28,29 +28,29 @@
"__id__": 26
},
{
"__id__": 37
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 56
},
{
"__id__": 48
"__id__": 58
},
{
"__id__": 50
"__id__": 60
},
{
"__id__": 52
"__id__": 62
},
{
"__id__": 54
"__id__": 64
}
],
"_prefab": {
"__id__": 56
"__id__": 66
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -126,8 +126,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": -1,
"y": 1,
"x": -1.2,
"y": 1.2,
"z": 1
},
"_mobility": 0,
@@ -552,6 +552,21 @@
},
{
"__id__": 36
},
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
}
],
"removedComponents": []
@@ -582,8 +597,8 @@
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 107.768,
"x": 0.251,
"y": 166.516,
"z": 0
}
},
@@ -654,6 +669,112 @@
"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",
"_objFlags": 0,
@@ -661,14 +782,14 @@
"__id__": 1
},
"_prefab": {
"__id__": 38
"__id__": 48
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 37
"__id__": 47
},
"asset": {
"__uuid__": "ae4493bd-cbcc-4392-921c-3e2b0fcd5338",
@@ -676,7 +797,7 @@
},
"fileId": "91yoyAQGNDm5ziI7NUChZ+",
"instance": {
"__id__": 39
"__id__": 49
},
"targetOverrides": null
},
@@ -690,19 +811,19 @@
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 40
"__id__": 50
},
{
"__id__": 42
"__id__": 52
},
{
"__id__": 43
"__id__": 53
},
{
"__id__": 44
"__id__": 54
},
{
"__id__": 45
"__id__": 55
}
],
"removedComponents": []
@@ -710,7 +831,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
"__id__": 51
},
"propertyPath": [
"_name"
@@ -726,7 +847,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
"__id__": 51
},
"propertyPath": [
"_lpos"
@@ -741,7 +862,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
"__id__": 51
},
"propertyPath": [
"_lrot"
@@ -757,7 +878,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
"__id__": 51
},
"propertyPath": [
"_euler"
@@ -772,7 +893,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
"__id__": 51
},
"propertyPath": [
"_active"
@@ -789,7 +910,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 47
"__id__": 57
},
"_contentSize": {
"__type__": "cc.Size",
@@ -817,7 +938,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 49
"__id__": 59
},
"anm": {
"__id__": 5
@@ -838,7 +959,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 51
"__id__": 61
},
"debugMode": false,
"_id": ""
@@ -857,7 +978,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 53
"__id__": 63
},
"enabledContactListener": false,
"bullet": false,
@@ -891,7 +1012,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 55
"__id__": 65
},
"tag": 0,
"_group": 4,
@@ -928,7 +1049,7 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 37
"__id__": 47
},
{
"__id__": 26

View File

@@ -217,7 +217,7 @@
"__id__": 33
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 41
@@ -235,7 +235,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -6.942,
"y": -8.389,
"z": 0
},
"_lrot": {
@@ -247,8 +247,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.6,
"x": 0.7,
"y": 0.8,
"z": 1
},
"_mobility": 0,
@@ -1123,8 +1123,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.8,
"x": 0.7,
"y": 1,
"z": 1
},
"_mobility": 0,

View File

@@ -668,10 +668,10 @@
"height": 97,
"rawWidth": 132,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 46,
"borderBottom": 41,
"borderLeft": 38,
"borderRight": 44,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -760,10 +760,10 @@
"height": 107,
"rawWidth": 134,
"rawHeight": 107,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 43,
"borderBottom": 34,
"borderLeft": 58,
"borderRight": 63,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -2508,10 +2508,10 @@
"height": 274,
"rawWidth": 428,
"rawHeight": 274,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 22,
"borderBottom": 32,
"borderLeft": 29,
"borderRight": 35,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,

File diff suppressed because it is too large Load Diff

View File

@@ -96,7 +96,7 @@ export class HeroViewComp extends CCComp {
/* 显示角色血*/
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;
// 初始隐藏血条(有更新时才显示)
@@ -111,8 +111,8 @@ export class HeroViewComp extends CCComp {
/** 初始化 UI 节点引用 */
private initUINodes() {
this.top_node = this.node.getChildByName("top");
let hp_y = this.node.getComponent(UITransform).height+10;
this.top_node.setPosition(0, hp_y, 0);
// let hp_y = this.node.getComponent(UITransform).height+10;
// this.top_node.setPosition(0, hp_y, 0);
smc.updateHeroInfo(this.model)
}