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AS,EAAE,CAAC;QACrB,CAAC;KAEJ,CAAA;IAxBG;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;6CACQ;IAE3B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;gDACW;IALZ,UAAU;QAD9B,OAAO;OACa,UAAU,CA2B9B;IAAD,iBAAC;KAAA;kBA3BoB,UAAU","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyNode } from \"../../common/CCDummyObjects\";\nimport { GameModelManager } from \"../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class SectionBtn extends cc.Component {\n\n @property(cc.Label)\n private label = DummyLabel;\n @property(cc.Node)\n private pointSpr = DummyNode;\n\n private _callback: Function;\n\n setData(chapterId: number, chapterName: string, isCurrChapter: boolean, callback: Function) {\n this._callback = callback;\n this.label.string = chapterId.toString() + \".\" + chapterName;\n if (isCurrChapter) {\n this.pointSpr.active = true;\n cc.tween(this.pointSpr)\n .repeatForever(cc.tween()\n .to(0.5, { scale: 1.15, x: -25 }, { easing: 'sineInOut' })\n .to(0.5, { scale: 1, x: -30 }, { easing: 'sineInOut' }))\n .start();\n this.label.node.color = cc.color(255, 238, 149, 255);\n }\n }\n\n onItemClick() {\n this._callback();\n }\n\n}\n"]}