Exemplo n.º 1
0
 void Start()
 {
     HistorialRoot = UISettingManager.GetUITransform("HistorialRoot");
     HistorialRoot.gameObject.SetActive(false);
     HistoryExitButton = UISettingManager.GetUITransform("HistoryExitButton");
     UISettingManager.AddButtonClickListener("HistoryExitButton", ExitButtonClick);
 }
Exemplo n.º 2
0
    void IniButtonItemEvent()
    {
        NextButton    = UISettingManager.GetUIObject("NextButton").transform;
        PriviosButton = UISettingManager.GetUIObject("PreviousButton").transform;
        int index = 0;

        foreach (Button item in GameItemsRoot.GetComponentsInChildren <Button>())
        {
            Text nameText = item.transform.Find("name").GetComponent <Text>();
            //  nameText.text = jsonTestData.instance.gameItemList[index].name;

            item.onClick.AddListener(delegate() { GameItemClick(item.transform); });
            index++;
        }
        int num = 0;

        foreach (Button item in GameLauncher.GetComponentsInChildren <Button>())
        {
            Text nameText = item.transform.Find("name").GetComponent <Text>();
            // nameText.text = jsonTestData.instance.gameItemList[num].name;
            item.onClick.AddListener(delegate() { GameItemClick(item.transform); });
            num++;
        }

        UISettingManager.AddButtonClickListener("NextButton", NextGamePage);
        UISettingManager.AddButtonClickListener("PreviousButton", PriviousGamePage);
    }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     VideoPlayerRoot.SetActive(false);
     //   VideoScreenBack = UISettingManager.GetUITransform("VideoScreenBack");
     //VideoPlayerRoot = transform.Find("VideoPlayerRoot").gameObject ;
     UISettingManager.AddButtonClickListener("VideoScreenBack", ScreenBack);
     scrMedia.OnEnd += OnEnd;
     Debug.Log("dddd");
 }
Exemplo n.º 4
0
    void Start()
    {
        FavoriteRoot = UISettingManager.GetUITransform("FavoriteRoot");
        FavoriteRoot.gameObject.SetActive(false);

        UISettingManager.AddButtonClickListener("ExitCollectionButton", ExitMyCollectionClick);
        UISettingManager.AddButtonClickListener("LeftFavoritePage", ExitMyCollectionClick);
        UISettingManager.AddButtonClickListener("RightFavoritePage", ExitMyCollectionClick);
        CollectlistContent = UISettingManager.GetUITransform("CollectlistContent");
        foreach (Button item in CollectlistContent.GetComponentsInChildren <Button>())
        {
            collectedItemsList.Add(item);
            item.onClick.AddListener(delegate() { CollectItemClick(item.transform); });
        }
    }
Exemplo n.º 5
0
    void Start()
    {
        userCenterRoot = UISettingManager.GetUITransform("UserCenterRoot");

        foreach (Button item in userCenterRoot.GetComponentsInChildren <Button>())
        {
            item.onClick.AddListener(delegate() { ButtonOnClick(item.transform); });
        }

        CustomerService = UISettingManager.GetUITransform("CustomerService");

        userCenterRoot.gameObject.SetActive(false);
        CustomerService.gameObject.SetActive(false);

        UISettingManager.AddButtonClickListener("SureConnectButon", SureConnectButonClick);
    }
Exemplo n.º 6
0
    void Start()
    {
        LiveVideoCanvasRoot = UISettingManager.GetUITransform("LiveVideoCanvasRoot");
        LiveVideoRoot       = UISettingManager.GetUITransform("LiveVideoRoot");
        LiveStatusText      = UISettingManager.GetUITransform("LiveStatusText").GetComponent <Text>();
        UISettingManager.AddButtonClickListener("LiveBackBtn", BackMainClick);
        // UISettingManager.AddButtonClickListener("ShowBtn", LiveAdjustPanel);
        UISettingManager.AddButtonClickListener("LivePlayButton", LivePlayButtonClick);
        LiveVolumeSlider = UISettingManager.GetUITransform("LiveVolumeSlider").GetComponent <Slider>();
        UISettingManager.AddButtonClickListener("LiveVolumeButton", SetVolumnPanel);
        UISettingManager.AddButtonClickListener("LiveVideoStatusBt", LiveAdjustPanel);
        LiveVolumeSlider.gameObject.SetActive(false);
        LiveLevelControl = UISettingManager.GetUITransform("LiveLevelControl");
        foreach (Button item in LiveLevelControl.GetComponentsInChildren <Button>())
        {
            liveStatusList.Add(item.transform);
            item.onClick.AddListener(delegate() { ChangeLiveStatus(item.transform); });
        }
        LiveLevelControl.gameObject.SetActive(false);

        LiveVideoRoot.gameObject.SetActive(false);
        LiveVideoCanvasRoot.gameObject.SetActive(false);

        if (Application.platform == RuntimePlatform.Android)
        {
            for (int i = 0; i < liveStatusList.Count; i++)
            {
                if (i < TV189MsgReciver.liveDataList.Count)
                {
                    liveStatusList[i].Find("Text").
                    GetComponent <Text>().text = TV189MsgReciver.liveDataList[i].qualityName;
                    liveStatusList[i].name     = TV189MsgReciver.liveDataList[i].qualityid;
                }
                else
                {
                    liveStatusList[i].gameObject.SetActive(false);
                }
            }
            LiveStatusText.text = TV189MsgReciver.liveDataList[0].qualityName;
        }

        //if (Application.platform==RuntimePlatform.Android )
        //{

        //}
    }
