GameFriendItem.js 640 B

1234567891011121314151617181920212223242526272829303132333435
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. avatarSprite: cc.Sprite,
  5. genderSprite: cc.Sprite,
  6. genderSpriteFrames: [cc.SpriteFrame],
  7. presentNode: cc.Node,
  8. presentSpriteFrames: [cc.SpriteFrame],
  9. userNameRichText: cc.RichText,
  10. levelLabel: cc.Label
  11. },
  12. // LIFE-CYCLE CALLBACKS:
  13. // onLoad () {},
  14. start () {
  15. },
  16. setListViewAdapter (listViewAdapter) {
  17. this._listViewAdapter = listViewAdapter;
  18. },
  19. updateItem(userInfo, itemId) {
  20. this._itemId = itemId;
  21. // this._starData = userInfo;
  22. },
  23. // update (dt) {},
  24. });