| 123456789101112131415161718192021222324252627282930313233 |
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class ItemName extends cc.Component{
- @property({displayName: '复选组件', type: cc.Toggle})
- public toggle: cc.Toggle = null;
- @property({displayName: '名字', type: cc.Label})
- public lbl_name: cc.Label = null;
- @property({displayName: '是否解锁标识', type: cc.Node})
- public sp_luck: cc.Node = null;
- @property({displayName: '红点', type: cc.Node})
- public node_redPoint: cc.Node = null;
- start(){
- }
- InitUI(name: string, luck: boolean, showRedPoint: boolean)
- {
- }
- setShowUIState(luck: boolean, showRedPoint: boolean)
- {
- this.sp_luck.active = luck;
- this.node_redPoint.active = showRedPoint;
- }
- }
|