Exemplo n.º 7
0
    private void Initialized()
    {
        VideoDetailRoot    = UIManager.instance.GetGameObject("VideoDetailRoot").transform;
        VideoPoster        = UISettingManager.GetUITransform("VideoPoster").GetComponent <RawImage>();
        CollectionButton   = UISettingManager.GetUITransform("CollectionButton");
        BackLauncherButton = UISettingManager.GetUITransform("BackLauncherButton");
        PlayVidButton      = UISettingManager.GetUITransform("PlayVidButton");
        VideoDetailName    = UISettingManager.GetUITransform("VideoDetailName").GetComponent <Text>();
        CountryName        = UISettingManager.GetUITransform("CountryName").GetComponent <Text>();;
        IntroduceText      = UISettingManager.GetUITransform("IntroduceText").GetComponent <Text>();
        UISettingManager.AddButtonClickListener(PlayVidButton.gameObject, PlayVideoClick);
        UISettingManager.AddButtonClickListener(CollectionButton.gameObject, CollectButtonClick);
        UISettingManager.AddButtonClickListener(BackLauncherButton.gameObject, BackLauncherClick);
        collectImage = CollectionButton.GetComponent <Image>();

        VideoDetailRoot.gameObject.SetActive(false);
    }
Exemplo n.º 8
0
    void Start()
    {
        LiveRoot         = UISettingManager.GetUITransform("LiveRoot");
        LiveItemCotent   = UISettingManager.GetUITransform("LiveItemCotent");
        livePageShowText = UISettingManager.GetUITransform("LivePageShowText").GetComponent <Text>();
        LiveNextPage     = UISettingManager.GetUITransform("LiveNextPage");
        LivePreviosPage  = UISettingManager.GetUITransform("LivePreviosPage");
        //   UISettingManager.AddButtonClickListener("LiveExitButton", ExitLive);
        UISettingManager.AddButtonClickListener("LiveNextPage", NextLivePage);
        UISettingManager.AddButtonClickListener("LivePreviosPage", PriviousLivePage);

        LiveRoot.gameObject.SetActive(false);
        if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            StreamReader read = new StreamReader(Application.dataPath + "/Resources/select.json");

            jsonTxt = read.ReadToEnd();
        }
    }
Exemplo n.º 9
0
    void Start()
    {
        //  mediaPlayerCtrl = GameObject.Find("VideoPlayFather").transform.
        // Find("Cinema/VideoScreen").GetComponent<MediaPlayerCtrl>();

        VolumeSlider = UISettingManager.GetUITransform("VolumeSlider").GetComponent <Slider>();
        //     VideoCanvasRoot = UISettingManager.GetUIObject("VideoCanvasRoot");
        PlayButton       = UISettingManager.GetUITransform("PlayButton");
        SelectImage      = UISettingManager.GetUITransform("SelectImage");
        VideoStatusImage = UISettingManager.GetUITransform("VideoStatusBt").GetComponent <Image>();
        UISettingManager.AddButtonClickListener("PlayButton", PlayVideoClick);
        UISettingManager.AddButtonClickListener("VideoStatusBt", VideoStatusclick);
        UISettingManager.AddButtonClickListener("BackMainBtn", BackMainClick);
        UISettingManager.AddButtonClickListener("ShowBtn", ShowVideoAdjustPanel);
        UISettingManager.AddButtonClickListener("VolumeButton", SetVolumnPanel);
        UISettingManager.AddButtonClickListener("ReplayButton", ReplayClick);
        LevelControl = UISettingManager.GetUITransform("LevelControl");

        VideoContolRoot = UISettingManager.GetUITransform("VideoContolRoot");
        foreach (Button item in LevelControl.GetComponentsInChildren <Button>())
        {
            item.onClick.AddListener(delegate() { VideoStatusChange(item); });
            buttonList.Add(item);
        }
        if (SceneManager.GetActiveScene().name == "PlayerVR")
        {
            VideoCanvasRoot.SetActive(true);
            VideoCanvasRoot.transform.Find("VideoContolRoot").gameObject.SetActive(false);
        }
        else
        {
            VideoCanvasRoot.transform.Find("VideoContolRoot").gameObject.SetActive(false);
            // VideoContolRoot.gameObject.SetActive(false);
        }


        VolumeSlider.gameObject.SetActive(false);
        LevelControl.gameObject.SetActive(false);
    }