feat(hero-info): 实现自动生成英雄技能描述文本
新增HeroSkillDesc工具类动态生成技能描述字符串 修正heroSet.ts中的技能触发器描述文本 优化HInfoComp组件替换硬编码的英雄信息 完善hnode预制体的info标签配置与样式
This commit is contained in:
@@ -54,18 +54,18 @@
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 444
|
||||
},
|
||||
{
|
||||
"__id__": 446
|
||||
},
|
||||
{
|
||||
"__id__": 448
|
||||
},
|
||||
{
|
||||
"__id__": 450
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 450
|
||||
"__id__": 452
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -9594,18 +9594,18 @@
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 437
|
||||
},
|
||||
{
|
||||
"__id__": 439
|
||||
},
|
||||
{
|
||||
"__id__": 441
|
||||
},
|
||||
{
|
||||
"__id__": 443
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 443
|
||||
"__id__": 445
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -9827,10 +9827,13 @@
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 434
|
||||
},
|
||||
{
|
||||
"__id__": 436
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 436
|
||||
"__id__": 438
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -9889,6 +9892,74 @@
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "e5AR/R3blDqZJioB55xQMd"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 433
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 437
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "label",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 21,
|
||||
"_fontSize": 20,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 40,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": true,
|
||||
"_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": "a4aoaDD+FBU6Rtemm9p9yx"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
@@ -9912,7 +9983,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 438
|
||||
"__id__": 440
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -9940,7 +10011,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 440
|
||||
"__id__": 442
|
||||
},
|
||||
"_alignFlags": 0,
|
||||
"_target": null,
|
||||
@@ -9976,7 +10047,7 @@
|
||||
},
|
||||
"_enabled": false,
|
||||
"__prefab": {
|
||||
"__id__": 442
|
||||
"__id__": 444
|
||||
},
|
||||
"_resizeMode": 1,
|
||||
"_layoutType": 3,
|
||||
@@ -10027,7 +10098,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 445
|
||||
"__id__": 447
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -10055,7 +10126,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 447
|
||||
"__id__": 449
|
||||
},
|
||||
"icon_node": {
|
||||
"__id__": 105
|
||||
@@ -10100,7 +10171,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 449
|
||||
"__id__": 451
|
||||
},
|
||||
"_alignFlags": 44,
|
||||
"_target": null,
|
||||
|
||||
Reference in New Issue
Block a user