Exemplo n.º 1
0
 public void RemoveEffectText(NewbieGuideWeakConf conf)
 {
     if (conf != null)
     {
         this.ClearEffectText();
     }
 }
Exemplo n.º 2
0
 public void RemoveEffectText(NewbieGuideWeakConf conf)
 {
     if (conf == null)
     {
         return;
     }
     this.ClearEffectText();
 }
Exemplo n.º 3
0
 private bool AddEffect(NewbieGuideWeakConf conf)
 {
     if (this.HasEffect(conf.dwID))
     {
         return(false);
     }
     this.curToAddEffectConf = conf;
     this.mToaddConfList.Add(conf);
     this.tryToAddEffectTime = 0f;
     return(true);
 }
Exemplo n.º 4
0
    private GameObject ShowBackHomeTip(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CSkillButtonManager cSkillButtonManager = (Singleton <CBattleSystem> .GetInstance().FightForm != null) ? Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager : null;

        if (cSkillButtonManager != null)
        {
            SkillButton button = cSkillButtonManager.GetButton(SkillSlotType.SLOT_SKILL_6);
            return(this.AddBubbleEffectInternal(button.m_button, conf, inControl, Singleton <CBattleSystem> .GetInstance().FightFormScript));
        }
        return(null);
    }
Exemplo n.º 5
0
    private GameObject ShowClickVictoryTipsBtn(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(SettlementSystem.SettlementFormName);

        if (form == null)
        {
            return(null);
        }
        Transform  transform  = form.GetWidget(24).transform;
        GameObject gameObject = transform.FindChild("Btn").gameObject;
        PlayerKDA  playerKDA  = null;

        if (Singleton <BattleLogic> .GetInstance().battleStat != null && Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat != null)
        {
            playerKDA = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat.GetHostKDA();
        }
        string text = string.Empty;

        if (playerKDA != null)
        {
            ListView <HeroKDA> .Enumerator enumerator = playerKDA.GetEnumerator();
            uint key = 0u;
            while (enumerator.MoveNext())
            {
                HeroKDA current = enumerator.get_Current();
                if (current != null)
                {
                    key = (uint)current.HeroId;
                    break;
                }
            }
            ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(key);
            if (dataByKey != null)
            {
                text = dataByKey.szName;
            }
            else
            {
                text = Singleton <CTextManager> .GetInstance().GetText("WinTrick_Tips_DefaultHeroName");
            }
        }
        else
        {
            text = Singleton <CTextManager> .GetInstance().GetText("WinTrick_Tips_DefaultHeroName");
        }
        transform.FindChild("Panel_Guide").gameObject.CustomSetActive(true);
        transform.FindChild("Panel_Guide/Text").GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("WinTrick_Tips_text", new string[]
        {
            text
        });

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 6
0
    private GameObject ShowClickSaveReplayKit(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(SettlementSystem.SettlementFormName);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.transform.FindChild("Panel/ButtonGrid/BtnSaveReplay").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 7
0
    private GameObject ShowPvPEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(LobbyForm.FORM_PATH);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.Find("BtnCon/PvpBtn").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 8
0
    private GameObject ShowFullHeroPanelEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CHeroSelectSystem.s_heroSelectFormPath);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.Find("PanelLeft/ListHostHeroInfo/btnOpenFullHeroPanel").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 9
0
    private GameObject ShowClickRankBtn(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CLobbySystem.LOBBY_FORM_PATH);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.FindChild("BtnCon/LadderBtn").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 10
0
    private GameObject ShowClickStartMatch55(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CMatchingSystem.PATH_MATCHING_MULTI);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.FindChild("Panel_Main/Btn_Matching").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 11
0
    private GameObject ShowHeroSelConfirmEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CHeroSelectNormalSystem.s_heroSelectFormPath);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.Find("PanelRight/btnConfirm").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 12
0
    private GameObject ShowClickTrainWheelDisc(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CMatchingSystem.PATH_MATCHING_ENTRY);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.Find("panelGroup4/btnGroup/Button2").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 13
