void Start() { HistorialRoot = UISettingManager.GetUITransform("HistorialRoot"); HistorialRoot.gameObject.SetActive(false); HistoryExitButton = UISettingManager.GetUITransform("HistoryExitButton"); UISettingManager.AddButtonClickListener("HistoryExitButton", ExitButtonClick); }
void Start() { aboultRoot = UISettingManager.GetUITransform("AboultPartRoot"); aboultRoot.gameObject.SetActive(false); ExitAboutButton = UISettingManager.GetUITransform("ExitAboutButton"); CheckVersonButton = UISettingManager.GetUITransform("CheckVersonButton"); userAgreementButton = UISettingManager.GetUITransform("userAgreementButton"); PrivacyButton = UISettingManager.GetUITransform("PrivacyButton"); AddButtonLister(ExitAboutButton); }
void Start() { SubscribeRoot = UISettingManager.GetUITransform("SubscribeRoot"); ExitSubscribeButton = UISettingManager.GetUITransform("ExitSubscribeButton"); LeftFavoritePage = UISettingManager.GetUITransform("LeftFavoritePage"); RightFavoritePage = UISettingManager.GetUITransform("RightFavoritePage"); SubscribeRoot.gameObject.SetActive(false); AddButtonLister(ExitSubscribeButton); AddButtonLister(LeftFavoritePage); AddButtonLister(RightFavoritePage); }
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); }); } }
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); }
public void IniRecommendContent() { RecommendConntent = UISettingManager.GetUITransform("RecommendConntent"); dataItem = UISettingManager.GetUITransform("DataItem"); dataItem.Find("name").GetComponent <Text>().text = JsonDataManager.leftRecoItem.title; dataItem.name = JsonDataManager.leftRecoItem.contentId; ////把该item添加进去字典里 VideoItem leftItems = new VideoItem(); leftItems.contentId = JsonDataManager.leftRecoItem.contentId; leftItems.title = JsonDataManager.leftRecoItem.title; leftItems.subscript = JsonDataManager.leftRecoItem.subscript; leftItems.clickType = JsonDataManager.leftRecoItem.clickType; leftItems.clickParam = JsonDataManager.leftRecoItem.clickParam; if (!JsonDataManager.VideosDic.ContainsKey(leftItems.contentId)) { JsonDataManager.VideosDic.Add(leftItems.contentId, leftItems);//加载图片完成后,加入字典。根据id添加 } RawImage raw = dataItem.Find("poster").GetComponent <RawImage>(); JsonDataManager.instance.SetImage(JsonDataManager.leftRecoItem.cover, leftItems, raw); int num = 0; foreach (Button item in RecommendConntent.GetComponentsInChildren <Button>()) { item.transform.Find("name").GetComponent <Text>().text = JsonDataManager.childrenItems[num].title; RawImage rawIm = item.transform.Find("poster").GetComponent <RawImage>(); item.name = JsonDataManager.childrenItems[num].contentId;//把每个item控件名称为id VideoItem Items = new VideoItem(); Items.contentId = JsonDataManager.childrenItems[num].contentId; Items.title = JsonDataManager.childrenItems[num].title; Items.subscript = JsonDataManager.childrenItems[num].subscript; Items.clickType = JsonDataManager.childrenItems[num].clickType; Items.clickParam = JsonDataManager.childrenItems[num].clickParam; //Items.coverTexture = JsonDataManager.childrenItems[num].cover; if (!JsonDataManager.VideosDic.ContainsKey(Items.contentId)) { // // Debug.Log(Items.name); JsonDataManager.VideosDic.Add(Items.contentId, Items);//加载图片完成后,加入字典。根据id添加 } JsonDataManager.instance.SetImage(JsonDataManager.childrenItems[num].cover, Items, rawIm); num++; } }
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 ) //{ //} }
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); }
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(); } }
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); }
void Start() { accountRoot = UISettingManager.GetUITransform("AccountSettingRoot"); AccountView = UISettingManager.GetUITransform("AccountView"); HeadPortraitButton = UISettingManager.GetUITransform("HeadPortraitButton"); ExitAccountButton = UISettingManager.GetUITransform("ExitAccountButton"); CancellationButton = UISettingManager.GetUITransform("CancellationButton"); SaveHeadPortrait = UISettingManager.GetUITransform("SaveHeadPortrait"); HeadPortraitButton = UISettingManager.GetUITransform("HeadPortraitButton"); BackUserCenter = UISettingManager.GetUITransform("BackUserCenter"); PortraitView = UISettingManager.GetUITransform("PortraitView"); HeadPortraitList = UISettingManager.GetUITransform("HeadPortraitList"); foreach (Button item in HeadPortraitList.GetComponentsInChildren <Button>()) { } PortraitView.gameObject.SetActive(false); accountRoot.gameObject.SetActive(false); AddButtonLister(HeadPortraitButton); AddButtonLister(ExitAccountButton); AddButtonLister(CancellationButton); AddButtonLister(SaveHeadPortrait); AddButtonLister(BackUserCenter); }