2 Commits

Author SHA1 Message Date
pan
bb098d690b feat: 新增英雄升级测试模拟数据并修复UI预制件关联
1. 为英雄成长数据添加测试用模拟数据,用于验证英雄升级功能
2. 修复role_controller预制件的hero_btn和tals_btn控件绑定
3. 调整cHero预制件的控件结构与关联关系
2026-08-24 11:16:25 +08:00
pan
2e3624e9ad fix(assets): 修复多个资源文件的布局与配置参数
1. 调整RPG地图物体的Y轴位置
2. 修正UI图集的边框数值为整数
3. 更新卡牌预制体的尺寸、边距与缩放参数
4. 调整英雄界面的位置与布局参数
5. 修复角色控制器的预制体组件关联与属性覆盖配置
2026-08-24 10:22:28 +08:00
8 changed files with 944 additions and 2006 deletions

View File

@@ -457,7 +457,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -320,
"y": 45.781,
"z": 0
},
"_lrot": {

File diff suppressed because it is too large Load Diff

View File

@@ -2614,7 +2614,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 9.319,
"y": 0,
"z": 0
},
"_lrot": {
@@ -2626,8 +2626,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": -2,
"y": 2,
"x": -1,
"y": 1,
"z": 1
},
"_mobility": 0,
@@ -2743,8 +2743,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"height": 140
"width": 90,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2793,10 +2793,10 @@
},
"_alignFlags": 45,
"_target": null,
"_left": 5,
"_right": 5,
"_top": 5,
"_bottom": 5,
"_left": 15,
"_right": 15,
"_top": 35,
"_bottom": 35,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,

File diff suppressed because it is too large Load Diff

View File

@@ -30,18 +30,18 @@
],
"_active": true,
"_components": [
{
"__id__": 290
},
{
"__id__": 292
},
{
"__id__": 294
},
{
"__id__": 296
},
{
"__id__": 298
}
],
"_prefab": {
"__id__": 296
"__id__": 300
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3795,9 +3795,13 @@
"home_btn": {
"__id__": 181
},
"hero_btn": null,
"hero_btn": {
"__id__": 141
},
"rank_btn": null,
"tals_btn": null,
"tals_btn": {
"__id__": 212
},
"heros_page": {
"__id__": 88
},
@@ -4009,6 +4013,12 @@
},
{
"__id__": 289
},
{
"__id__": 290
},
{
"__id__": 292
}
],
"removedComponents": []
@@ -4040,7 +4050,7 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 1177.658,
"y": 1175,
"z": 0
}
},
@@ -4083,7 +4093,7 @@
"propertyPath": [
"_top"
],
"value": 67.34200000000021
"value": 70
},
{
"__type__": "cc.TargetInfo",
@@ -4121,6 +4131,38 @@
],
"value": true
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 291
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"71PjuREPhL54gIRBLnZ//L"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 293
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"41v9yb+khAT5fF0JOnsr2d"
]
},
{
"__type__": "cc.UITransform",
"_name": "GameUI<UITransform>",
@@ -4131,7 +4173,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 291
"__id__": 295
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4159,7 +4201,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 293
"__id__": 297
},
"_alignFlags": 45,
"_target": null,
@@ -4195,7 +4237,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 295
"__id__": 299
},
"debugMode": false,
"_id": ""
@@ -4216,19 +4258,19 @@
"instance": null,
"targetOverrides": [
{
"__id__": 297
"__id__": 301
},
{
"__id__": 300
"__id__": 304
},
{
"__id__": 303
"__id__": 307
},
{
"__id__": 306
"__id__": 310
},
{
"__id__": 309
"__id__": 313
}
],
"nestedPrefabInstanceRoots": [
@@ -4273,7 +4315,7 @@
"__id__": 3
},
"sourceInfo": {
"__id__": 298
"__id__": 302
},
"propertyPath": [
"hero1"
@@ -4282,7 +4324,7 @@
"__id__": 3
},
"targetInfo": {
"__id__": 299
"__id__": 303
}
},
{
@@ -4303,7 +4345,7 @@
"__id__": 3
},
"sourceInfo": {
"__id__": 301
"__id__": 305
},
"propertyPath": [
"hero2"
@@ -4312,7 +4354,7 @@
"__id__": 3
},
"targetInfo": {
"__id__": 302
"__id__": 306
}
},
{
@@ -4333,7 +4375,7 @@
"__id__": 3
},
"sourceInfo": {
"__id__": 304
"__id__": 308
},
"propertyPath": [
"hero3"
@@ -4342,7 +4384,7 @@
"__id__": 3
},
"targetInfo": {
"__id__": 305
"__id__": 309
}
},
{
@@ -4363,7 +4405,7 @@
"__id__": 3
},
"sourceInfo": {
"__id__": 307
"__id__": 311
},
"propertyPath": [
"hero4"
@@ -4372,7 +4414,7 @@
"__id__": 3
},
"targetInfo": {
"__id__": 308
"__id__": 312
}
},
{
@@ -4393,7 +4435,7 @@
"__id__": 3
},
"sourceInfo": {
"__id__": 310
"__id__": 314
},
"propertyPath": [
"hero5"
@@ -4402,7 +4444,7 @@
"__id__": 3
},
"targetInfo": {
"__id__": 311
"__id__": 315
}
},
{

View File

@@ -118,8 +118,8 @@
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 44.5,
"borderRight": 44.5,
"borderLeft": 44,
"borderRight": 44,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -4994,8 +4994,8 @@
"rawHeight": 45,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 40.5,
"borderRight": 40.5,
"borderLeft": 40,
"borderRight": 40,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -5040,8 +5040,8 @@
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 34.5,
"borderRight": 34.5,
"borderLeft": 34,
"borderRight": 34,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -5086,8 +5086,8 @@
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 34.5,
"borderRight": 34.5,
"borderLeft": 34,
"borderRight": 34,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,

View File

@@ -3934,8 +3934,8 @@
"height": 57,
"rawWidth": 90,
"rawHeight": 57,
"borderTop": 28.5,
"borderBottom": 28.5,
"borderTop": 28,
"borderBottom": 28,
"borderLeft": 45,
"borderRight": 45,
"packable": true,

View File

@@ -110,7 +110,17 @@ export class SingletonModuleComp extends ecs.Comp {
shop: false, // 购买药品面板按钮
},
/** 英雄局外成长数据:记录每个英雄的局外等级与碎片数量 */
hero_growth: {} as Record<number, HeroGrowthRecord>,
// TODO: 以下为测试英雄升级功能的模拟数据,验证通过后需移除(避免污染云端存档)
hero_growth: {
// 碎片充足:可连升 2 级(10+20=30,剩余 20 不够升 4 级)
5001: { uuid: 5001, lv: 1, fragments: 50 },
// 碎片不足:升 4 级需 40,验证升级失败路径
5002: { uuid: 5002, lv: 3, fragments: 15 },
// 碎片刚好够升到满级:升 6 级需 160
5003: { uuid: 5003, lv: 5, fragments: 160 },
// 已满级:验证满级后 upgradeHero 返回 false
5004: { uuid: 5004, lv: 6, fragments: 999 },
} as Record<number, HeroGrowthRecord>,
}
vmdata: any = {