private void _InitCenter(GameObject go) { lb_desc = go.GetComponentEx <Text> (Layout.lb_desc); lb_ticketName = go.GetComponentEx <Text> (Layout.lb_ticketName); lb_ticketTxt = go.GetComponentEx <Text> (Layout.lb_ticketTxt); lb_paymentTxt = go.GetComponentEx <Text> (Layout.lb_paymentTxt); lb_profitTxt = go.GetComponentEx <Text> (Layout.lb_profitTxt); lb_priceRangeTxt = go.GetComponentEx <Text> (Layout.lb_pricerangeTxt); lb_priceRangeName = go.GetComponentEx <Text> (Layout.lb_pricerangeName); lb_incomeName = go.GetComponentEx <Text> (Layout.lb_incomeName); lb_incomeTxt = go.GetComponentEx <Text> (Layout.lb_incomeTxt); lb_profitNameTxt = go.GetComponentEx <Text> (Layout.lb_profitName); lb_qualityName = go.GetComponentEx <Text> (Layout.lb_qualityName); lb_qualityTxt = go.GetComponentEx <Text> (Layout.lb_qualityTxt); lb_qualityDescTxt = go.GetComponentEx <Text> (Layout.lb_qualitydescTxt); lb_cardName = go.GetComponentEx <Text> (Layout.lb_cardName); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); }
private void _SetSureBtnContent(Button _button) { var img = _button.gameObject.GetComponentEx <Image> ("Image"); _imgLoad = new UIImageDisplay(img); _imgLoad.Load(UIOtherCardWindowController.imgSurePath); }
private void _InitCenter(GameObject go) { _btnCraps = go.GetComponentEx <Button>(Layout.btn_craps); _animTransform = go.DeepFindEx(Layout.anim_craps); _tfCrapsDisplay = go.DeepFindEx(Layout.crapsdisplay); _tfBtnCraps = go.DeepFindEx(Layout.btn_craps); var image = go.GetComponentEx <Image> (Layout.image_icon); _imageDisplay = new UIImageDisplay(image); _btnStart = go.GetComponentEx <Button>(Layout.btnStart); _startBoard = go.GetComponentEx <Image>(Layout.startBoard); //_ShowOtherCraps (); //2016-9-21 zll fix //2016-9-28 zll 注释掉 // _gameStarted = true; // _btnStart.SetActiveEx (false); // ytf新加提示面吧 // btn_tipBtn = go.GetComponentEx<Button>(Layout.btn_tipbtn); // lb_tiptxt = go.GetComponentEx<Text> (Layout.lb_tipTxt); // img_tipBoard = go.GetComponentEx<Image> (Layout.img_tipBoard); //2016-09-28 zll add _startBoard.SetActiveEx(true); //2016-11-02 zll add _objSaizi = go.DeepFindEx(Layout.saizi).gameObject; canvasScaler = go.GetComponent <CanvasScaler>(); }
private void _ShowOtherCraps() { if (null == _leftCrapsDisplay) { Console.WriteLine("扔三个筛子"); _leftCrapsDisplay = _tfCrapsDisplay.gameObject.CloneEx(false).transform; _leftAnimTransform = _leftCrapsDisplay.DeepFindEx(Layout.anim_crapsclone); var tmpImg = _leftCrapsDisplay.gameObject.GetComponentEx <Image> (Layout.image_iconclone); _leftImgDisplay = new UIImageDisplay(tmpImg); var tmpVec3 = _tfCrapsDisplay.transform.localRotation; var tmpRect = _tfCrapsDisplay.GetComponent <RectTransform> ().sizeDelta; // _leftCrapsDisplay.GetComponent<RectTransform> ().sizeDelta = tmpRect; _leftCrapsDisplay.SetParent(_tfCrapsDisplay.parent); _leftCrapsDisplay.transform.localPosition = new Vector3(tmpVec3.x - tmpRect.x + 10, tmpVec3.y, tmpVec3.z); _leftCrapsDisplay.localScale = Vector3.one; _rightCrapsDisplay = _tfCrapsDisplay.gameObject.CloneEx(false).transform; _rightAnimTransform = _rightCrapsDisplay.DeepFindEx(Layout.anim_crapsclone); tmpImg = _rightCrapsDisplay.gameObject.GetComponentEx <Image> (Layout.image_iconclone); _rightImgDisplay = new UIImageDisplay(tmpImg); // _rightCrapsDisplay.GetComponent<RectTransform> ().sizeDelta = tmpRect; _rightCrapsDisplay.SetParent(_tfCrapsDisplay.parent); _rightCrapsDisplay.transform.localPosition = new Vector3(tmpVec3.x + tmpRect.x - 10, tmpVec3.y, tmpVec3.z); _rightCrapsDisplay.localScale = Vector3.one; _ShowTwoCraps(); } else { _ShowTwoCraps(); } }
private void SetRawImageProTex(UIImageDisplay rawImage, string path) { if (rawImage != null) { rawImage.Load(path); } }
private void _OnInitCenter(GameObject go) { lb_income = go.GetComponentEx <Text> (Layout.lb_income); lb_payment = go.GetComponentEx <Text> (Layout.lb_payment); lb_checkout = go.GetComponentEx <Text> (Layout.lb_settlement); var imgIncome = go.GetComponentEx <Image> (Layout.img_income); img_income = new UIImageDisplay(imgIncome); var imgPay = go.GetComponentEx <Image> (Layout.img_payment); img_payment = new UIImageDisplay(imgPay); var imgcheck = go.GetComponentEx <Image> (Layout.img_checkout); img_checkout = new UIImageDisplay(imgcheck); img_tmpAdd = go.GetComponentEx <Image> (Layout.img_add); img_add = new UIImageDisplay(img_tmpAdd); btn_checkRecord = go.GetComponentEx <Button> (Layout.btn_record); _selfTransform = go.transform.Find("content"); _initPosition = _selfTransform.localPosition; _outerPosition = new Vector3(-860, _initPosition.y, _initPosition.z); }
private void _InitCenter(GameObject go) { lb_desc = go.GetComponentEx <Text> (Layout.lb_desc); lb_coastTxt = go.GetComponentEx <Text> (Layout.lb_coastTxt); lb_saleTxt = go.GetComponentEx <Text> (Layout.lb_saleTxt); lb_paymentTxt = go.GetComponentEx <Text> (Layout.lb_paymentTxt); lb_profitTxt = go.GetComponentEx <Text> (Layout.lb_profitTxt); lb_mortgageTxt = go.GetComponentEx <Text> (Layout.lb_mortgageTxt); lb_incomeTxt = go.GetComponentEx <Text> (Layout.lb_incomeTxt); lb_qualityName = go.GetComponentEx <Text> (Layout.lb_qualityName); lb_qualityTxt = go.GetComponentEx <Text> (Layout.lb_qualityTxt); lb_qualityDescTxt = go.GetComponentEx <Text> (Layout.lb_qualitydescTxt); lb_profitNameTxt = go.GetComponentEx <Text> (Layout.lb_profitName); lb_mortgageNameTxt = go.GetComponentEx <Text> (Layout.lb_mortgageName); lb_incomeNameTxt = go.GetComponentEx <Text> (Layout.lb_incomeName); lb_cardname = go.GetComponentEx <Text> (Layout.lb_cardName); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); //zll 2016.10.21 add card action cardAction = go.GetComponentEx <Image>(Layout.cardAction); cardAction2 = go.GetComponentEx <Image>(Layout.cardAction1); }
private void _OnInitCenter(GameObject go) { var imgMusic = go.GetComponentEx <Image> (Layout.img_music); img_music = new UIImageDisplay(imgMusic); var imgSound = go.GetComponentEx <Image> (Layout.img_sound); img_sound = new UIImageDisplay(imgSound); btn_back = go.GetComponentEx <Button> (Layout.btn_back); btn_cotinue = go.GetComponentEx <Button> (Layout.btn_continuebtn); btn_newplay = go.GetComponentEx <Button> (Layout.btn_newplaybtn); btn_about = go.GetComponentEx <Button> (Layout.btn_about); btn_sound = go.GetComponentEx <Button> (Layout.img_sound); btn_music = go.GetComponentEx <Button> (Layout.img_music); img_soundRound = go.GetComponentEx <Image> (Layout.btn_sound); img_musicRound = go.GetComponentEx <Image> (Layout.btn_music); btn_sureabout = go.GetComponentEx <Button> (Layout.btn_sure); img_aboutBoard = go.GetComponentEx <Image> (Layout.img_aboutBoard); lb_aboutContent = go.GetComponentEx <Text> (Layout.lb_aboutContent); transformContainer = go.transform.DeepFindEx(Layout.obj_container); _objInitPosition = transformContainer.localPosition; _replayPosition = btn_newplay.transform.localPosition; }
private void _InitCenter(GameObject go) { lb_cardTitle = go.GetComponentEx <Text> (Layout.lb_cardTitle); lb_desc = go.GetComponentEx <Text> (Layout.lb_desc); lb_paymenyTxt = go.GetComponentEx <Text> (Layout.lb_paymentTxt); lb_timeTxt = go.GetComponentEx <Text> (Layout.lb_timeTxt); lb_timeName = go.GetComponentEx <Text> (Layout.lb_timeName); lb_profitName = go.GetComponentEx <Text> (Layout.lb_profitName); lb_profitTxt = go.GetComponentEx <Text> (Layout.lb_profitTxt); lb_incomeName = go.GetComponentEx <Text> (Layout.lb_incomeName); lb_incometxt = go.GetComponentEx <Text> (Layout.lb_incomeTxt); lb_cardname = go.GetComponentEx <Text> (Layout.lb_cardname); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); //zll 2016.10.21 add card action // cardAction = go.GetComponentEx<Image>(Layout.cardAction); // cardAction2 = go.GetComponentEx<Image>(Layout.cardAction1); animator_crap = go.GetComponentEx <Animator> (Layout.action_craps); var tmpcarp = go.GetComponentEx <Image> (Layout.img_craps); img_carp = new UIImageDisplay(tmpcarp); }
private void _InitCenter(GameObject go) { lb_desc = go.GetComponentEx <Text> (Layout.lb_desc); lb_paymenyTxt = go.GetComponentEx <Text> (Layout.lb_paymentTxt); img_wordbg = go.GetComponentEx <Image> (Layout.img_wordimg); lb_desc2 = go.GetComponentEx <Text> (Layout.lb_desc2); //lb_paymentName2 = go.GetComponentEx<Text> (Layout.lb_paymentName2); lb_paymenyTxt2 = go.GetComponentEx <Text> (Layout.lb_paymentTxt2); lb_timeTxt = go.GetComponentEx <Text> (Layout.lb_timeTxt); lb_timeName = go.GetComponentEx <Text> (Layout.lb_timeName); _selectToggle = go.GetComponentEx <Toggle> (Layout.toggle_select); lb_cardname = go.GetComponentEx <Text>(Layout.lb_cardname); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); //zll 2016.10.21 add card action cardAction = go.GetComponentEx <Image>(Layout.cardAction); cardAction2 = go.GetComponentEx <Image>(Layout.cardAction1); }
private void _OnInitFront(GameObject go) { btn_close = go.GetComponentEx <Button> (Layout.btn_recordClose); lb_num = go.GetComponentEx <Text> (Layout.lb_recordNum); var tmpImg = go.GetComponentEx <Image> (Layout.img_icon); img_icon = new UIImageDisplay(tmpImg); img_recorditem = go.GetComponentEx <Image> (Layout.img_recorditem); }
private void _OnInitItem(GameObject go) { var img = go.GetComponent <Image> (); _bgImg = new UIImageDisplay(img); btn_roll = go.GetComponentEx <Button> ("itembtn"); _imgWidth = go.GetComponent <RectTransform> ().sizeDelta.x; _initPostion = btn_roll.transform.localPosition; }
public UIConclusionStarBarItem(GameObject go) { lb_score = go.GetComponentEx <Text> (Layout.lb_score); for (var i = 0; i < _starNum; i++) { var img = go.GetComponentEx <Image> (string.Format(Layout.img_start, (i + 1).ToString())); var tmpImgDisplay = new UIImageDisplay(img); _starArr [i] = tmpImgDisplay; } }
private void _OnInitTop(GameObject go) { btn_close = go.GetComponentEx <Button> (Layout.btn_close); var img = go.GetComponentEx <Image> (Layout.img_title); _titleImg = new UIImageDisplay(img); lb_time = go.GetComponentEx <Text> (Layout.lb_time); img_clock = go.GetComponentEx <Image> (Layout.img_clock); }
private void Init(GameObject go) { backBtn = go.GetComponentEx <Button>(Layout.back); head = go.GetComponentEx <Image>(Layout.head); name = go.GetComponentEx <Text>(Layout.name); sex = go.GetComponentEx <Image>(Layout.sex); img_sexdisplay = new UIImageDisplay(sex); lb_star = go.GetComponentEx <Text>(Layout.star); birsday = go.GetComponentEx <Text>(Layout.birsday); changeName = go.GetComponentEx <Button>(Layout.changeName); weChat = go.GetComponentEx <Button>(Layout.weChat); logOut = go.GetComponentEx <Button>(Layout.logOut); allCount = go.GetComponentEx <Text>(Layout.allCount); allWin = go.GetComponentEx <Text>(Layout.allWin); allTime = go.GetComponentEx <Text>(Layout.allTime); allIntegration = go.GetComponentEx <Text>(Layout.allIntegration); content_item = go.DeepFindEx("Item").gameObject; scrollView = go.GetComponentEx <ScrollRect>(Layout.scrollView); this.textNoRecord = go.GetComponentEx <Text>(Layout.txtNoRecord); //grid = go.GetComponentEx<GridLayoutGroup>(Layout.grid); //obj = grid.transform.Find(Layout.item); set = go.transform.Find(Layout.set).gameObject; set.gameObject.SetActive(false); setBack = go.GetComponentEx <Button>(Layout.setBack); setHead = go.GetComponentEx <Image>(Layout.setHead); setChange = go.GetComponentEx <Button>(Layout.setChange); setName = go.GetComponentEx <InputField>(Layout.setName); grilButton = go.GetComponentEx <Button>(Layout.grilButton); grilDot = grilButton.transform.parent.Find("Red").gameObject; manButton = go.GetComponentEx <Button>(Layout.manButton); manDot = manButton.transform.parent.Find("Red").gameObject; nian = go.GetComponentEx <Dropdown>(Layout.nian); yue = go.GetComponentEx <Dropdown>(Layout.yue); ri = go.GetComponentEx <Dropdown>(Layout.ri); tips = go.GetComponentEx <Text>(Layout.tips); setStar = go.GetComponentEx <Text>(Layout.setStar); setSave = go.GetComponentEx <Button>(Layout.setSave); setCan = go.GetComponentEx <Button>(Layout.setCan); picture = go.GetComponentEx <Image>(Layout.picture); picHead = go.GetComponentEx <Image>(Layout.picHead); picPai = go.GetComponentEx <Button>(Layout.picPai); picXiang = go.GetComponentEx <Button>(Layout.picXiang); picSav = go.GetComponentEx <Button>(Layout.picSave); picCan = go.GetComponentEx <Button>(Layout.picCan); btn_lifeTime = go.GetComponentEx <Button>(Layout.btn_lifeNum); addPickUpCompent(go); }
private void _OnInitCenter(GameObject go) { lb_title = go.GetComponentEx <Text> (Layout.lb_title); lb_infor = go.GetComponentEx <Text> (Layout.lb_infor); var tmpimg = go.GetComponentEx <Image> (Layout.img_title); img_title = new UIImageDisplay(tmpimg); btn_sure = go.GetComponentEx <Button>(Layout.btn_sure); }
private void Init(GameObject go) { backBtn = go.GetComponentEx <Button>(Layout.back); head = go.GetComponentEx <Image>(Layout.head); headDisplay = new UIImageDisplay(head); name = go.GetComponentEx <Text>(Layout.name); sex = go.GetComponentEx <Image>(Layout.sex); img_sexdisplay = new UIImageDisplay(sex); lb_star = go.GetComponentEx <Text>(Layout.star); birsday = go.GetComponentEx <Text>(Layout.birsday); changeName = go.GetComponentEx <Button>(Layout.changeName); weChat = go.GetComponentEx <Button>(Layout.weChat); logOut = go.GetComponentEx <Button>(Layout.logOut); allCount = go.GetComponentEx <Text>(Layout.allCount); allWin = go.GetComponentEx <Text>(Layout.allWin); allTime = go.GetComponentEx <Text>(Layout.allTime); allIntegration = go.GetComponentEx <Text>(Layout.allIntegration); scrollView = go.GetComponentEx <ScrollRect>(Layout.scrollView); grid = go.GetComponentEx <GridLayoutGroup>(Layout.grid); obj = grid.transform.Find(Layout.item); set = go.transform.Find(Layout.set).gameObject; set.gameObject.SetActive(false); setBack = go.GetComponentEx <Button>(Layout.setBack); setHead = go.GetComponentEx <Image>(Layout.setHead); setChange = go.GetComponentEx <Button>(Layout.setChange); setName = go.GetComponentEx <InputField>(Layout.setName); grilButton = go.GetComponentEx <Button>(Layout.grilButton); grilDot = grilButton.transform.parent.Find("Red").gameObject; manButton = go.GetComponentEx <Button>(Layout.manButton); manDot = manButton.transform.parent.Find("Red").gameObject; nian = go.GetComponentEx <Dropdown>(Layout.nian); yue = go.GetComponentEx <Dropdown>(Layout.yue); ri = go.GetComponentEx <Dropdown>(Layout.ri); tips = go.GetComponentEx <Text>(Layout.tips); setStar = go.GetComponentEx <Text>(Layout.setStar); setSave = go.GetComponentEx <Button>(Layout.setSave); setCan = go.GetComponentEx <Button>(Layout.setCan); ltemList = new List <ItemClass.PersonalItem>(); ltemList.Add(new ItemClass.PersonalItem(obj)); EventTriggerListener.Get(ltemList[0].detail.gameObject).onClick = DetailClick; picture = go.GetComponentEx <Image>(Layout.picture); picHead = go.GetComponentEx <Image>(Layout.picHead); picPai = go.GetComponentEx <Button>(Layout.picPai); picXiang = go.GetComponentEx <Button>(Layout.picXiang); picSav = go.GetComponentEx <Button>(Layout.picSave); picCan = go.GetComponentEx <Button>(Layout.picCan); addPickUpCompent(go); }
private void _InitTop(GameObject go) { img_title = go.GetComponentEx <Image> (Layout.img_title); img_titleDisplay = new UIImageDisplay(img_title); img_bg = go.GetComponentEx <Image> (Layout.img_bg); lb_time = go.GetComponentEx <Text> (Layout.lb_time); img_clock = go.GetComponentEx <Image> (Layout.img_clockBg); // _cardAction = go.DeepFindEx (Layout.cardAction); // _cardAction1 = go.DeepFindEx(Layout.cardAction1); }
public UIBalanceInforItem(GameObject go) { lb_title = go.GetComponentEx <Text> (Layout.title); lb_num = go.GetComponentEx <Text> (Layout.num); var tmpImg = go.GetComponentEx <Image> (Layout.img_pic); img_pic = new UIImageDisplay(tmpImg); btn_showInfor = go.GetComponentEx <Button> (Layout.img_pic); EventTriggerListener.Get(btn_showInfor.gameObject).onClick += _OnClieckHandler; }
private void _OnInitTop(GameObject go) { _lbTopTitle = go.GetComponentEx <Text>(Layout.lb_title); _btnClose = go.GetComponentEx <Button> (Layout.btn_closeWindow); var tmpImg = go.GetComponentEx <Image> (Layout.img_titleImg); _titleImg = new UIImageDisplay(tmpImg); img_blackbg = go.GetComponentEx <Image> (Layout.img_blackbg); lb_time = go.GetComponentEx <Text> (Layout.lb_time); img_clock = go.GetComponentEx <Image> (Layout.img_clock); }
private void _initCenter(GameObject go) { btn_close = go.GetComponentEx <Button> (Layout.btn_back); //img_player1 = go.GetComponentEx<Image> (Layout.img_player1); //img_player2 = go.GetComponentEx<Image> (Layout.img_player2); //img_player3 = go.GetComponentEx<Image> (Layout.img_player3); //img_player4 = go.GetComponentEx<Image> (Layout.img_player4); for (int i = 1; i < 5; i++) { Image tmpImg = go.GetComponentEx <Image> (Layout.img_player + i); headInforList.Add(tmpImg); UIImageDisplay tmpHead = new UIImageDisplay(tmpImg.gameObject.GetComponentEx <Image> ("headimg")); headList.Add(tmpHead); //headList[i]=tmpHead; Text tmpName = tmpImg.gameObject.GetComponentEx <Text> ("nametxt"); nameList.Add(tmpName); var tmpReady = tmpImg.gameObject.GetComponentEx <Image> ("img_ready"); readyList.Add(tmpReady); } btn_ready = go.GetComponentEx <Button> (Layout.btn_ready); btn_share = go.GetComponentEx <Button> (Layout.btn_share); lb_roomid = go.GetComponentEx <Text>(Layout.lb_roomid); /*head1 =new UIImageDisplay(img_player1.gameObject.GetComponentEx<Image> ("headimg")); * head2 =new UIImageDisplay(img_player1.gameObject.GetComponentEx<Image> ("headimg")); * head3 =new UIImageDisplay(img_player1.gameObject.GetComponentEx<Image> ("headimg")); * head4 =new UIImageDisplay(img_player1.gameObject.GetComponentEx<Image> ("headimg")); * headList.Add (head1); * headList.Add (head2); * headList.Add (head3); * headList.Add (head4);*/ //this ["img_player" + 1]; if (null != _controller.headInforList) { if (_controller.headInforList.Count > 0) { SetPlayerHaed(_controller.headInforList); } } }
private void _OnInitCenter(GameObject go) { desc1 = go.GetComponentEx <Text> (Layout.lb_desc); desc2 = go.GetComponentEx <Text> (Layout.lb_desc2); desc3 = go.GetComponentEx <Text> (Layout.lb_desc3); lb_cardname = go.GetComponentEx <Text> (Layout.lb_cardName); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); img_bgBoard = go.GetComponentEx <Image> (Layout.img_bgBoard); }
private void _SetHeorCardData(Image img, PlayerInfo player, int index, bool isWin = false) { var go = img.gameObject; var lb_name = go.GetComponentEx <Text> (Layout.lb_username); lb_name.text = player.playerName; var lb_money = go.GetComponentEx <Text> (Layout.lb_money); var tmpStr = player.totalMoney.ToString(); if (player.totalMoney >= 10000) { tmpStr = string.Format("{0}{1}", ((float)((int)(player.totalMoney * 100 / 10000) / 100)).ToString(), "万"); } lb_money.text = tmpStr; var lb_time = go.GetComponentEx <Text> (Layout.lb_timescore); lb_time.text = player.timeScore.ToString(); var lb_quality = go.GetComponentEx <Text> (Layout.lb_qualityscore); lb_quality.text = player.qualityScore.ToString(); var imgload = go.GetComponentEx <Image> (Layout.img_roleImg); var roleimg = new UIImageDisplay(imgload); roleimg.Load(player.playerImgPath); _loadImgList.Add(roleimg); var rankTxt = go.GetComponentEx <Text> (Layout.lb_rank); if (isWin == true) { rankTxt.text = "No.1"; } else if (isWin == false) { rankIndex++; rankTxt.text = "No." + rankIndex.ToString(); var tmpPosition = img_lose.transform.localPosition; go.transform.localScale = Vector3.one; Console.WriteLine("当前的排名是:" + rankIndex.ToString()); go.transform.localPosition = new Vector3(_positionX[rankIndex - 2], tmpPosition.y, tmpPosition.z); } }
private void _InitTop(GameObject go) { img_head = go.GetComponentEx <Image> (Layout.btn_head); img_headPlay = new UIImageDisplay(img_head); txt_id = go.GetComponentEx <Text> (Layout.txt_id); txt_name = go.GetComponentEx <Text> (Layout.txt_name); btn_mail = go.GetComponentEx <Button> (Layout.btn_mail); btn_gonggao = go.GetComponentEx <Button> (Layout.btn_gonggao); btn_head = go.GetComponentEx <Button> (Layout.btn_head); btn_share = go.GetComponentEx <Button> (Layout.btn_share); var tmpimg = go.GetComponentEx <Image> (Layout.img_herosex); img_herosex = new UIImageDisplay(tmpimg); }
private void _InitCenter(GameObject go) { progressBar = go.GetComponentEx <Slider>(Layout.progressBar); _roleList.Clear(); for (var i = 0; i < 4; i++) { var tmpimg = go.GetComponentEx <Image> (Layout.img_role + (i + 1).ToString()); var tmpDisplay = new UIImageDisplay(tmpimg); _roleList.Add(tmpDisplay); var tmpTxt = go.GetComponentEx <Text> (Layout.lb_name + (i + 1).ToString()); _nameList.Add(tmpTxt); } }
private void _InitTop(GameObject go) { img_title = go.GetComponentEx <Image> (Layout.img_title); img_Display = new UIImageDisplay(img_title); img_bg = go.GetComponentEx <Image> (Layout.img_bg); lb_time = go.GetComponentEx <Text> (Layout.lb_time); _cardAction = go.DeepFindEx(Layout.transform_card); // _cardAction1 = go.DeepFindEx(Layout.cardAction1); btn_closeShow = go.GetComponentEx <Button>(Layout.btn_closeshow); _bottom = go.DeepFindEx(Layout.bottom); }
private void _InitCenter(GameObject go) { GameModel.GetInstance.MathWidthOrHeightByCondition(go, 0); progressBar = go.GetComponentEx <Slider>(Layout.progressBar); _roleList.Clear(); for (var i = 0; i < 4; i++) { var tmpimg = go.GetComponentEx <Image> (Layout.img_role + (i + 1).ToString()); var tmpDisplay = new UIImageDisplay(tmpimg); _roleList.Add(tmpDisplay); var tmpTxt = go.GetComponentEx <Text> (Layout.lb_name + (i + 1).ToString()); _nameList.Add(tmpTxt); } }
private void _OnInitCenter(GameObject go) { desc1 = go.GetComponentEx <Text> (Layout.lb_desc); desc2 = go.GetComponentEx <Text> (Layout.lb_desc2); desc3 = go.GetComponentEx <Text> (Layout.lb_desc3); var rawImg = go.GetComponentEx <Image> (Layout.loadImg); _cardPic = new UIImageDisplay(rawImg); lb_cardName = go.GetComponentEx <Text> (Layout.lbcardname); //_saleImg.SetActiveEx (false); //zll 2016.10.21 add card action cardAction = go.GetComponentEx <Image>(Layout.cardAction); cardAction2 = go.GetComponentEx <Image>(Layout.cardAction1); }
private void _OnInitChange(GameObject go) { img_chagne = go.GetComponentEx <Image>(Layout.img_changeImg); _normalBoard = go.DeepFindEx(Layout.tran_normalboard); btn_closeChange = go.GetComponentEx <Button> (Layout.btn_closechange); btn_chagnesure = go.GetComponentEx <Button> (Layout.btn_surechange); btn_minus = go.GetComponentEx <Button> (Layout.btn_minuschange); btn_plus = go.GetComponentEx <Button> (Layout.btn_pluschange); lbchagne = go.GetComponentEx <Text> (Layout.lb_changecode); btn_borrow = go.GetComponentEx <Button> (Layout.btn_borrow); // btn_chagnesure.SetActiveEx(false); btn_borrow.SetActiveEx(false); lb_changeTitle = go.GetComponentEx <Text> (Layout.lb_shareChange); _plusPosition = btn_plus.transform.localPosition; _minusPosition = btn_minus.transform.localPosition; _buyShareItem = new UIChanceShareCardWindowBuy(go.DeepFindEx(Layout.shareBuyContent).gameObject); _sharecode = go.DeepFindEx(Layout.lb_shareCodeTxt); _scrollview = go.DeepFindEx(Layout.scrollerview); _HideChangeBoard(); var titleimg = go.GetComponentEx <Image> (Layout.img_sharetitle); img_changeTitle = new UIImageDisplay(titleimg); var tmpImg = btn_plus.gameObject.GetComponent <Image> (); img_plusWord = new UIImageDisplay(tmpImg); tmpImg = btn_minus.gameObject.GetComponent <Image> (); img_MinusWord = new UIImageDisplay(tmpImg); // tmpImg = btn_chagnesure.gameObject.GetComponentEx<Image> ("Image"); // img_SureWord = new UIImageDisplay (tmpImg); lb_currentMoney = go.GetComponentEx <Text> (Layout.lb_currentmoney); lb_inputShare = go.GetComponentEx <InputField> (Layout.lb_intputChance); }
private void _OnInitCenter(GameObject go) { var imgMusic = go.GetComponentEx <Image> (Layout.img_music); img_music = new UIImageDisplay(imgMusic); var imgSound = go.GetComponentEx <Image> (Layout.img_sound); img_sound = new UIImageDisplay(imgSound); btn_back = go.GetComponentEx <Button> (Layout.btn_back); btn_logout = go.GetComponentEx <Button> (Layout.btn_logout); btn_sound = go.GetComponentEx <Button> (Layout.img_sound); btn_music = go.GetComponentEx <Button> (Layout.img_music); img_soundRound = go.GetComponentEx <Image> (Layout.btn_sound); img_musicRound = go.GetComponentEx <Image> (Layout.btn_music); }