123456789101112131415161718192021222324252627282930 |
- const ThemeManager = require('../utils/ThemeManger');
- cc.Class({
- extends: cc.Component,
- properties: {
- bgSprite: cc.Sprite,
- coverSprite: cc.Sprite,
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- updateItem() {
- ThemeManager.setTopBgBuildSpriteFrame(1, this.bgSprite);
- ThemeManager.setTopCoverSpriteFrame(1, this.coverSprite);
- },
- deleteItem() {
- this._listViewAdapter.removeItem(this);
- },
- // update (dt) {},
- });
|