AndroidItem.js 1012 B

1234567891011121314151617181920212223242526272829303132333435
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. },
  5. InitPre: function () {
  6. if(this.m_userCtrl == null){
  7. this.m_userCtrl = this.$('@UserCtrl');
  8. this.m_LbIndex = this.$('LbIndex@Label');
  9. this.m_LbScore = this.$('LbScore@Label');
  10. }
  11. },
  12. SetPreInfo: function (InfoArr) {
  13. this.m_LbIndex.string = parseInt(InfoArr[1][2]);
  14. this.m_LbScore.string = Score2Str(parseInt(InfoArr[1][1]));
  15. this.m_userCtrl.SetUserByID(InfoArr[1][0]);
  16. this._userID = InfoArr[1][0];
  17. this.$('BtSetScore').active = g_ShowClubInfo.wKindID >0;
  18. },
  19. OnClicked_Del: function() {
  20. window.gClubClientKernel.onSendDeleteAndroid(this.m_Hook, g_ShowClubInfo.dwClubID,this._userID);
  21. },
  22. OnClicked_SetScore: function() {
  23. this.m_Hook.onShowClubInput(1,this);
  24. },
  25. onSetAndroidScore:function(Score){
  26. this.m_Hook.onSetAndroidScore(this._userID,Score);
  27. },
  28. });