0
    private GameObject ShowClickMatchingConfirmBoxConfirm(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CMatchingSystem.PATH_MATCHING_CONFIRMBOX);

        if (form == null)
        {
            return(null);
        }
        GameObject gameObject = form.gameObject.transform.Find("Panel/Panel/btnGroup/Button_Confirm").gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 14
0
    private GameObject ShowBattleHeroSelEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CHeroSelectNormalSystem.s_heroSelectFormPath);

        if (form == null)
        {
            return(null);
        }
        uint       num        = conf.Param[0];
        string     name       = string.Format("PanelLeft/ListHostHeroInfo/ScrollRect/Content/ListElement_{0}/heroItemCell", num);
        GameObject gameObject = form.gameObject.transform.Find(name).gameObject;

        return(this.AddEffectInternal(gameObject, conf, inControl, form));
    }
Exemplo n.º 15
0
    private void CheckNext()
    {
        int count = this.mConfList.Count;

        if (this.m_CurStep <= count)
        {
            NewbieGuideWeakConf conf = this.mConfList[((int)this.m_CurStep) - 1];
            this.AddEffect(conf);
        }
        else
        {
            this.CompleteAll();
        }
    }
Exemplo n.º 16
0
    private void CheckNext()
    {
        int count = this.mConfList.Count;

        if ((ulong)this.m_CurStep <= (ulong)((long)count))
        {
            NewbieGuideWeakConf conf = this.mConfList[(int)(this.m_CurStep - 1u)];
            this.AddEffect(conf);
        }
        else
        {
            this.CompleteAll();
        }
    }
    private GameObject ShowClickWinShare(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(SettlementSystem.SettlementFormName);

        if (form == null)
        {
            return(null);
        }
        Transform transform = form.gameObject.transform.FindChild("Panel/ButtonGrid/ButtonShare");

        if (transform == null)
        {
            return(null);
        }
        return(this.AddEffectInternal(transform.gameObject, conf, inControl, form));
    }
    private GameObject ShowClickTrainBtn(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CMatchingSystem.PATH_MATCHING_ENTRY);

        if (form == null)
        {
            return(null);
        }
        Transform transform = form.gameObject.transform.Find("panelGroupBottom/ButtonTrain");

        if (transform == null)
        {
            return(null);
        }
        return(this.AddEffectInternal(transform.gameObject, conf, inControl, form));
    }
    private GameObject ShowPvEEffect(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CLobbySystem.LOBBY_FORM_PATH);

        if (form == null)
        {
            return(null);
        }
        Transform transform = form.gameObject.transform.Find("BtnCon/PveBtn");

        if (transform == null)
        {
            return(null);
        }
        return(this.AddEffectInternal(transform.gameObject, conf, inControl, form));
    }
Exemplo n.º 20
0
    private GameObject ShowClickSymbolDraw(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(Singleton <CMallSystem> .GetInstance().sMallFormPath);

        if (form == null)
        {
            return(null);
        }
        Transform transform = form.transform.FindChild("pnlBodyBg/Panel_SymbolMake/Panel_SymbolDraw/btnJump");

        if (transform == null)
        {
            return(null);
        }
        return(this.AddBubbleEffectInternal(transform.gameObject, conf, inControl, form));
    }
Exemplo n.º 21
0
    private GameObject ShowClickCommomEquip(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CEquipSystem.s_CustomRecommendEquipPath);

        if (form == null)
        {
            return(null);
        }
        Transform transform = form.transform.FindChild("Panel_Main/Panel_EquipCustom/Panel_EquipCustomContent/godEquipButton");

        if (transform == null)
        {
            return(null);
        }
        return(this.AddBubbleEffectInternal(transform.gameObject, conf, inControl, form));
    }
