ContractCancelBTN.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. //contract
  5. ContractBG:{
  6. default :null,
  7. type :cc.Node
  8. },
  9. ContractConfirmBTN:{
  10. default :null,
  11. type :cc.Node
  12. },
  13. ContractCancelBTN:{
  14. default :null,
  15. type :cc.Node
  16. },
  17. CompanyNameEditbox:{
  18. default :null,
  19. type :cc.EditBox
  20. },
  21. CEONameEditbox:{
  22. default :null,
  23. type :cc.EditBox
  24. },
  25. // vc dialog
  26. VC:{
  27. default :null,
  28. type :cc.Node
  29. },
  30. DialogBG:{
  31. default :null,
  32. type :cc.Node
  33. },
  34. DialogName:{
  35. default :null,
  36. type :cc.Node
  37. },
  38. DialogConversation:{
  39. default :null,
  40. type :cc.Node
  41. },
  42. Dialog:{
  43. default :null,
  44. type :cc.Node
  45. },
  46. },
  47. Cancel:function()
  48. {
  49. //hide contract
  50. this.ContractBG.active=false;
  51. this.ContractConfirmBTN.active=false;
  52. this.ContractCancelBTN.active=false;
  53. this.CompanyNameEditbox.active=false;
  54. this.CEONameEditbox.active=false;
  55. //show vc dialog
  56. this.VC.active=true;
  57. this.DialogBG.active=true;
  58. this.DialogName.active=true;
  59. this.DialogConversation.active=true;
  60. var DialogConversationLabel = this.DialogConversation.getComponent(cc.Label);
  61. DialogConversationLabel.string = '什么!!!?别这么快拒绝我,你再好好考虑考虑下?';
  62. var DialogScript = this.Dialog.getComponent("Dialog");
  63. DialogScript.EnableTouch = true;
  64. }
  65. });