GamePlayItem.js 541 B

123456789101112131415161718192021222324
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. m_Label:[cc.Label]
  5. },
  6. InitPre:function(){
  7. },
  8. SetPreInfo:function(ParaArr){
  9. this.m_Label[0].string = ParaArr[1][0];
  10. this.m_Label[1].string = ParaArr[1][0];
  11. this._KindID = ParaArr[1][1];
  12. if(ParaArr[0] == 0){
  13. this.$('@Toggle').check();
  14. }
  15. },
  16. OnTogClick:function(){
  17. // this.m_Hook.OnShowGame();
  18. this.m_Hook.OnToggleSelGame(null,this._KindID);
  19. },
  20. });