示例#1
0
 private void ClearHighlightInternal()
 {
     this.SetBackgroundTransparency(NewbieGuideBaseScript.EOpacityLadder.Transparent);
     this.ClearHighlitObjs();
     NewbieGuideBaseScript.ms_originalGo.Clear();
     NewbieGuideBaseScript.ms_originalForm = null;
     this.m_completeType = NewbieGuideBaseScript.ECompleteType.ClickButton;
 }
示例#2
0
 private void PreHighlight()
 {
     this.m_completeType = NewbieGuideBaseScript.ECompleteType.ClickButton;
     NewbieGuideBaseScript.ms_originalGo.Clear();
     NewbieGuideBaseScript.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)
         {
             GameObject gameObject = transform.gameObject;
             gameObject.CustomSetActive(false);
         }
     }
 }
示例#3
0
    protected void AddHighLightAreaClickAnyWhere(GameObject baseGo, CUIFormScript inOriginalForm)
    {
        this.AddHighlightInternal(baseGo, inOriginalForm, false, false);
        List <GameObject> .Enumerator enumerator = NewbieGuideBaseScript.ms_highlitGo.GetEnumerator();
        while (enumerator.MoveNext())
        {
            GameObject current = enumerator.get_Current();
            if (!(current == null))
            {
                RectTransform rectTransform = current.transform as RectTransform;
                GameObject    gameObject    = Singleton <CResourceManager> .GetInstance().GetResource("UGUI/Form/System/Dialog/HighlightAreaMask.prefab", typeof(GameObject), enResourceType.UIPrefab, false, false).m_content as GameObject;

                if (gameObject != null)
                {
                    GameObject gameObject2 = Object.Instantiate(gameObject) as GameObject;
                    if (gameObject2 != null)
                    {
                        RectTransform rectTransform2 = gameObject2.transform as RectTransform;
                        rectTransform2.SetParent(rectTransform);
                        rectTransform2.SetAsLastSibling();
                        rectTransform2.localScale = NewbieGuideBaseScript.s_FlipNone;
                        Transform transform = baseGo.transform;
                        if (transform.parent.name == "ScrollRect")
                        {
                            Rect    rect      = (transform.parent.transform as RectTransform).rect;
                            Vector2 sizeDelta = new Vector2(rect.width, rect.height);
                            rectTransform2.sizeDelta = sizeDelta;
                        }
                        else
                        {
                            rectTransform2.sizeDelta = rectTransform.sizeDelta;
                        }
                        rectTransform2.position         = rectTransform.position;
                        rectTransform2.anchoredPosition = Vector2.zero;
                    }
                }
            }
        }
        this.m_completeType = NewbieGuideBaseScript.ECompleteType.ClickAnyWhere;
    }
示例#4
0
 protected void AddHighlightWaiting()
 {
     this.PreHighlight();
     this.m_completeType = NewbieGuideBaseScript.ECompleteType.WaitOneWhile;
     this.OpenGuideForm();
 }
示例#5
0
 protected void AddHighLightAnyWhere()
 {
     this.PreHighlight();
     this.m_completeType = NewbieGuideBaseScript.ECompleteType.ClickAnyWhere;
     this.OpenGuideForm();
 }