LevelHomeTop.js 518 B

123456789101112131415161718192021222324252627282930
  1. const ThemeManager = require('../utils/ThemeManger');
  2. cc.Class({
  3. extends: cc.Component,
  4. properties: {
  5. bgSprite: cc.Sprite,
  6. coverSprite: cc.Sprite,
  7. },
  8. // LIFE-CYCLE CALLBACKS:
  9. // onLoad () {},
  10. start () {
  11. },
  12. updateItem() {
  13. ThemeManager.setTopBgBuildSpriteFrame(1, this.bgSprite);
  14. ThemeManager.setTopCoverSpriteFrame(1, this.coverSprite);
  15. },
  16. deleteItem() {
  17. this._listViewAdapter.removeItem(this);
  18. },
  19. // update (dt) {},
  20. });