private void ClearHighlightInternal() { this.SetBackgroundTransparency(EOpacityLadder.Transparent); this.ClearHighlitObjs(); ms_originalGo.Clear(); ms_originalForm = null; this.m_completeType = ECompleteType.ClickButton; }
private void PreHighlight() { this.m_completeType = ECompleteType.ClickButton; ms_originalGo.Clear(); ms_originalForm = null; this.ClearHighlitObjs(); if ((NewbieGuideScriptControl.FormGuideMask != null) && (NewbieGuideScriptControl.FormGuideMask.gameObject != null)) { Transform transform = NewbieGuideScriptControl.FormGuideMask.gameObject.transform.Find("GuideText"); if ((transform != null) && (transform.gameObject != null)) { transform.gameObject.CustomSetActive(false); } } }
protected void AddHighLightAreaClickAnyWhere(GameObject baseGo, CUIFormScript inOriginalForm) { this.AddHighlightInternal(baseGo, inOriginalForm, false, false); List <GameObject> .Enumerator enumerator = ms_highlitGo.GetEnumerator(); while (enumerator.MoveNext()) { GameObject current = enumerator.Current; if (current != null) { RectTransform parent = current.transform as RectTransform; GameObject content = Singleton <CResourceManager> .GetInstance().GetResource("UGUI/Form/System/Dialog/HighlightAreaMask.prefab", typeof(GameObject), enResourceType.UIPrefab, false, false).m_content as GameObject; if (content != null) { GameObject obj4 = UnityEngine.Object.Instantiate(content) as GameObject; if (obj4 != null) { RectTransform transform = obj4.transform as RectTransform; transform.SetParent(parent); transform.SetAsLastSibling(); transform.localScale = s_FlipNone; Transform transform3 = baseGo.transform; if (transform3.parent.name == "ScrollRect") { Rect rect = (transform3.parent.transform as RectTransform).rect; Vector2 vector = new Vector2(rect.width, rect.height); transform.sizeDelta = vector; } else { transform.sizeDelta = parent.sizeDelta; } transform.position = parent.position; transform.anchoredPosition = Vector2.zero; } } } } this.m_completeType = ECompleteType.ClickAnyWhere; }
protected void AddHighLightAnyWhere() { this.PreHighlight(); this.m_completeType = ECompleteType.ClickAnyWhere; this.OpenGuideForm(); }
protected void AddHighlightWaiting() { this.PreHighlight(); this.m_completeType = ECompleteType.WaitOneWhile; this.OpenGuideForm(); }