LevelHomeBottom.js 583 B

123456789101112131415161718192021222324252627282930313233343536
  1. const ThemeManager = require("../utils/ThemeManger");
  2. cc.Class({
  3. extends: cc.Component,
  4. properties: {
  5. bottomSprite: cc.Sprite
  6. },
  7. // LIFE-CYCLE CALLBACKS:
  8. // onLoad () {},
  9. start () {
  10. },
  11. init() {
  12. },
  13. updateItem() {
  14. this.cityId = 1;
  15. ThemeManager.setBottomBuildSpriteFrame(this.cityId, this.bottomSprite);
  16. },
  17. setListViewAdapter(listViewAdapter) {
  18. this._listViewAdapter = listViewAdapter;
  19. },
  20. deleteItem() {
  21. this._listViewAdapter.removeItem(this);
  22. },
  23. // update (dt) {},
  24. });