RoomRes.js 694 B

1234567891011121314151617181920212223242526
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. },
  5. OnShowData:function(dwRoomID, dwClubID, wKindID){
  6. this.m_dwRoomID = dwRoomID;
  7. this.m_dwClubID = dwClubID;
  8. this.m_wKindID = wKindID;
  9. this.$('LbRoom@Label').string = this.m_dwRoomID;
  10. },
  11. OnClick_BtCreat:function(){
  12. this.HideView();
  13. this.m_Hook.OnBtCreatRoom();
  14. },
  15. OnClick_BtJoin:function(){
  16. this.HideView();
  17. this.m_Hook.OnQueryRoom(this.m_dwRoomID, this.m_dwClubID);
  18. },
  19. OnHideView:function(){
  20. this.node.active = false;
  21. if(this.m_Hook.OnLoadOwnRoomList) this.m_Hook.OnLoadOwnRoomList();
  22. },
  23. });