BlockedUserItem.js 645 B

1234567891011121314151617181920212223242526272829303132
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {},
  4. onLoad: function () {
  5. },
  6. start: function () {
  7. },
  8. InitPre: function () {
  9. this.node.active = false;
  10. },
  11. SetPreInfo: function (Param) {
  12. this.node.active = true;
  13. this.m_Index = Param.Index;
  14. this.m_Info = Param.Info;
  15. this.$('@UserCtrl').SetUserByID(this.m_Info.UserID);
  16. },
  17. OnClicked_Relieve: function() {
  18. cc.gSoundRes.PlaySound('Button');
  19. if(this.m_Hook && this.m_Hook.OnSetBlocked) this.m_Hook.OnSetBlocked(this.m_Info, 0);
  20. },
  21. // update (dt) {},
  22. });