feat(界面): 为英雄信息组件添加出售按钮节点
- 在 HInfoComp 组件中新增 sell_node 属性用于关联出售按钮 - 在 hnode.prefab 中添加出售按钮节点及其子标签节点 - 调整现有节点的位置和缩放以适应新按钮的添加
This commit is contained in:
@@ -14,6 +14,8 @@ const {property, ccclass } = _decorator;
|
||||
export class HInfoComp extends CCComp {
|
||||
@property(Node)
|
||||
icon_node=null!
|
||||
@property(Node)
|
||||
sell_node=null!
|
||||
private eid: number = 0;
|
||||
private model: HeroAttrsComp | null = null;
|
||||
private apLabel: Label | null = null;
|
||||
|
||||
Reference in New Issue
Block a user