ClubGameRuleSetUserItem.js 793 B

123456789101112131415161718192021222324252627
  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. }
  9. },
  10. SetPreInfo: function (Param) {
  11. this._targetID = Param[0];
  12. this._RoomID = Param[1];
  13. this.m_UserCtrl.SetUserByID(Param[0]);
  14. this.m_UserCtrl.SetShowFullName(false,5);
  15. this.$('btDel').active = g_ShowClubInfo.cbClubLevel >= CLUB_LEVEL_MANAGER;
  16. },
  17. OnBtDelUser:function(){
  18. if(g_ShowClubInfo.cbClubLevel < CLUB_LEVEL_MANAGER){
  19. this.ShowTips('許可權不足,無法操作');
  20. return;
  21. }
  22. window.gClubClientKernel.OnSendKickUser(this._targetID,this._RoomID);
  23. },
  24. });