feat: 为工具提示添加阵营区分显示

扩展 Tooltip 系统以支持根据伤害来源的阵营(英雄或怪物)显示不同的文本标签。修改 HeroViewComp 调用时传递阵营信息,TooltipCom 根据阵营选择对应的本地化键名。同时调整了工具提示预制件的默认激活状态和文本颜色。
This commit is contained in:
panw
2026-03-24 10:16:31 +08:00
parent 78d4b10a88
commit abcbeff9ab
4 changed files with 13 additions and 11 deletions

View File

@@ -106,7 +106,7 @@
"__id__": 3
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 17
@@ -565,7 +565,7 @@
"__id__": 21
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 35
@@ -2000,8 +2000,8 @@
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 68,
"b": 68,
"g": 140,
"b": 0,
"a": 255
},
"_string": "9999",