|
|
@@ -27,8 +27,8 @@ export class UIBG extends cc.Component {
|
|
|
private color = new cc.Color(0, 0, 0, 120);
|
|
|
@property({ displayName: '点击关闭' })
|
|
|
private bClickClose: boolean = false;
|
|
|
- @property({ displayName: '自定义关闭按钮', type: cc.Button })
|
|
|
- private btn_close: cc.Button = null!;
|
|
|
+ // @property({ displayName: '自定义关闭按钮', type: cc.Button })
|
|
|
+ // private btn_close: cc.Button = null!;
|
|
|
|
|
|
/** 背景节点 */
|
|
|
private node_bg: cc.Node = null;
|
|
|
@@ -45,7 +45,7 @@ export class UIBG extends cc.Component {
|
|
|
this.node_bg.zIndex = -10000;
|
|
|
this.node_bg.addComponent(cc.Button);
|
|
|
this.node_bg.on('click', this.initClick, this);
|
|
|
- this.btn_close && this.btn_close.node.on('click', this.onClickClose, this);
|
|
|
+ // this.btn_close && this.btn_close.node.on('click', this.onClickClose, this);
|
|
|
}
|
|
|
|
|
|
/**
|