void ClickMap(GameObject obj, object param) { if (obj != preMap) { if (preMap != null) { Transform ticon = preMap.transform.parent.GetChild(0); ticon.GetComponent <uTweenAlpha>().enabled = false; ticon.GetComponent <Image>().color = Color.white; Transform tdata = preMap.transform.parent.GetChild(2); tdata.localScale = Vector3.zero; tdata.gameObject.SetActive(false); Vector3 pos = Vector3.zero; pos.x = 160; tdata.GetComponent <RectTransform>().anchoredPosition = pos; } Transform icon = obj.transform.parent.GetChild(0); icon.GetComponent <uTweenAlpha>().enabled = true; Transform data = obj.transform.parent.GetChild(2); data.localScale = Vector3.one; data.gameObject.SetActive(true); uTweenAlpha tuTweenAlpha = data.GetComponent <uTweenAlpha>(); uTweenPosition tuTweenPosition = data.GetComponent <uTweenPosition>(); tuTweenAlpha.Reset(); tuTweenPosition.Reset(); preMap = obj; } }
void Awake() { _manaNumber = GetComponentInChildren <Text>(); _tweenPos = GetComponentInChildren <uTweenPosition>(true); _tweenScale = GetComponentInChildren <uTweenScale>(true); _disableImage = GetImage(GlobalUtil.ImgSelect); }
void Awake() { _tween = GetComponent <uTweenPosition>(); _subTitle = GetComponentInChildren <Text>(true); _alpha = 0; _tweenEvent = new UnityEvent(); IsModal = true; }
void Awake() { var gauge = GetComponentsInChildren <UIFillGauge>(); _enemyGauge = gauge[0]; _myGauge = gauge[1]; _title = GetText(GlobalUtil.TextTitle); _tweenAlpha = GetComponent <uTweenAlpha>(); _tweenPos = GetComponent <uTweenPosition>(); }
private void OnEnable() { if (tweener == null) { tweener = GetComponent <uTweenPosition>(); } if (GetComponent <Text>().preferredWidth > boundObject.rect.width) { Bouncing(); } }
void Awake() { _textInfo = GetText(GlobalUtil.TextInfo); _Owner = GetText(GlobalUtil.TextOwner); _icon = GetImage(GlobalUtil.ImgIcon); _tween = GetComponent <uTweenPosition>(); _infomation = GlobalUtil.DialogText; _nextBtn = GetButton(GlobalUtil.BtnNext); _skipBtn = GetButton(GlobalUtil.BtnSkip); }
// Token: 0x06000F54 RID: 3924 RVA: 0x001B1A78 File Offset: 0x001AFC78 public void Init() { GUIManager instance = GUIManager.Instance; uTweenScale uTweenScale = this.GuideObject.transform.GetChild(0).gameObject.AddComponent <uTweenScale>(); uTweenScale.easeType = EaseType.linear; uTweenScale.loopStyle = LoopStyle.Loop; uTweenScale.delay = 0.2f; uTweenScale.from = Vector3.one; uTweenScale.to = new Vector3(3f, 3f, 3f); uTweenAlpha uTweenAlpha = this.GuideObject.transform.GetChild(0).gameObject.AddComponent <uTweenAlpha>(); uTweenAlpha.easeType = EaseType.linear; uTweenAlpha.loopStyle = LoopStyle.Loop; uTweenAlpha.delay = 0.2f; uTweenAlpha.from = 1f; uTweenAlpha.to = 0f; uTweenAlpha.mMaskableGraphic = this.GuideObject.transform.GetChild(0).GetComponent <Image>(); uTweenPosition uTweenPosition = this.GuideObject.transform.GetChild(1).gameObject.AddComponent <uTweenPosition>(); uTweenPosition.easeType = EaseType.easeOutQuad; uTweenPosition.loopStyle = LoopStyle.PingPong; uTweenPosition.duration = 0.5f; uTweenPosition.from = new Vector3(224f, 17.8f, 0f); uTweenPosition.to = new Vector3(241f, 0.8f, 0f); Transform child = this.ThisTransform.GetChild(5); instance.InitianHeroItemImg(child.GetChild(0).GetChild(1).GetChild(0), eHeroOrItem.Hero, 0, 0, 0, 0, false, false, false, false); instance.InitianHeroItemImg(child.GetChild(1).GetChild(1).GetChild(0), eHeroOrItem.Hero, 0, 0, 0, 0, false, false, false, false); this.ItemCount = 5; this.ItemEdit = new UIAlliance_Marshal.MarshalList[(int)this.ItemCount]; this.WarScrollView = this.ThisTransform.GetChild(4).GetChild(0).GetComponent <ScrollPanel>(); byte b = 0; while ((ushort)b < this.ItemCount) { this.ItemsHeight.Add(128f); b += 1; } this.WarScrollView.IntiScrollPanel(435f, 0f, 3f, this.ItemsHeight, (int)this.ItemCount, this); this.Content = this.ThisTransform.GetChild(4).GetChild(0).GetChild(0).GetComponent <RectTransform>(); DataManager.Instance.CheckWalHall_List(); if (instance.MarshalSaved == 0) { this.ChangeTag(this.CurrentTag, true); } else { this.ChangeTag((UIAlliance_Marshal.ClickType)(instance.MarshalSaved - 1), true); } }
void Awake() { _announce = GetComponentInChildren <Text>(); _colorTween = GetComponentInChildren <uTweenColor>(true); _positionTween = GetComponentInChildren <uTweenPosition>(true); _scaleTween = GetComponentInChildren <uTweenScale>(true); UnityEvent tweenEndEvent = new UnityEvent(); tweenEndEvent.AddListener(() => UIManager.i.RemovePopup <AnounceTextPop>()); _colorTween.SetOnFinished(tweenEndEvent); _positionTween.SetOnFinished(tweenEndEvent); _scaleTween.SetOnFinished(tweenEndEvent); }
void Awake() { _coin = GetText(GlobalUtil.TextMoney); _cash = GetText(GlobalUtil.TextCash); _flower = GetText(GlobalUtil.TextFlower); _rotateCharacter = transform.Find(RotateDrag); RegistAllButtonOnClickEvent(); _menuBtns = transform.Find(Bottom).GetComponentsInChildren <Button>(); for (int i = 0; i < _menuBtns.Length; i++) { _selectImgs[i] = GetImage(_menuBtns[i].transform, GlobalUtil.ImgSelect); } _inviteTween = GetComponentInChildren <uTweenPosition>(true); ButtonEvent = true; }
// Token: 0x06001C74 RID: 7284 RVA: 0x00324974 File Offset: 0x00322B74 public override void OnOpen(int arg1, int arg2) { Font ttffont = GUIManager.Instance.GetTTFFont(); this.AGS_Form = base.transform; UIButton component = this.AGS_Form.GetChild(0).GetComponent <UIButton>(); component.m_Handler = this; component.gameObject.SetActive(false); component.image.color = new Color(1f, 1f, 1f, 0.5f); component.m_BtnID1 = 1; UIText component2 = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component2.resizeTextForBestFit = true; component2.resizeTextMinSize = 12; component2.resizeTextMaxSize = 22; component2 = this.AGS_Form.GetChild(1).GetChild(1).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component = this.AGS_Form.GetChild(7).GetComponent <UIButton>(); component.m_Handler = this; component.gameObject.SetActive(false); component.m_BtnID1 = 2; component2 = this.AGS_Form.GetChild(7).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component2.text = DataManager.Instance.mStringTable.GetStringByID(1050u); Vector3 localPosition = this.AGS_Form.GetChild(1).localPosition; localPosition.z = -1000f; this.AGS_Form.GetChild(1).localPosition = localPosition; this.AGS_Form.GetChild(1).gameObject.SetActive(false); localPosition = this.AGS_Form.GetChild(5).localPosition; localPosition.z = -1000f; this.AGS_Form.GetChild(5).localPosition = localPosition; uTweenPosition component3 = this.AGS_Form.GetChild(6).GetComponent <uTweenPosition>(); component3.from.z = -1000f; component3.to.z = -1000f; this.Pos3D1 = this.AGS_Form.GetChild(2).transform; localPosition = this.Pos3D1.localPosition; localPosition.z = -500f; this.Pos3D1.localPosition = localPosition; this.Pos3D1.localEulerAngles = new Vector3(0f, 340f, 0f); this.Pos3D1.GetComponent <RectTransform>().anchoredPosition = new Vector2(0f, -28f); this.Pos3D2 = this.AGS_Form.GetChild(3).transform; localPosition = this.Pos3D2.localPosition; localPosition.z = -500f; this.Pos3D2.localPosition = localPosition; this.Pos3D2.localEulerAngles = new Vector3(0f, 20f, 0f); this.Pos3D2.GetComponent <RectTransform>().anchoredPosition = new Vector2(0f, -28f); this.AGS_Form.GetChild(0).gameObject.SetActive(true); this.LightGroup = this.AGS_Form.GetChild(4); this.PosLight1 = this.AGS_Form.GetChild(4).GetChild(0); this.PosLight2 = this.AGS_Form.GetChild(4).GetChild(1); GameObject gameObject = new GameObject("Light3"); gameObject.transform.SetParent(this.LightGroup, false); this.PosLight3 = gameObject.transform; gameObject.AddComponent <Light>(); Light component4 = this.PosLight1.GetComponent <Light>(); component4.range = 15f; component4.spotAngle = 10f; component4.color = new Color32(195, 87, 54, byte.MaxValue); component4.type = LightType.Spot; component4.intensity = 8f; component4 = this.PosLight2.GetComponent <Light>(); component4.type = LightType.Spot; component4.range = 20f; component4.spotAngle = 10f; component4.color = new Color32(242, 224, 205, byte.MaxValue); component4.intensity = 8f; component4 = this.PosLight3.GetComponent <Light>(); component4.range = 15f; component4.spotAngle = 10f; component4.color = new Color32(148, 107, 107, byte.MaxValue); component4.type = LightType.Spot; component4.intensity = 5.5f; this.EvoLight = RenderSettings.ambientLight; RenderSettings.ambientLight = new Color32(197, 178, 178, byte.MaxValue); this.startTalkId = (ushort)arg1; if (this.startTalkId == 13) { component.gameObject.SetActive(NewbieManager.IsNewbie); } else { component.gameObject.SetActive(false); } if (arg2 != 0) { UIHeroTalk.HeroID1 = (ushort)arg2; } this.talkString = StringManager.Instance.SpawnString(500); ushort num = 0; while ((int)num < DataManager.Instance.HeroTalkTable.TableCount) { HeroTalkTbl recordByIndex = DataManager.Instance.HeroTalkTable.GetRecordByIndex((int)num); if (recordByIndex.TalkGroup == this.startTalkId) { this.startTalkId = recordByIndex.ID; break; } num += 1; } this.SetTalk(this.startTalkId); GUIManager.Instance.m_WindowsTransform.gameObject.SetActive(false); this.Create3DObjects(); }
void Awake() { _text = GetComponentInChildren <Text>(); _tween = GetComponent <uTweenPosition>(); transform.localPosition = new Vector3(1000, 0, 0); }
void Awake() { _tween = GetComponentInChildren <uTweenPosition>(); }
void Awake() { _tween = GetComponent <uTweenPosition>(); _tween.enabled = false; }