Exemplo n.º 22
0
    public NewbieGuideDataManager()
    {
        int length = 0;

        this.mMainLineCacheArr = new NewbieGuideMainLineConf[GameDataMgr.newbieMainLineDatabin.Count()];
        GameDataMgr.newbieMainLineDatabin.CopyTo(ref this.mMainLineCacheArr);
        this.SortMainLineList(this.mMainLineCacheArr);
        this.mScriptCacheDic = new DictionaryView <uint, ListView <NewbieGuideScriptConf> >();
        NewbieGuideScriptConf[] array = new NewbieGuideScriptConf[GameDataMgr.newbieScriptDatabin.RawDatas.Length];
        GameDataMgr.newbieScriptDatabin.RawDatas.CopyTo(array, 0);
        length = array.Length;
        for (int i = 0; i < length; i++)
        {
            ListView <NewbieGuideScriptConf> view;
            NewbieGuideScriptConf            item = array[i];
            if (!this.mScriptCacheDic.TryGetValue(item.wMainLineID, out view))
            {
                view = new ListView <NewbieGuideScriptConf>();
                this.mScriptCacheDic.Add(item.wMainLineID, view);
            }
            view.Add(item);
        }
        this.mSpecialTipCacheArr = new NewbieGuideSpecialTipConf[GameDataMgr.newbieSpecialTipDatabin.count];
        GameDataMgr.newbieSpecialTipDatabin.CopyTo(ref this.mSpecialTipCacheArr);
        this.mWeakMainLineCacheArr = new NewbieWeakGuideMainLineConf[GameDataMgr.newbieWeakMainLineDataBin.count];
        GameDataMgr.newbieWeakMainLineDataBin.CopyTo(ref this.mWeakMainLineCacheArr);
        this.SortWeakMainLineList(this.mWeakMainLineCacheArr);
        NewbieGuideWeakConf[] inArrayRef = new NewbieGuideWeakConf[GameDataMgr.newbieWeakDatabin.count];
        GameDataMgr.newbieWeakDatabin.CopyTo(ref inArrayRef);
        this.mWeakScriptCacheDic = new DictionaryView <uint, ListView <NewbieGuideWeakConf> >();
        length = inArrayRef.Length;
        for (int j = 0; j < length; j++)
        {
            ListView <NewbieGuideWeakConf> view2;
            NewbieGuideWeakConf            conf2 = inArrayRef[j];
            if (!this.mWeakScriptCacheDic.TryGetValue(conf2.dwWeakLineID, out view2))
            {
                view2 = new ListView <NewbieGuideWeakConf>();
                this.mWeakScriptCacheDic.Add(conf2.dwWeakLineID, view2);
            }
            view2.Add(conf2);
        }
        this.mCacheMainLineSourceList = new ListView <NewbieGuideMainLineConf>();
        this.mCacheMainLineTargetList = new ListView <NewbieGuideMainLineConf>();
        this.mCacheWeakSourceList     = new ListView <NewbieWeakGuideMainLineConf>();
        this.mCacheWeakTargetList     = new ListView <NewbieWeakGuideMainLineConf>();
    }
