GameTag.js 620 B

1234567891011121314151617181920212223242526272829
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. },
  5. onLoad:function(){
  6. this._gameName1 = this.$('Background/Label@Label');
  7. this._gameName2 = this.$('checkmark/Label@Label');
  8. },
  9. OnClick_tog:function(){
  10. this.m_Hook.OnClick_ToggleGame(null,this._KindID);
  11. },
  12. InitPre:function(){
  13. },
  14. SetPreInfo:function(Info){
  15. console.log(Info);
  16. this._KindID = Info[0];
  17. this._gameName1.string = Info[1];
  18. this._gameName2.string = Info[1];
  19. if(Info[2]) this.$('@Toggle').check();
  20. }
  21. });