Пример #1
0
    public void SetTalkText()
    {
        this.currentGameGuideInfo = NrTSingleton <GameGuideManager> .Instance.GetGameGuideInfo();

        if (this.currentGameGuideInfo != null)
        {
            if (this.currentGameGuideInfo.m_eType == GameGuideType.DEFAULT)
            {
                this.talkText.SetFlashLabel(NrTSingleton <GameGuideManager> .Instance.GetDefaultGuideText());
            }
            else
            {
                this.talkText.SetFlashLabel(NrTSingleton <GameGuideManager> .Instance.GetGameGuideText());
                this.excute.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(this.currentGameGuideInfo.m_strButtonKey);

                if (this.currentGameGuideInfo.m_eType == GameGuideType.EQUIP_ITEM)
                {
                    GameGuideEquip gameGuideEquip = this.currentGameGuideInfo as GameGuideEquip;
                    if (gameGuideEquip != null)
                    {
                        base.SetShowLayer(2, true);
                        if (gameGuideEquip.GetSrcItem() != null && gameGuideEquip.GetDestItem() == null)
                        {
                            this.item1.ClearData();
                            this.item1.SetTexture("Win_T_ItemEmpty");
                            this.item2.SetItemTexture(gameGuideEquip.GetSrcItem());
                        }
                        else if (gameGuideEquip.GetSrcItem() != null && gameGuideEquip.GetDestItem() != null)
                        {
                            this.item1.SetItemTexture(gameGuideEquip.GetDestItem());
                            this.backItem1.SetTexture(gameGuideEquip.GetDestItem().GetRankImage());
                            this.item2.SetItemTexture(gameGuideEquip.GetSrcItem());
                        }
                    }
                }
                else if (this.currentGameGuideInfo.m_eType == GameGuideType.EQUIP_SELL && NrTSingleton <NkCharManager> .Instance.GetMyCharInfo().GetEquipSellMoney() == 0L && NrTSingleton <NkCharManager> .Instance.GetMyCharInfo().EquipMoneyAttackPlunder)
                {
                    NrTSingleton <NkCharManager> .Instance.GetMyCharInfo().EquipMoneyAttackPlunder = false;

                    this.excute.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("10"));
                }
            }
        }
    }
Пример #2
0
    public void AddGameGuide(GameGuideInfo gameGuideInfo)
    {
        GameGuideInfo gameGuideInfo2 = null;

        if (gameGuideInfo.m_eType == GameGuideType.EQUIP_ITEM)
        {
            gameGuideInfo2 = new GameGuideEquip();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.FRIEND_RECOMMEND1 || gameGuideInfo.m_eType == GameGuideType.FRIEND_RECOMMEND2 || gameGuideInfo.m_eType == GameGuideType.FRIEND_RECOMMEND3)
        {
            gameGuideInfo2 = new GameGuideAddFriend();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_EQUIP)
        {
            gameGuideInfo2 = new GameGuideRecommendEquip();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.EQUIP_SELL)
        {
            gameGuideInfo2 = new GameGuideEquipSell();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHECK_FPS)
        {
            gameGuideInfo2 = new GameGuideCheckFPS();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.PLUNDER_INFO)
        {
            gameGuideInfo2 = new GameGuidePlunderInfo();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.SUPPORT_GOLD)
        {
            gameGuideInfo2 = new GameGuideSupportGoldInfo();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.PLUNDER_REQUEST)
        {
            gameGuideInfo2 = new GameGuidePlunderRequest();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.SELL_ITEM)
        {
            gameGuideInfo2 = new GameGuideSellItem();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.ENCHANT_SOL)
        {
            gameGuideInfo2 = new GameGuideEnchantSol();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_REFORGE)
        {
            gameGuideInfo2 = new GameGuideRecommendReforge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_HEALER)
        {
            gameGuideInfo2 = new GameGuideRecommendHealer();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_SKILL)
        {
            gameGuideInfo2 = new GameGuideRecommendSkill();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_MON)
        {
            gameGuideInfo2 = new GameGuideRecommendMon();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_SOL)
        {
            gameGuideInfo2 = new GameGuideRecommendSol();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.RECOMMEND_COMPOSE)
        {
            gameGuideInfo2 = new GameGuideRecommendCompose();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.GET_RUNESTONE)
        {
            gameGuideInfo2 = new GameGuideGetRunestone();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.GET_ORIHARCON)
        {
            gameGuideInfo2 = new GameGuideGetOriharcon();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CERTIFY_EMAIL)
        {
            gameGuideInfo2 = new GameGuideCertifyEMAIL();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.MINE_ITEMGET)
        {
            gameGuideInfo2 = new GameGuideMineNotify();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.MINE_PLUNDER)
        {
            gameGuideInfo2 = new GameGuideMinePlunder();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.REVIEW)
        {
            gameGuideInfo2 = new GameGuideReview();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.COLOSSEUM)
        {
            gameGuideInfo2 = new GameGuideColosseum();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.FRIEND_LIMIT)
        {
            gameGuideInfo2 = new GameGuideFriendLimit();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.PURCHASE_RESTORE)
        {
            gameGuideInfo2 = new GameGuidePurchaseRestore();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.TREASURE_ALARM)
        {
            gameGuideInfo2 = new GameGuideTreasureAlarm();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.EXPEDITION_ITEMGET)
        {
            gameGuideInfo2 = new GameGuideExpeditionNotify();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_PREMIUM_ONE)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_SOL_EXTRACT)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_LEGEND_RECRUIT)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_SOL_TRANSCENDENCE)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_SOL_COMPOSE)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        else if (gameGuideInfo.m_eType == GameGuideType.CHALLENGE_LEGEND_EVOLUTION)
        {
            gameGuideInfo2 = new GameGuideChallenge();
        }
        if (gameGuideInfo2 == null)
        {
            return;
        }
        gameGuideInfo2.Set(gameGuideInfo);
        this.m_GameGuide.Add(gameGuideInfo2);
        if (1 < this.m_GameGuide.Count)
        {
            this.m_GameGuide.Sort(new Comparison <GameGuideInfo>(GameGuideManager.CompareIndices));
        }
    }