Exemplo n.º 23
0
    public NewbieGuideDataManager()
    {
        this.mMainLineCacheArr = new NewbieGuideMainLineConf[GameDataMgr.newbieMainLineDatabin.Count()];
        GameDataMgr.newbieMainLineDatabin.CopyTo(ref this.mMainLineCacheArr);
        this.SortMainLineList(this.mMainLineCacheArr);
        this.mScriptCacheDic = new DictionaryView <uint, ListView <NewbieGuideScriptConf> >();
        NewbieGuideScriptConf[] array = new NewbieGuideScriptConf[GameDataMgr.newbieScriptDatabin.RawDatas.Length];
        GameDataMgr.newbieScriptDatabin.RawDatas.CopyTo(array, 0);
        int num = array.Length;

        for (int i = 0; i < num; i++)
        {
            NewbieGuideScriptConf            newbieGuideScriptConf = array[i];
            ListView <NewbieGuideScriptConf> listView;
            if (!this.mScriptCacheDic.TryGetValue((uint)newbieGuideScriptConf.wMainLineID, out listView))
            {
                listView = new ListView <NewbieGuideScriptConf>();
                this.mScriptCacheDic.Add((uint)newbieGuideScriptConf.wMainLineID, listView);
            }
            listView.Add(newbieGuideScriptConf);
        }
        this.mSpecialTipCacheArr = new NewbieGuideSpecialTipConf[GameDataMgr.newbieSpecialTipDatabin.count];
        GameDataMgr.newbieSpecialTipDatabin.CopyTo(ref this.mSpecialTipCacheArr);
        this.mWeakMainLineCacheArr = new NewbieWeakGuideMainLineConf[GameDataMgr.newbieWeakMainLineDataBin.count];
        GameDataMgr.newbieWeakMainLineDataBin.CopyTo(ref this.mWeakMainLineCacheArr);
        this.SortWeakMainLineList(this.mWeakMainLineCacheArr);
        NewbieGuideWeakConf[] array2 = new NewbieGuideWeakConf[GameDataMgr.newbieWeakDatabin.count];
        GameDataMgr.newbieWeakDatabin.CopyTo(ref array2);
        this.mWeakScriptCacheDic = new DictionaryView <uint, ListView <NewbieGuideWeakConf> >();
        num = array2.Length;
        for (int j = 0; j < num; j++)
        {
            NewbieGuideWeakConf            newbieGuideWeakConf = array2[j];
            ListView <NewbieGuideWeakConf> listView2;
            if (!this.mWeakScriptCacheDic.TryGetValue(newbieGuideWeakConf.dwWeakLineID, out listView2))
            {
                listView2 = new ListView <NewbieGuideWeakConf>();
                this.mWeakScriptCacheDic.Add(newbieGuideWeakConf.dwWeakLineID, listView2);
            }
            listView2.Add(newbieGuideWeakConf);
        }
        this.mCacheMainLineSourceList = new ListView <NewbieGuideMainLineConf>();
        this.mCacheMainLineTargetList = new ListView <NewbieGuideMainLineConf>();
        this.mCacheWeakSourceList     = new ListView <NewbieWeakGuideMainLineConf>();
        this.mCacheWeakTargetList     = new ListView <NewbieWeakGuideMainLineConf>();
    }
Exemplo n.º 24
0
    public void Complete(uint weakGuideId, uint nextStep = 0u)
    {
        NewbieGuideWeakConf newbieGuideWeakConf = this.mConfList[(int)(this.m_CurStep - 1u)];

        this.RemoveEffect(weakGuideId);
        if (newbieGuideWeakConf.Param[2] > 0u)
        {
            this.CompleteAll();
            return;
        }
        if (nextStep == 0u)
        {
            this.m_CurStep += 1u;
        }
        else
        {
            this.m_CurStep = nextStep;
        }
        this.CheckNext();
    }
Exemplo n.º 25
0
    public void Complete(uint weakGuideId, uint nextStep = 0)
    {
        NewbieGuideWeakConf conf = this.mConfList[((int)this.m_CurStep) - 1];

        this.RemoveEffect(weakGuideId);
        if (conf.Param[2] > 0)
        {
            this.CompleteAll();
        }
        else
        {
            if (nextStep == 0)
            {
                this.m_CurStep++;
            }
            else
            {
                this.m_CurStep = nextStep;
            }
            this.CheckNext();
        }
    }
Exemplo n.º 26
0
    private void AddEffectText(NewbieGuideWeakConf conf, GameObject inParentObj, CUIFormScript inOriginalForm)
    {
        this.ClearEffectText();
        if (conf != null && conf.wSpecialTip > 0)
        {
            NewbieGuideSpecialTipConf specialTipConfig = Singleton <NewbieGuideDataManager> .GetInstance().GetSpecialTipConfig((uint)conf.wSpecialTip);

            if (specialTipConfig != null)
            {
                if (specialTipConfig.bGuideTextPos == 0)
                {
                    if (this.m_guideTextStatic != null)
                    {
                        this.m_guideTextStatic.CustomSetActive(true);
                        Transform transform = this.m_guideTextStatic.transform.FindChild("RightSpecial/Text");
                        if (transform != null)
                        {
                            Text component = transform.GetComponent <Text>();
                            if (component != null)
                            {
                                component.text = StringHelper.UTF8BytesToString(ref specialTipConfig.szTipText);
                            }
                        }
                    }
                }
                else
                {
                    this.m_guideTextObj = NewbieGuideBaseScript.InstantiateGuideText(specialTipConfig, inParentObj, this.m_formWeakGuide, inOriginalForm);
                }
            }
        }
        this.m_conf         = conf;
        this.m_parentObj    = inParentObj;
        this.m_originalForm = inOriginalForm;
        if (this.m_formWeakGuide != null)
        {
            this.m_formWeakGuide.SetPriority(this.m_originalForm.m_priority + 1);
        }
    }
