TapSet.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Tap_set_Ann from "../../area/Tap_set_Ann";
  2. import { GameViewType } from "../../main/ViewManage";
  3. import ViewObject from "../../main/ViewObject";
  4. import tap_set_control from "./Tap_set_control";
  5. const {ccclass, property} = cc._decorator;
  6. @ccclass
  7. export default class TapSet extends ViewObject {
  8. @property(cc.Label)
  9. label: cc.Label = null;
  10. @property
  11. text: string = 'hello';
  12. public onclickMusic(){
  13. this.main.viewManage.loadFunc(GameViewType.tap_set_music,(viewObject:ViewObject)=>{
  14. viewObject.show(this);
  15. });
  16. }
  17. /**
  18. * 按钮设置
  19. */
  20. public opentap_set_control(){
  21. this.main.viewManage.loadFunc(GameViewType.tap_set_control,(viewObject:ViewObject)=>{
  22. let tap_set_control:tap_set_control = viewObject as tap_set_control;
  23. viewObject.show();
  24. });
  25. }
  26. /**
  27. * 公告
  28. */
  29. public opentap_set_Ann(){
  30. this.main.viewManage.loadFunc(GameViewType.tap_set_Ann,(viewObject:ViewObject)=>{
  31. let tap_set_Ann:Tap_set_Ann = viewObject as Tap_set_Ann;
  32. viewObject.show();
  33. });
  34. }
  35. }