void Awake() { Instance = this; base.Init(); m_tab = GetUIChild("EquipExchangeTab").GetComponent<MogoSingleButtonList>(); Transform listRoot = GetUIChild("EquipExchangeEquipList"); m_tranDragableCamera = GetUIChild("EquipExchangeEquipListCamera"); m_dragableCamera = m_tranDragableCamera.GetComponentsInChildren<MyDragableCamera>(true)[0]; m_dragableCamera.LeftArrow = GetUIChild("EquipExchangeArrowLeft").gameObject; m_dragableCamera.RightArrow = GetUIChild("EquipExchangeArrowRight").gameObject; Transform dragCameraBegin = GetUIChild("EquipExchangeEquipListCameraPosBegin"); GetUIChild("EquipExchangeContainerCloseBtn").gameObject.AddComponent<MogoUIListener>().MogoOnClick = () => { Hide(); }; m_listView = new MogoListView(m_tranDragableCamera, listRoot, dragCameraBegin, GRID_PREFAB_NAME, true, GRID_GAP, GRID_NUM_PER_PAGE, m_objList); m_lblGoldNum = GetUIChild("EquipExchangeResourceGoldNumLbl").GetComponent<UILabel>(); m_lblMaterilNum = GetUIChild("EquipExchangeResourceDiamondNumLbl").GetComponent<UILabel>(); m_imgMaterial = GetUIChild("EquipExchangeResourceDiamondIcon").GetComponent<UISprite>(); GetUIChild("EquipExchangeTabBtn1").gameObject.AddComponent<MogoUIListener>().MogoOnClick = () => { if (OnTabSelect != null) OnTabSelect(0); }; GetUIChild("EquipExchangeTabBtn2").gameObject.AddComponent<MogoUIListener>().MogoOnClick = () => { if (OnTabSelect != null) OnTabSelect(1); }; gameObject.SetActive(false); }
public void AddList(MogoSingleButtonList btnList, int count, Action<int, GameObject> onLoadObj) { ClearOldObjList(); if (btnList != null) { btnList.SingleButtonList = new List<MogoSingleButton>(); } for (int i = 0; i < count; i++) { int index = i; AssetCacheMgr.GetUIInstance(m_prefabName, (str, id, obj) => { GameObject go = obj as GameObject; Utils.MountToSomeObjWithoutPosChange(go.transform, m_listRoot); if (m_isHorizontal) { go.transform.localPosition = new Vector3(go.transform.localPosition.x + index * m_gap, go.transform.localPosition.y, go.transform.localPosition.z); } else { go.transform.localPosition = new Vector3(go.transform.localPosition.x, go.transform.localPosition.y - index * m_gap, go.transform.localPosition.z); } m_objList.Add(go); go.GetComponent<MyDragCamera>().RelatedCamera = m_tranDragableCamera.GetComponent<Camera>(); onLoadObj(index, go); }); } //重置摄像机 ResetListCamera(count); }
void Awake() { m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_tranRankingUITabList = m_myTransform.FindChild(m_widgetToFullName["RankingUITabList"]); m_tabMogoSingleButtonList = m_tranRankingUITabList.GetComponentsInChildren<MogoSingleButtonList>(true)[0]; m_tabMogoListImproved = m_tranRankingUITabList.GetComponentsInChildren<MogoListImproved>(true)[0]; m_tranRankingUIMainRankDataList = m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankDataList"]); m_mainRankDataMogoSingleButtonList = m_tranRankingUIMainRankDataList.GetComponentsInChildren<MogoSingleButtonList>(true)[0]; m_mainRankDataMogoListImproved = m_tranRankingUIMainRankDataList.GetComponentsInChildren<MogoListImproved>(true)[0]; m_tranRankingUIPlayerRankDataList = m_myTransform.FindChild(m_widgetToFullName["RankingUIPlayerRankDataList"]); m_playerRankDataMogoListImproved = m_tranRankingUIPlayerRankDataList.GetComponentsInChildren<MogoListImproved>(true)[0]; m_lblRankingUIBtnBecameFSText = m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBecameFSText"]).GetComponentsInChildren<UILabel>(true)[0]; m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle1"]).GetComponentsInChildren<UILabel>(true)[0]); m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle2"]).GetComponentsInChildren<UILabel>(true)[0]); m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle3"]).GetComponentsInChildren<UILabel>(true)[0]); m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle4"]).GetComponentsInChildren<UILabel>(true)[0]); m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle5"]).GetComponentsInChildren<UILabel>(true)[0]); for (int i = 0; i < m_listRankingUIMainRankTitle.Count; i++) { m_listRankingUIMainRankTitle[i].effectStyle = UILabel.Effect.None; m_listRankingUIMainRankTitle[i].color = new Color32(63, 27, 4, 255); } m_lblRankingUIMyRankText = m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankText"]).GetComponentsInChildren<UILabel>(true)[0]; m_goGORankingUIMainRankData = m_myTransform.FindChild(m_widgetToFullName["GORankingUIMainRankData"]).gameObject; m_goGORankingUIPanelPlayerInfo = m_myTransform.FindChild(m_widgetToFullName["GORankingUIPanelPlayerInfo"]).gameObject; m_goGORankingUIPanelPlayerEquip = m_myTransform.FindChild(m_widgetToFullName["GORankingUIPanelPlayerEquip"]).gameObject; m_goRankingUIModelShowCase = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelShowCase"]).gameObject; m_modelShowCase = m_goRankingUIModelShowCase.AddComponent<ModelShowCase>(); m_modelShowCase.left = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelViewTopLeft"]); m_modelShowCase.right = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelViewBottomRight"]); m_goRankingUIMyRankShowReward = m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject; m_goGORankingUIWaitingTip = m_myTransform.FindChild(m_widgetToFullName["GORankingUIWaitingTip"]).gameObject; m_goRankingUIMainRankDataArrow = m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankDataArrow"]).gameObject; m_goPanelPlayerEquip = m_myTransform.FindChild(m_widgetToFullName["PanelPlayerEquip"]).gameObject; m_panelPlayerEquip = m_goPanelPlayerEquip.AddComponent<PanelPlayerEquip>(); m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnClose"]).gameObject.AddComponent<RankingUIButton>(); m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBackToRank"]).gameObject.AddComponent<RankingUIButton>(); m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBecameFS"]).gameObject.AddComponent<RankingUIButton>(); m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject.AddComponent<RankingUIButton>(); Initialize(); }
void Awake() { m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_tranUIGridlList = FindTransform("EnergyNoEnoughUIGridList"); m_gridListCamera = FindTransform("EnergyNoEnoughUIGridListCamera").GetComponentsInChildren<Camera>(true)[0]; m_camInitPos = m_gridListCamera.transform.localPosition; m_dragableCamera = m_gridListCamera.GetComponentsInChildren<MyDragableCamera>(true)[0]; m_dragableCamera.LeftArrow = FindTransform("EnergyNoEnoughUIArrowUp").gameObject; m_dragableCamera.RightArrow = FindTransform("EnergyNoEnoughUIArrowDown").gameObject; m_lblEnergyNoEnoughUIProgressBarText = FindTransform("EnergyNoEnoughUIProgressBarText").GetComponentsInChildren<UILabel>(true)[0]; m_lblEnergyNoEnoughUITipText = FindTransform("EnergyNoEnoughUITipText").GetComponentsInChildren<UILabel>(true)[0]; SetEnergyRecover(); m_goEnergyNoEnoughUIProgressBar = FindTransform("EnergyNoEnoughUIProgressBar").gameObject; m_chooseWayMogoSingleButtonList = FindTransform("EnergyNoEnoughUIChooseWay").GetComponentsInChildren<MogoSingleButtonList>(true)[0]; FindTransform("EnergyNoEnoughUIBtnClose").gameObject.AddComponent<EnergyNoEnoughUIButton>(); FindTransform("ChooseWay1").gameObject.AddComponent<EnergyNoEnoughUIButton>(); FindTransform("ChooseWay2").gameObject.AddComponent<EnergyNoEnoughUIButton>(); FindTransform("ChooseWay3").gameObject.AddComponent<EnergyNoEnoughUIButton>(); m_tabTitleLabelList[0] = FindTransform("ChooseWay1TextTitle").GetComponentsInChildren<UILabel>(true)[0]; m_tabTitleLabelList[1] = FindTransform("ChooseWay2TextTitle").GetComponentsInChildren<UILabel>(true)[0]; m_tabTitleLabelList[2] = FindTransform("ChooseWay3TextTitle").GetComponentsInChildren<UILabel>(true)[0]; m_tabDescLabelList[0] = FindTransform("ChooseWay1TextDesc").GetComponentsInChildren<UILabel>(true)[0]; m_tabDescLabelList[1] = FindTransform("ChooseWay2TextDesc").GetComponentsInChildren<UILabel>(true)[0]; m_tabDescLabelList[2] = FindTransform("ChooseWay3TextDesc").GetComponentsInChildren<UILabel>(true)[0]; for (int i = 0; i <= 2; i++) { EnergyNoEnoughUITabUp(i); } CurrentDownTab = (int)EnergyNoEnoughUITab.BuyEnergyTab; Initialize(); }
private void AddList(MogoSingleButtonList btnList, int count, string prefab, Action<int, GameObject> onLoadObj) { if (btnList != null) { btnList.SingleButtonList = new List<MogoSingleButton>(); } for (int i = 0; i < count; i++) { int index = i; AssetCacheMgr.GetUIInstance(prefab, (str, id, obj) => { GameObject go = obj as GameObject; onLoadObj(index, go); }); } }
private void InitMyTongUIObj() { m_myTong = GetUIChild("MyTong"); m_myTongChairmanName = GetUIChild("MyTongChairmanText").GetComponent<UILabel>(); m_myTongNum = GetUIChild("MyTongNumText").GetComponent<UILabel>(); m_myTongMoney = GetUIChild("MyTongMoneyText").GetComponent<UILabel>(); m_myTongNotice = GetUIChild("MyTongNoticeMsgText").GetComponent<UILabel>(); m_myTongMemberListIsNew = GetUIChild("MyTongMemberBtnIcon").GetComponent<UISprite>(); m_myTongSkillIsNew = GetUIChild("MyTongSkillBtnIcon").GetComponent<UISprite>(); m_myTongDragonIsNew = GetUIChild("MyTongDragonBtnIcon").GetComponent<UISprite>(); m_myTongWarIsNew = GetUIChild("MyTongWarBtnIcon").GetComponent<UISprite>(); //公会成员 m_myTongMember = GetUIChild("MyTongMember"); m_myTongMemberTabList = GetUIChild("MyTongMemberTab").GetComponent<MogoSingleButtonList>(); //成员列表 m_myTongMemberList = GetUIChild("MyTongMemberList"); m_myTongMemberListCamera = GetUIChild("MyTongMemberListContentCamera"); m_myTongMemberListCamera.GetComponent<UIViewport>().sourceCamera = GameObject.Find("GlobleUICamera").GetComponent<Camera>(); m_myTongMemberListPageNunm = GetUIChild("MyTongMemberListPageNum").GetComponent<UILabel>(); m_myTongMemberListContentRoot = GetUIChild("MyTongMemberListContent"); m_myTongMemberListButtonList = m_myTongMemberListContentRoot.GetComponent<MogoSingleButtonList>(); m_myTongMemberListCameraBegin = GetUIChild("MyTongMemberListContentPosBegin"); m_myTongMemberListPageHeight = GetUIChild("MyTongMemberListContentBG").localScale.y; m_myTongMemberListCp = GetUIChild("MyTongMemberListCp"); m_myTongMemberListDragCamera = m_myTongMemberListCamera.GetComponent<MyDragableCamera>(); m_myTongMemberListDragCamera.MovePageDone += () => { OnListPageMove(m_myTongMemberListPageNunm, m_myTongMemberListDragCamera, m_myTongMemberDataList.Count, 100, m_myTongMemberListPageHeight); }; //test data //m_myTongMemberDataList = new List<MemberData>(); //for (int i = 0; i < 20; i++) //{ // MemberData data = new MemberData() { contribution = i.ToString(), date = i.ToString(), level = i.ToString(), name = i.ToString(), position = i.ToString(), power = i.ToString(), vocationIcon = i.ToString() }; // m_myTongMemberDataList.Add(data); //} //申请者列表 m_myTongApplicantList = GetUIChild("MyTongApplicantList"); m_myTongApplicantListCamera = GetUIChild("MyTongApplicantListContentCamera"); m_myTongApplicantListDragCamera = m_myTongApplicantListCamera.GetComponent<MyDragableCamera>(); m_myTongApplicantListCamera.GetComponent<UIViewport>().sourceCamera = GameObject.Find("GlobleUICamera").GetComponent<Camera>(); m_myTongApplicantListContentRoot = GetUIChild("MyTongApplicantListContent"); //m_myTongApplicantListButtonList = m_myTongApplicantListContentRoot.GetComponent<MogoSingleButtonList>(); m_myTongApplicantListCameraBegin = GetUIChild("MyTongApplicantListContentPosBegin"); m_myTongApplicantListPageHeight = GetUIChild("MyTongApplicantListContentBG").localScale.y; m_myTongApplicantListPageNunm = GetUIChild("MyTongApplicantListPageNum").GetComponent<UILabel>(); m_myTongApplicantListDragCamera.MovePageDone += () => { OnListPageMove(m_myTongApplicantListPageNunm, m_myTongApplicantListDragCamera, m_myTongApplicantDataList.Count, 100, m_myTongApplicantListPageHeight); }; //test data //m_myTongApplicantDataList = new List<ApplicantData>(); //for (int i = 0; i < 10; i++) //{ // ApplicantData data = new ApplicantData() { level = i.ToString(), name = i.ToString(), power = i.ToString(), vocationIcon = i.ToString() }; // m_myTongApplicantDataList.Add(data); //} //推荐列表 m_myTongPresenterList = GetUIChild("MyTongPresenterList"); m_myTongPresenterListCamera = GetUIChild("MyTongPresenterListContentCamera"); m_myTongPresenterListDragCamera = m_myTongPresenterListCamera.GetComponent<MyDragableCamera>(); m_myTongPresenterListCamera.GetComponent<UIViewport>().sourceCamera = GameObject.Find("GlobleUICamera").GetComponent<Camera>(); m_myTongPresenterListContentRoot = GetUIChild("MyTongPresenterListContent"); m_myTongPresenterListButtonList = m_myTongPresenterListContentRoot.GetComponent<MogoSingleButtonList>(); m_myTongPresenterListCameraBegin = GetUIChild("MyTongPresenterListContentPosBegin"); m_myTongPresenterListPageHeight = GetUIChild("MyTongPresenterListContentBG").localScale.y; m_myTongPresenterListPageNunm = GetUIChild("MyTongPresenterListPageNum").GetComponent<UILabel>(); m_myTongPresenterListDragCamera.MovePageDone += () => { OnListPageMove(m_myTongPresenterListPageNunm, m_myTongPresenterListDragCamera, m_myTongPresenterDataList.Count, 100, m_myTongPresenterListPageHeight); }; //test data //m_myTongPresenterDataList = new List<PresenterData>(); //for (int i = 0; i < 10; i++) //{ // PresenterData data = new PresenterData() { level = i.ToString(), name = i.ToString(), power = i.ToString(), vocationIcon = i.ToString() }; // m_myTongPresenterDataList.Add(data); //} //技能列表 m_myTongSkillList = GetUIChild("MyTongSkill"); m_myTongSkillListCamera = GetUIChild("MyTongSkillListCamera"); m_myTongSkillListDragCamera = m_myTongSkillListCamera.GetComponent<MyDragableCamera>(); m_myTongSkillListCamera.GetComponent<UIViewport>().sourceCamera = GameObject.Find("GlobleUICamera").GetComponent<Camera>(); m_myTongSkillListContentRoot = GetUIChild("MyTongSkillList"); //m_myTongPresenterListButtonList = m_myTongPresenterListContentRoot.GetComponent<MogoSingleButtonList>(); m_myTongSkillListCameraBegin = GetUIChild("MyTongSkillListPosBegin"); m_myTongSkillListPageWidth = GetUIChild("MyTongSkillListBG").localScale.x; m_myTongSkillListDragCamera.MovePageDone += () => { }; //test data //m_myTongSkillDataList = new List<TongSkillData>(); //for (int i = 0; i < 8; i++) //{ // TongSkillData data = new TongSkillData() { name = i.ToString(), effect1 = i.ToString(), effect2 = i.ToString(), icon = i.ToString(), starNum = i }; // m_myTongSkillDataList.Add(data); //} //龙鳞水晶 m_myTongDragon = GetUIChild("MyTongDragon"); m_myTongDragonLeftTimeLbl = GetUIChild("MyTongDragonBannerTimeText").GetComponent<UILabel>(); m_myTongDragonImg = GetUIChild("MyTongDragonImg").GetComponent<UISprite>(); m_myTongDragonProgressBar = GetUIChild("MyTongDragonProgressBar").GetComponent<MogoProgressBar>(); m_myTongDragonCostlbl1 = GetUIChild("MyTongDragonBtn1Costlbl").GetComponent<UILabel>(); m_myTongDragonCostlbl2 = GetUIChild("MyTongDragonBtn2Costlbl").GetComponent<UILabel>(); m_myTongDragonCostlbl3 = GetUIChild("MyTongDragonBtn3Costlbl").GetComponent<UILabel>(); m_myTongMemberTabLabelList[(int)MyTongMemberUITab.MyTongMemberTab1] = GetUIChild("MyTongMemberTab1Text").GetComponent<UILabel>(); m_myTongMemberTabLabelList[(int)MyTongMemberUITab.MyTongMemberTab2] = GetUIChild("MyTongMemberTab2Text").GetComponent<UILabel>(); m_myTongMemberTabLabelList[(int)MyTongMemberUITab.MyTongMemberTab3] = GetUIChild("MyTongMemberTab3Text").GetComponent<UILabel>(); foreach (var pair in m_myTongMemberTabLabelList) { if (pair.Key == (int)MyTongMemberUITab.MyTongMemberTab1) MyTongMemberTabDown(pair.Key); else MyTongMemberTabUp(pair.Key); } }
private void InitTongListUIObj() { m_otherTong = GetUIChild("OtherTong"); m_tongListCamera = GetUIChild("TongListCamera"); m_tongListCamera.GetComponent<UIViewport>().sourceCamera = GameObject.Find("Camera").GetComponent<Camera>(); m_tongListCameraBegin = GetUIChild("TongListPosBegin"); tonglistPageHeight = GetUIChild("TongListBG").transform.localScale.y; m_tongListRoot = GetUIChild("TongList"); m_tongListBtnList = m_tongListRoot.GetComponent<MogoSingleButtonList>(); m_tongListPageNum = GetUIChild("TongListPageNum").GetComponent<UILabel>(); m_tongListDragCamera = m_tongListCamera.GetComponent<MyDragableCamera>(); m_tongListDragCamera.MovePageDone += (() => { OnListPageMove(m_tongListPageNum, m_tongListDragCamera, m_tongDataList.Count, TONG_LIST_GRID_GAP, tonglistPageHeight); }); m_createTong = GetUIChild("CreateTong"); m_createTongCostLbl = GetUIChild("CreateTongCostNumLbl").GetComponent<UILabel>(); m_createTongInputName = GetUIChild("CreateTongInputlbl").GetComponent<UILabel>(); //test data //m_tongDataList = new List<TongData>(); //for (int i = 0; i < 21; i++) //{ // TongData tong = new TongData() { level = i + "", name = "name" + i, num = (i + 1) + "" }; // m_tongDataList.Add(tong); //} }
void Awake() { Instance = GetComponent<MogoNotice2>(); FillFullNameData(transform); m_sourceCamera = GameObject.Find("GlobleUICamera").GetComponent<Camera>(); gameObject.GetComponent<UIStretch>().uiCamera = m_sourceCamera; m_listCamera = GetTransformByName("NoticeListCamera").gameObject.GetComponent<Camera>(); m_listDragableCamera = m_listCamera.GetComponent<MyDragableCamera>(); GetTransformByName("NoticeListCamera").GetComponent<UIViewport>().sourceCamera = m_sourceCamera; m_titleLbl = GetTransformByName("BannerTitle").GetComponent<UILabel>(); m_dateLbl = GetTransformByName("BannerDate").GetComponent<UILabel>(); m_contentLbl = GetTransformByName("ContentLbl").GetComponent<UILabel>(); m_listRoot = GetTransformByName("NoticeList"); m_buttonList = m_listRoot.GetComponent<MogoSingleButtonList>(); m_listBegin = GetTransformByName("NoticeListPosBegin"); m_listBeginPos = m_listBegin.localPosition; m_listCameraBegin = GetTransformByName("NoticeListCameraPosBegin"); GetTransformByName("NoticeBoxClose").gameObject.AddComponent<MogoBgClose>(); m_contentCamera = GetTransformByName("ContentCamera").GetComponent<Camera>(); m_contentCamera.gameObject.GetComponent<UIViewport>().sourceCamera = m_sourceCamera; Transform contentArea = GetTransformByName("ContentArea"); m_contentBR = GetTransformByName("ContentAreaBR"); m_contentTL = GetTransformByName("ContentAreaTL"); contentArea.GetComponent<MyDragCamera>().RelatedCamera = m_contentCamera; m_contentAreaHeight = contentArea.localScale.y; m_contentCameraBegin = GetTransformByName("ContentCameraPosBegin"); Reset(); //m_callback = new WebViewCallbackTest(); //m_webview = GetComponent<WebViewBehavior>(); //if (m_webview != null) //{ // m_webview.setCallback(m_callback); //} gameObject.SetActive(false); }
void Awake() { m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); Initialize(); m_lisgGridGO = new List<GameObject>(); m_listGridFG = new List<UISlicedSprite>(); m_listGridBG = new List<UISlicedSprite>(); m_listGridUp = new List<UISlicedSprite>(); m_listGridUpBl = new List<UISprite>(); m_listGridNum = new List<UILabel>(); m_equipDetailLblEquip = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailPutUpText"]).GetComponentsInChildren<UILabel>(true)[0]; m_packageGold = m_myTransform.FindChild(m_widgetToFullName["GoldText"]).GetComponentsInChildren<UILabel>(true)[0]; m_packageDiamon = m_myTransform.FindChild(m_widgetToFullName["DiamonText"]).GetComponentsInChildren<UILabel>(true)[0]; m_packageVolume = m_myTransform.FindChild(m_widgetToFullName["PackageInfoNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_packageDragableCamera = m_myTransform.FindChild(m_widgetToFullName["PackageCamera"]).GetComponentsInChildren<MyDragableCamera>(true)[0]; m_packageDragableCamera.OutOfBoundsMaxPage += OnOutOfBoundsMaxPage; m_packageDragableCamera.OutOfBoundsMinPage += OnOutOfBoundsMinPage; m_packageIcoSingleButtonList = FindTransform("PackageIconList").GetComponentsInChildren<MogoSingleButtonList>(true)[0]; m_playerName = m_myTransform.FindChild(m_widgetToFullName["PlayerNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerLevel = m_myTransform.FindChild(m_widgetToFullName["PlayerLevelText"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerNameAndLevel = m_myTransform.FindChild(m_widgetToFullName["PlayerNameAndLevelText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipDetailName = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipDetailNeedLevel = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailNeedLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; //m_equipDetailGrowLevel = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailGrowLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipDetailNeedJob = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailNeedJobType"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipDetailExtra = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailExtraText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipDetailImageFG = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailImageFG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipDetailImageBG = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailImageBG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipDetailImageUsed = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailImageUsed"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipTipCamera = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailBG"]).GetComponentsInChildren<SimpleDragCamera>(true)[0]; m_equipCurrentDetailImageBG = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailImageBG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipCurrentDetailName = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipCurrentDetailNeedLevel = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailNeedLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; //m_equipCurrentDetailGrowLevel = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailGrowLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipCurrentDetailNeedJob = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailNeedJobType"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipCurrentDetailExtra = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailExtraText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipCurrentDetailImageFG = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailImageFG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipCurrentDetailImageUsed = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailImageUsed"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_equipCurrentTipCamera = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDetailBG"]).GetComponentsInChildren<SimpleDragCamera>(true)[0]; m_playerDetailCDDecrease = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeCDDecreaseNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailCrit = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeCritNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailHit = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeHitNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailPVP = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributePVPNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWreck = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWreckNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailPiercing = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributePiercingNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailExplosionBonus = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeExplosionBonusNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailCritResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeCritResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailDefense = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeDefenceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailHealth = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeHealthNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailPVE = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributePVENum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailSpeedUp = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeSpeedUpNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWreckResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWreckResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailEarthElemDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeEarthElemDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWindElemDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWindElemDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWaterElemDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWaterElemDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailFireElemDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeFireElemDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailGoldElemDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeGoldElemDamageNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailEarthElemResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeEarthElemResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWindElemResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWindElemResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailWaterElemResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeWaterElemResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailFireElemResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeFireElemResistenceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerDetailGoldElemResistance = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailAttributeGoldElemResistanceNum"]).GetComponentsInChildren<UILabel>(true)[0]; //m_packageInfoDetailPackage = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailPackage"]).gameObject; //m_packageInfoDetailPlayer = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDetailPlayer"]).gameObject; m_playerInfoEXP = m_myTransform.FindChild(m_widgetToFullName["PlayerExpFG"]).GetComponentsInChildren<UIFilledSprite>(true)[0]; m_playerInfoEnergy = m_myTransform.FindChild(m_widgetToFullName["PlayerEnergyFG"]).GetComponentsInChildren<UIFilledSprite>(true)[0]; m_playerInfoExpNum = m_myTransform.FindChild(m_widgetToFullName["PlayerExpNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoEnergyNum = m_myTransform.FindChild(m_widgetToFullName["PlayerEnergyNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoJob = m_myTransform.FindChild(m_widgetToFullName["PlayerJobName"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoHealth = m_myTransform.FindChild(m_widgetToFullName["PlayerBloodNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoDamage = m_myTransform.FindChild(m_widgetToFullName["PlayerAttackNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoDefense = m_myTransform.FindChild(m_widgetToFullName["PlayerDefenceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_playerInfoPower = m_myTransform.FindChild(m_widgetToFullName["PlayerPowerInfoNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_diamondTipLevel = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_diamondTipType = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailTypeNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_diamondTipDesc = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailEffectNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_diamondTipName = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_ssDiamondTipIcon = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailImageFG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_diamondTipIconBg = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailImageBG"]).GetComponentsInChildren<UISprite>(true)[0]; m_diamondMaxStack = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoDetailMaxStackNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_diamondInfoTip = m_myTransform.FindChild(m_widgetToFullName["DiamondInfoTip"]).gameObject; m_socialTip = m_myTransform.FindChild(m_widgetToFullName["SocialTip"]).gameObject; m_materialTipName = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_materialTipLevel = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailLevelNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_materialTipStack = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailStackNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_materialTipDecs = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailEffectNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_materialTipPrice = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailPriceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_materialTipPriceIcon = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailPriceIcon"]).GetComponentsInChildren<UISprite>(true)[0]; m_materialTipIcon = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailImageFG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_materialTipIconBg = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoDetailImageBG"]).GetComponentsInChildren<UISprite>(true)[0]; m_materialTip = m_myTransform.FindChild(m_widgetToFullName["MaterialInfoTip"]).gameObject; m_propTipName = m_myTransform.FindChild(m_widgetToFullName["PropInfoNameText"]).GetComponentsInChildren<UILabel>(true)[0]; m_propTipStack = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailStackNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_propTipDecs = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailEffectNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_propTipPrice = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailPriceNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_propTipPriceIcon = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailPriceIcon"]).GetComponentsInChildren<UISprite>(true)[0]; m_propTipIcon = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailImageFG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]; m_propTipIconBg = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailImageBG"]).GetComponentsInChildren<UISprite>(true)[0]; m_propTip = m_myTransform.FindChild(m_widgetToFullName["PropInfoTip"]).gameObject; m_propTipUseBtn = m_myTransform.FindChild(m_widgetToFullName["PropInfoDetailCompose"]).gameObject; m_equipSlotBelt = m_myTransform.FindChild(m_widgetToFullName["BeltText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotBreast = m_myTransform.FindChild(m_widgetToFullName["BreastPlateText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotCuish = m_myTransform.FindChild(m_widgetToFullName["CuishText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotHand = m_myTransform.FindChild(m_widgetToFullName["HandGuardText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotHead = m_myTransform.FindChild(m_widgetToFullName["HeadEquipText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotNecklace = m_myTransform.FindChild(m_widgetToFullName["NecklaceText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotRingLeft = m_myTransform.FindChild(m_widgetToFullName["RingLeftText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotRingRight = m_myTransform.FindChild(m_widgetToFullName["RingRightText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotShoes = m_myTransform.FindChild(m_widgetToFullName["ShoesText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotShouders = m_myTransform.FindChild(m_widgetToFullName["ShoudersText"]).GetComponentsInChildren<UILabel>(true)[0]; m_equipSlotWeapon = m_myTransform.FindChild(m_widgetToFullName["WeaponText"]).GetComponentsInChildren<UILabel>(true)[0]; m_lblDialogTitle = m_myTransform.FindChild(m_widgetToFullName["DialogTitle"]).GetComponentsInChildren<UILabel>(true)[0]; m_goPackageItemGridList = m_myTransform.FindChild(m_widgetToFullName["PackageItemGridList"]).gameObject; m_myTransform.FindChild(m_widgetToFullName["EquipModelImageBG"]).gameObject.AddComponent<EquipModelImge>(); m_texShowCharacterWinBG = m_myTransform.FindChild(m_widgetToFullName["PlayerEquipBGTexBG"]).GetComponentsInChildren<UITexture>(true)[0]; for (int i = 0; i < DIAMONDHOLENUM; ++i) { //m_equipDetailDiamondHoleInfo[i] = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDiamonHole" + i + "Text"]).GetComponentsInChildren<UILabel>(true)[0]; //m_equipCurrentDetailDiamondHoleInfo[i] = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDiamonHole" + i + "Text"]).GetComponentsInChildren<UILabel>(true)[0]; } //string _GridWidgetName = "Item"; //for (int i = 0; i < VOLUME; ++i) //{ // m_listGridFG.Add(m_myTransform.FindChild(m_widgetToFullName[_GridWidgetName + i + "FG"]).GetComponentsInChildren<UISlicedSprite>(true)[0]); // m_listGridUp.Add(m_myTransform.FindChild(m_widgetToFullName[_GridWidgetName + i + "Up"]).GetComponentsInChildren<UISlicedSprite>(true)[0]); // m_listGridNum.Add(m_myTransform.FindChild(m_widgetToFullName[_GridWidgetName + i + "Num"]).GetComponentsInChildren<UILabel>(true)[0]); //} for (int i = 0; i < 4; ++i) { //m_arrNewDiamondHoleIcon[i] = m_myTransform.FindChild(m_widgetToFullName["PackageEquipInfoDiamonHole" + (i + 9) + "FG"]).GetComponentsInChildren<UISlicedSprite>(true)[0].gameObject; //m_arrCurrentDiamondHoleIcon[i] = m_myTransform.FindChild(m_widgetToFullName["PackageEquipCurrentInfoDiamonHole" + (i + 9) + "FG"]).GetComponentsInChildren<UISlicedSprite>(true)[0].gameObject; } basicAttr = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailBasicAttribute"]).gameObject; elemAttr = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailElementAttribute"]).gameObject; Camera mySourceCam = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0]; m_myTransform.FindChild(m_widgetToFullName["PackageCamera"]).GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = mySourceCam; m_myTransform.FindChild(m_widgetToFullName["EquipCamera"]).GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = mySourceCam; for (int i = 0; i < 40; ++i) { AddPacakgeItemGrid(MogoUIManager.Instance.CommonAtlas); } m_menuTabUpLabelList[(int)MenuUITab.PlayerTab] = m_myTransform.FindChild(m_widgetToFullName["IconPlayerTextUp"]).GetComponent<UILabel>(); m_menuTabUpLabelList[(int)MenuUITab.PackageTab] = m_myTransform.FindChild(m_widgetToFullName["IconPackageTextUp"]).GetComponent<UILabel>(); m_menuTabUpLabelList[(int)MenuUITab.SkillTab] = m_myTransform.FindChild(m_widgetToFullName["IconSkillTextUp"]).GetComponent<UILabel>(); m_menuTabUpLabelList[(int)MenuUITab.TongTab] = m_myTransform.FindChild(m_widgetToFullName["IconTongTextUp"]).GetComponent<UILabel>(); m_menuTabUpLabelList[(int)MenuUITab.SocialTab] = m_myTransform.FindChild(m_widgetToFullName["IconSocialTextUp"]).GetComponent<UILabel>(); m_menuTabUpLabelList[(int)MenuUITab.SettingsTab] = m_myTransform.FindChild(m_widgetToFullName["IconSettingsTextUp"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.PlayerTab] = m_myTransform.FindChild(m_widgetToFullName["IconPlayerTextDown"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.PackageTab] = m_myTransform.FindChild(m_widgetToFullName["IconPackageTextDown"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.SkillTab] = m_myTransform.FindChild(m_widgetToFullName["IconSkillTextDown"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.TongTab] = m_myTransform.FindChild(m_widgetToFullName["IconTongTextDown"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.SocialTab] = m_myTransform.FindChild(m_widgetToFullName["IconSocialTextDown"]).GetComponent<UILabel>(); m_menuTabDownLabelList[(int)MenuUITab.SettingsTab] = m_myTransform.FindChild(m_widgetToFullName["IconSettingsTextDown"]).GetComponent<UILabel>(); m_packageTabLabelList[(int)PackageUITab.EquipmentTab] = m_myTransform.FindChild(m_widgetToFullName["NormalIconText"]).GetComponent<UILabel>(); m_packageTabLabelList[(int)PackageUITab.JewelTab] = m_myTransform.FindChild(m_widgetToFullName["GemIconText"]).GetComponent<UILabel>(); m_packageTabLabelList[(int)PackageUITab.MaterialTab] = m_myTransform.FindChild(m_widgetToFullName["MaterialIconText"]).GetComponent<UILabel>(); foreach (var pair in m_packageTabLabelList) { if (pair.Key == (int)PackageUITab.EquipmentTab) PackageTabDown(pair.Key); else PackageTabUp(pair.Key); } m_playerDetailTabLabelList[(int)PlayerDetailUITab.BasicAttributeTab] = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailBasicAttributeButtonText"]).GetComponent<UILabel>(); m_playerDetailTabLabelList[(int)PlayerDetailUITab.ElementAttributeTab] = m_myTransform.FindChild(m_widgetToFullName["PlayerDetailElementAttributeButtonText"]).GetComponent<UILabel>(); foreach (var pair in m_playerDetailTabLabelList) { if (pair.Key == (int)PlayerDetailUITab.BasicAttributeTab) PlayerDetailTabDown(pair.Key); else PlayerDetailTabUp(pair.Key); } }
//public static Dictionary<string, Action<int>> ButtonTypeToEventUp = new Dictionary<string, Action<int>>(); void Awake() { m_myTransform = transform; FillFullNameData(m_myTransform); m_sliderMusic = m_myTransform.FindChild(m_widgetToFullName["SettingsUIMusicLoundProgressBar"]).GetComponentsInChildren<MogoSlider>(true)[0]; m_sliderSound = m_myTransform.FindChild(m_widgetToFullName["SettingsUISoundLoundProgressBar"]).GetComponentsInChildren<MogoSlider>(true)[0]; m_sliderMusic.RelatedCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0]; m_sliderSound.RelatedCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0]; m_instance = m_myTransform.GetComponentsInChildren<SettingsUIViewManager>(true)[0]; m_goAdviceDialog = m_myTransform.FindChild(m_widgetToFullName["SettingsUIAdvices"]).gameObject; m_goSettingsDialog = m_myTransform.FindChild(m_widgetToFullName["SettingsUISettings"]).gameObject; m_inputAdvices = m_myTransform.FindChild(m_widgetToFullName["SettingsUIInput"]).GetComponentsInChildren<UIInput>(true)[0]; m_arrGraphicQualityDesripe[2] = m_myTransform.FindChild(m_widgetToFullName["SettingsUIGraphicQualityHighDescripe"]).GetComponentsInChildren<UILabel>(true)[0]; m_arrGraphicQualityDesripe[1] = m_myTransform.FindChild(m_widgetToFullName["SettingsUIGraphicQualityMediumDescripe"]).GetComponentsInChildren<UILabel>(true)[0]; m_arrGraphicQualityDesripe[0] = m_myTransform.FindChild(m_widgetToFullName["SettingsUIGraphicQualityLowDescripe"]).GetComponentsInChildren<UILabel>(true)[0]; m_settingsUIPeopleInScreeBtnList = m_myTransform.FindChild(m_widgetToFullName["SettingsUIPeopleInScreen"]).GetComponentsInChildren<MogoSingleButtonList>(true)[0]; m_settingsUIGraphicQualityBtnList = m_myTransform.FindChild(m_widgetToFullName["SettingsUIGraphicQuality"]).GetComponentsInChildren<MogoSingleButtonList>(true)[0]; Initialize(); m_sliderSound.SetCurrentStatus(SoundManager.SoundVolume); m_sliderMusic.SetCurrentStatus(SoundManager.MusicVolume / 0.7f > 1 ? 1 : SoundManager.MusicVolume / 0.7f); }
void Awake() { m_myTransform = transform; FillFullNameData(m_myTransform); m_instance = m_myTransform.GetComponentsInChildren<InstanceMissionChooseUIViewManager>(true)[0]; m_lblSweepNum = m_myTransform.FindChild(m_widgetToFullName["InstanceLeftChallengeNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_lblResetNum = m_myTransform.FindChild(m_widgetToFullName["InstanceLeftResetNum"]).GetComponentsInChildren<UILabel>(true)[0]; m_camInstanceMissionChooseUI = FindTransform("InstanceMissionChooseUICamera").GetComponentsInChildren<Camera>(true)[0]; m_uicamInstanceMissionChooseUI = m_myTransform.FindChild(m_widgetToFullName["InstanceMissionChooseUICamera"]).GetComponentsInChildren<UICamera>(true)[0]; m_goInstanceMissionChooseUIMapListGrid = m_myTransform.FindChild(m_widgetToFullName["InstanceMissionChooseUIMapListGrid"]).gameObject; m_tranInstanceMissionChooseUIPageDOT = FindTransform("InstanceMissionChooseUIPageDOT"); m_goGOInstanceMissionChooseUI = m_myTransform.FindChild(m_widgetToFullName["GOInstanceMissionChooseUI"]).gameObject; m_goGOInstanceMissionChooseUI.SetActive(false); m_goGOInstanceMissionChooseUIMapList = FindTransform("GOInstanceMissionChooseUIMapList").gameObject; m_goGOInstanceMissionChooseUINormal = FindTransform("GOInstanceMissionChooseUINormal").gameObject; m_goGOInstanceMissionChooseUIRandom = FindTransform("GOInstanceMissionChooseUIRandom").gameObject; m_chooseMogoSingleButtonList = FindTransform("InstanceMissionChooseUIChoose").GetComponentsInChildren<MogoSingleButtonList>(true)[0]; m_chooseMogoSingleButtonList.SetCurrentDownButton(0); m_lblInstanceMissionChooseUIChooseNormalText = FindTransform("InstanceMissionChooseUIChooseNormalText").GetComponentsInChildren<UILabel>(true)[0]; m_lblInstanceMissionChooseUIChooseNormalTextDown = FindTransform("InstanceMissionChooseUIChooseNormalTextDown").GetComponentsInChildren<UILabel>(true)[0]; m_lblInstanceMissionChooseUIChooseRandomText = FindTransform("InstanceMissionChooseUIChooseRandomText").GetComponentsInChildren<UILabel>(true)[0]; m_lblInstanceMissionChooseUIChooseRandomTextDown = FindTransform("InstanceMissionChooseUIChooseRandomTextDown").GetComponentsInChildren<UILabel>(true)[0]; m_lblInstanceMissionChooseUIRandomBtnEnterTip = FindTransform("InstanceMissionChooseUIRandomBtnEnterTip").GetComponentsInChildren<UILabel>(true)[0]; m_spInstanceMissionChooseUIChooseRandomBGUp = FindTransform("InstanceMissionChooseUIChooseRandomBGUp").GetComponentsInChildren<UISprite>(true)[0]; m_spInstanceMissionChooseUIChooseRandomBGDown = FindTransform("InstanceMissionChooseUIChooseRandomBGDown").GetComponentsInChildren<UISprite>(true)[0]; m_dragCamera = m_myTransform.FindChild(m_widgetToFullName["InstanceMissionChooseUIMapListCamera"]).GetComponentsInChildren<Camera>(true)[0]; Camera SourceCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0]; m_dragCamera.GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = SourceCamera; m_dragableCameraMapList = m_dragCamera.transform.GetComponentsInChildren<MyDragableCamera>(true)[0]; m_dragableCameraMapList.LeftArrow = FindTransform("InstanceMissionChooseUIArrowL").gameObject; m_dragableCameraMapList.RightArrow = FindTransform("InstanceMissionChooseUIArrowR").gameObject; FillNewInstanceUIChooseGridData(); // 随机副本特效 m_goInstanceMissionChooseUIRandomFx = FindTransform("InstanceMissionChooseUIRandomFx").gameObject; // ChineseData m_lblInstanceMissionChooseUIChooseRandomText.text = LanguageData.GetContent(46975); m_lblInstanceMissionChooseUIChooseRandomTextDown.text = LanguageData.GetContent(46975); m_lblInstanceMissionChooseUIRandomBtnEnterTip.text = LanguageData.GetContent(46976); Initialize(); }