Exemplo n.º 27
0
    private void AddBubbleText(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        GameObject gameObject = this.m_formWeakGuide.transform.FindChild("GuideText").gameObject;

        gameObject.CustomSetActive(true);
        NewbieGuideSpecialTipConf specialTipConfig = Singleton <NewbieGuideDataManager> .GetInstance().GetSpecialTipConfig((uint)conf.wSpecialTip);

        CUICommonSystem.SetTextContent(gameObject.transform.FindChild("RightSpecial/Text"), specialTipConfig.szTipText);
        RectTransform rectTransform = gameObject.transform as RectTransform;

        rectTransform.anchoredPosition = new Vector2
        {
            x = (float)specialTipConfig.iOffsetX,
            y = (float)specialTipConfig.iOffsetY
        };
        CUITimerScript componetInChild = Utility.GetComponetInChild <CUITimerScript>(gameObject, "Timer");

        if (conf.Param[0] != 0u)
        {
            componetInChild.SetTotalTime(conf.Param[0]);
        }
        componetInChild.StartTimer();
    }
Exemplo n.º 28
0
    private GameObject AddEffectInternal(GameObject effectParent, NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl, CUIFormScript inOriginalForm)
    {
        GameObject original = Singleton <CResourceManager> .GetInstance().GetResource(NewbieWeakGuideImpl.WEAK_EFFECT_PATH, typeof(GameObject), 4, false, false).m_content as GameObject;

        GameObject gameObject = Object.Instantiate(original) as GameObject;

        gameObject.transform.SetParent(effectParent.transform);
        Transform transform = effectParent.transform.FindChild("Panel");

        if (transform != null && transform.gameObject.activeInHierarchy)
        {
            gameObject.transform.SetParent(transform);
        }
        gameObject.transform.localScale = Vector3.one;
        gameObject.transform.position   = effectParent.transform.position;
        (gameObject.transform as RectTransform).anchoredPosition = new Vector2((float)conf.iOffsetHighLightX, (float)conf.iOffsetHighLightY);
        if (conf.bNotShowArrow != 0)
        {
            gameObject.transform.FindChild("Panel/ImageFinger").gameObject.CustomSetActive(false);
        }
        this.AddEffectText(conf, effectParent, inOriginalForm);
        return(gameObject);
    }
Exemplo n.º 29
0
    private GameObject AddEffectInternal(GameObject effectParent, NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl, CUIFormScript inOriginalForm)
    {
        GameObject content = Singleton <CResourceManager> .GetInstance().GetResource(WEAK_EFFECT_PATH, typeof(GameObject), enResourceType.UIPrefab, false, false).m_content as GameObject;

        GameObject obj3 = UnityEngine.Object.Instantiate(content) as GameObject;

        obj3.transform.SetParent(effectParent.transform);
        Transform parent = effectParent.transform.FindChild("Panel");

        if ((parent != null) && parent.gameObject.activeInHierarchy)
        {
            obj3.transform.SetParent(parent);
        }
        obj3.transform.localScale = Vector3.one;
        obj3.transform.position   = effectParent.transform.position;
        (obj3.transform as RectTransform).anchoredPosition = new Vector2((float)conf.iOffsetHighLightX, (float)conf.iOffsetHighLightY);
        if (conf.bNotShowArrow != 0)
        {
            obj3.transform.FindChild("Panel/ImageFinger").gameObject.CustomSetActive(false);
        }
        this.AddEffectText(conf, effectParent, inOriginalForm);
        return(obj3);
    }
