Esempio n. 1
0
    private void Update()
    {
        if (Input.GetKeyUp(27))
        {
            if ((!string.IsNullOrEmpty(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialBit) && !MonoBehaviourSingleton <UserInfoManager> .I.CheckTutorialBit(TUTORIAL_MENU_BIT.SKILL_EQUIP)) || !TutorialStep.HasAllTutorialCompleted())
            {
                if (MonoBehaviourSingleton <GameSceneManager> .IsValid())
                {
                    string currentSectionName = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName();

                    if (!string.IsNullOrEmpty(currentSectionName) && MonoBehaviourSingleton <ToastManager> .IsValid() && !MonoBehaviourSingleton <ToastManager> .I.IsShowingDialog())
                    {
                        string text = (!(MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSceneName() == "TitleScene")) ? StringTable.Get(STRING_CATEGORY.TEXT_SCRIPT, 36u) : "You are unable to go back to Town Scene during this Tutorial Mission";
                        ToastManager.PushOpen(text, 1.8f);
                    }
                }
            }
            else if (IsEnableTutorialMessage())
            {
                if (tutorialMessage.IsOnlyShowImage() && TutorialMessage.GetCursor(0) == null)
                {
                    tutorialMessage.TutorialClose();
                }
            }
            else if (!(tutorialMessage != null) || !(TutorialMessage.GetCursor(0) != null))
            {
                ProcessBackKey();
            }
        }
    }
Esempio n. 2
0
    public override bool DispatchEvent()
    {
        //IL_006e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0081: Expected O, but got Unknown
        if (!TutorialStep.HasAllTutorialCompleted() || MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() || TutorialMessage.GetCursor(0) != null)
        {
            return(false);
        }
        if (HomeBase.OnAfterGacha2Tutorial)
        {
            return(false);
        }
        if (state == STATE.FREE && npcInfo != null && !string.IsNullOrEmpty(npcInfo.eventName))
        {
            MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("HomeNPCCharacter", this.get_gameObject(), npcInfo.eventName, null, null, true);

            return(true);
        }
        return(false);
    }
Esempio n. 3
0
    public override void UpdateUI()
    {
        UserInfo   userInfo   = MonoBehaviourSingleton <UserInfoManager> .I.userInfo;
        UserStatus userStatus = MonoBehaviourSingleton <UserInfoManager> .I.userStatus;

        SetSupportEncoding(base._transform, UI.LBL_NAME, true);
        SetLabelText((Enum)UI.LBL_NAME, Utility.GetNameWithColoredClanTag(string.Empty, userInfo.name, true, true));
        SetLabelText((Enum)UI.LBL_LEVEL, userStatus.level.ToString());
        SetLabelText((Enum)UI.LBL_CRYSTAL, userStatus.crystal.ToString("N0"));
        SetLabelText((Enum)UI.LBL_MONEY, userStatus.money.ToString("N0"));
        SetProgressValue((Enum)UI.PBR_EXP, userStatus.ExpProgress01);
        InitDeactive((Enum)UI.SPR_EXP_NEXT);
        if (TutorialStep.HasAllTutorialCompleted() && !MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() && TutorialMessage.GetCursor(0) == null)
        {
            SetTouchAndRelease((Enum)UI.SPR_BG02, "EXP_NEXT_SHOW", "EXP_NEXT_HIDE", (object)null);
        }
        SetBadge((Enum)UI.BTN_MENU, MonoBehaviourSingleton <PresentManager> .I.presentNum + MonoBehaviourSingleton <FriendManager> .I.noReadMessageNum + (GameSaveData.instance.IsShowNewsNotification() ? 1 : 0), 3, -15, -8, false);
        if (boostAnimator == null)
        {
            boostAnimator = this.GetComponentInChildren <StatusBoostAnimator>();
        }
        boostAnimator.SetupUI(delegate(BoostStatus update_boost)
        {
            if (update_boost != null)
            {
                UpdateShowBoost(update_boost);
            }
            else
            {
                EndShowBoost();
            }
        }, delegate(BoostStatus change_boost)
        {
            if (change_boost != null)
            {
                ChangeShowBoost(change_boost.type);
                UpdateShowBoost(change_boost);
            }
            else
            {
                EndShowBoost();
            }
        });
        SetFontStyle((Enum)UI.LBL_BOOST_RATE, 2);
        SetFontStyle((Enum)UI.LBL_BOOST_TIME, 2);
    }
Esempio n. 4
0
 public void DispatchEvent()
 {
     //IL_00d5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e2: Expected O, but got Unknown
     //IL_017e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0191: Expected O, but got Unknown
     if (!HomeBase.OnAfterGacha2Tutorial || eventName.Contains("QUEST_COUNTER"))
     {
         if (eventName.Contains("QUEST_COUNTER"))
         {
             if ((TutorialStep.HasFirstDeliveryCompleted() && !TutorialStep.HasAllTutorialCompleted()) || MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() || TutorialMessage.GetCursor(0) != null)
             {
                 return;
             }
         }
         else if (!TutorialStep.HasAllTutorialCompleted() || MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() || TutorialMessage.GetCursor(0) != null)
         {
             return;
         }
         if (eventName.Contains("EVENT_COUNTER") && (int)MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level < 20)
         {
             MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("HomeStageEventBase", this.get_gameObject(), "QUEST_LOCK", null, null, true);
         }
         else if (!eventName.Contains("POINT_SHOP") && (!eventName.Contains("ARENA_LIST") || (MonoBehaviourSingleton <UserInfoManager> .I.isArenaOpen && (int)MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level >= 50)) && (!eventName.Contains("BINGO") || MonoBehaviourSingleton <QuestManager> .I.IsBingoPlayableEventExist()) && MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible())
         {
             MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("HomeStageEventBase", this.get_gameObject(), eventName, eventData, null, true);
         }
     }
 }
    public override bool DispatchEvent()
    {
        //IL_004e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0060: Expected O, but got Unknown
        if (!TutorialStep.HasAllTutorialCompleted() || MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() || TutorialMessage.GetCursor(0) != null)
        {
            return(false);
        }
        if (HomeBase.OnAfterGacha2Tutorial)
        {
            return(false);
        }
        if (GetFriendCharaInfo() != null)
        {
            MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("HomePlayerCharacter", this.get_gameObject(), "HOME_FRIENDS", GetFriendCharaInfo(), null, true);

            return(true);
        }
        return(false);
    }