Exemplo n.º 30
0
    private GameObject AddBubbleEffectInternal(GameObject effectParent, NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl, CUIFormScript inOriginalForm)
    {
        if (effectParent == null)
        {
            return(null);
        }
        if (effectParent.transform.FindChild("WeakGuideBubble(Clone)") != null)
        {
            return(null);
        }
        GameObject original = Singleton <CResourceManager> .GetInstance().GetResource(NewbieWeakGuideImpl.WEAK_BUBBLE_PATH, typeof(GameObject), 4, false, false).m_content as GameObject;

        GameObject gameObject = Object.Instantiate(original) as GameObject;

        gameObject.transform.SetParent(effectParent.transform);
        RectTransform             rectTransform    = gameObject.transform.FindChild("Image") as RectTransform;
        RectTransform             rectTransform2   = gameObject.transform as RectTransform;
        NewbieGuideSpecialTipConf specialTipConfig = Singleton <NewbieGuideDataManager> .GetInstance().GetSpecialTipConfig((uint)conf.wSpecialTip);

        if (specialTipConfig != null)
        {
            CUICommonSystem.SetTextContent(rectTransform2.FindChild("Text"), specialTipConfig.szTipText);
        }
        Vector2 anchorMin        = default(Vector2);
        Vector2 anchorMax        = default(Vector2);
        Vector2 pivot            = default(Vector2);
        Vector3 one              = Vector3.one;
        Vector2 anchoredPosition = default(Vector2);

        switch (specialTipConfig.bSpecialTipPos)
        {
        case 0:
            anchorMin.x        = 0f;
            anchorMin.y        = 1f;
            anchorMax.x        = 0f;
            anchorMax.y        = 1f;
            one.y              = -1f;
            pivot.x            = 0f;
            pivot.y            = 0f;
            anchoredPosition.x = 10f;
            anchoredPosition.y = 15f;
            break;

        case 1:
            anchorMin.x        = 0f;
            anchorMin.y        = 0f;
            anchorMax.x        = 0f;
            anchorMax.y        = 0f;
            pivot.x            = 0f;
            pivot.y            = 0f;
            anchoredPosition.x = 10f;
            anchoredPosition.y = -15f;
            break;

        case 2:
            anchorMin.x        = 1f;
            anchorMin.y        = 1f;
            anchorMax.x        = 1f;
            anchorMax.y        = 1f;
            one.y              = -1f;
            pivot.x            = 1f;
            pivot.y            = 0f;
            anchoredPosition.x = -10f;
            anchoredPosition.y = 15f;
            break;

        case 3:
            anchorMin.x        = 1f;
            anchorMin.y        = 0f;
            anchorMax.x        = 1f;
            anchorMax.y        = 0f;
            pivot.x            = 1f;
            pivot.y            = 0f;
            anchoredPosition.x = -10f;
            anchoredPosition.y = -15f;
            break;
        }
        rectTransform2.position         = effectParent.transform.position;
        rectTransform2.anchoredPosition = Vector2.zero;
        Vector2 anchoredPosition2 = rectTransform2.anchoredPosition;

        anchoredPosition2.x            += (float)specialTipConfig.iOffsetX;
        anchoredPosition2.y            += (float)specialTipConfig.iOffsetY;
        rectTransform2.anchoredPosition = anchoredPosition2;
        rectTransform2.localScale       = Vector3.one;
        rectTransform.localScale        = one;
        rectTransform.anchorMin         = anchorMin;
        rectTransform.anchorMax         = anchorMax;
        rectTransform.pivot             = pivot;
        rectTransform.anchoredPosition  = anchoredPosition;
        CUITimerScript componetInChild = Utility.GetComponetInChild <CUITimerScript>(gameObject, "Timer");

        if (componetInChild != null)
        {
            if (conf.Param[0] != 0u)
            {
                componetInChild.SetTotalTime(conf.Param[0]);
            }
            componetInChild.StartTimer();
        }
        return(gameObject);
    }