Exemplo n.º 1
0
    private void SearchChild(Transform tm)
    {
        GUICollider component = tm.gameObject.GetComponent <GUICollider>();

        if (component != null && !component.dontAddToDialogEvent)
        {
            this.touchPanels.Add(component);
        }
        IEnumerator enumerator = tm.GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                object    obj = enumerator.Current;
                Transform tm2 = (Transform)obj;
                this.SearchChild(tm2);
            }
        }
        finally
        {
            IDisposable disposable;
            if ((disposable = (enumerator as IDisposable)) != null)
            {
                disposable.Dispose();
            }
        }
    }
    private void CreateTicketIcon(GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM ticketMaster, UITexture ticketTexture)
    {
        Texture2D tex = NGUIUtil.LoadTexture(ticketMaster.img);

        if (null != tex)
        {
            NGUIUtil.ChangeUITexture(ticketTexture, tex, false);
        }
        GUICollider component = ticketTexture.gameObject.GetComponent <GUICollider>();

        if (null != component)
        {
            component.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag)
            {
                if (flag)
                {
                    CMD_ticketPOP cmd_ticketPOP = GUIMain.ShowCommonDialog(delegate(int selectButton)
                    {
                        if (selectButton == 0 && null != PartsMenu.instance)
                        {
                            PartsMenu.instance.OnClickedQuestType(1);
                        }
                    }, "CMD_ticketPOP", null) as CMD_ticketPOP;
                    cmd_ticketPOP.Title      = ticketMaster.name;
                    cmd_ticketPOP.Info       = ticketMaster.description;
                    cmd_ticketPOP.BtnTextYes = StringMaster.GetString("QuestNormal");
                    cmd_ticketPOP.BtnTextNo  = StringMaster.GetString("SystemButtonClose");
                    if (null != tex)
                    {
                        NGUIUtil.ChangeUITexture(cmd_ticketPOP.txIcon, tex, false);
                    }
                }
            };
        }
    }
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.x - pos.x) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll && this.partObjs.Count > 1)
     {
         this.scrollSpeed = this.startLoc.x - pos.x;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed;
     if (!this.enableEternalScroll)
     {
         this.selectLoc = Mathf.Max(Mathf.Min(this.selectLoc, this.borderMaxLocate), this.borderMinLocate);
     }
     this.startLoc = pos;
 }
    public static void StartQuestSelectTutorial()
    {
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (null == tutorialObserver)
        {
            GUICollider.EnableAllCollider("CMD_QuestSelect");
        }
        else
        {
            GUIMain.BarrierON(null);
            TutorialObserver tutorialObserver2 = tutorialObserver;
            string           tutorialName      = "second_tutorial_quest";
            if (QuestSecondTutorial.< > f__mg$cache0 == null)
            {
                QuestSecondTutorial.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
            }
            Action completed = QuestSecondTutorial.< > f__mg$cache0;
            if (QuestSecondTutorial.< > f__mg$cache1 == null)
            {
                QuestSecondTutorial.< > f__mg$cache1 = new Action(QuestSecondTutorial.InitializedQuestSelectTutorial);
            }
            tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache1);
        }
    }
Exemplo n.º 5
0
    public static bool IsTouching()
    {
        if (GUIManager.touchingCount < 0)
        {
            GUIManager.touchingCount = 0;
        }
        if (GUIManager.touchingCount > 2)
        {
            GUIManager.touchingCount = 2;
        }
        if (GUIManager.touchingCount > 0)
        {
            return(true);
        }
        foreach (KeyValuePair <Collider, ITouchEvent> keyValuePair in GUIManager.colliders)
        {
            if (keyValuePair.Value != null)
            {
                GUICollider guicollider = keyValuePair.Value as GUICollider;
                if (guicollider != null && guicollider.isTouching)
                {
                    return(true);
                }
            }
        }
        GUIBase guibase = GUIManager.guiBases["CommonDialogBarrier"];

        return(guibase.gameObject.activeSelf || GUIManager.touchEndTrg);
    }
Exemplo n.º 6
0
    private void IntDLG(Action <int> f, float sizeX, float sizeY, float aT)
    {
        base.ShowDLG();
        GUICollider.DisableAllCollider("CMD_QuestTOP");
        SoundMng.Instance().PlayGameBGM("bgm_301");
        base.PartsTitle.SetTitle(StringMaster.GetString("QuestTitle"));
        this.SetCommonUI_A_Stage();
        this.SetCommonUI_S_Dungeon();
        this.InitQuest();
        this.userStamina.SetMode(UserStamina.Mode.QUEST);
        this.userStamina.RefreshParams();
        base.Show(f, sizeX, sizeY, aT);
        string bgpath = this.GetBGPath();

        if (!string.IsNullOrEmpty(bgpath))
        {
            AppCoroutine.Start(this.DownloadBannerTexture(bgpath), false);
        }
        if (this.worldStageData.Count > 0)
        {
            string anyTimeQuestTopTutorialFileName = this.GetAnyTimeQuestTopTutorialFileName(this.worldStageData[0].worldStageM.worldAreaId);
            if (!string.IsNullOrEmpty(anyTimeQuestTopTutorialFileName))
            {
                base.SetTutorialAnyTime(anyTimeQuestTopTutorialFileName);
            }
        }
    }
Exemplo n.º 7
0
    public void EnableSaveButton(bool enable)
    {
        GUICollider component = this.saveButton.GetComponent <GUICollider>();

        UISprite[] componentsInChildren = component.GetComponentsInChildren <UISprite>();
        float      colorRate            = 1f;

        if (enable)
        {
            component.CallBackClass = base.gameObject;
            component.touchBehavior = GUICollider.TouchBehavior.ToLarge;
            if (!this.enableSaveButton)
            {
                colorRate = 2.5f;
            }
        }
        else
        {
            component.CallBackClass = null;
            component.touchBehavior = GUICollider.TouchBehavior.None;
            if (this.enableSaveButton)
            {
                colorRate = 0.4f;
            }
        }
        this.enableSaveButton = enable;
        this.SetButtonColor(componentsInChildren, colorRate);
    }
Exemplo n.º 8
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     if (CMD_FarewellListRun.Mode == CMD_FarewellListRun.MODE.SHOW)
     {
         TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();
         if (tutorialObserver != null)
         {
             GUIMain.BarrierON(null);
             TutorialObserver tutorialObserver2 = tutorialObserver;
             string           tutorialName      = "second_tutorial_house";
             if (CMD_FarewellListRun.< > f__mg$cache0 == null)
             {
                 CMD_FarewellListRun.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
             }
             tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FarewellListRun.< > f__mg$cache0, delegate
             {
                 GUICollider.EnableAllCollider("CMD_FarewellListRun");
             });
         }
         else
         {
             GUICollider.EnableAllCollider("CMD_FarewellListRun");
         }
     }
     else
     {
         GUICollider.EnableAllCollider("CMD_FarewellListRun");
     }
 }
Exemplo n.º 9
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.isTouching_mi = false;
     if (this.isLongTouched)
     {
         this.isLongTouched = false;
         return;
     }
     base.OnTouchEnded(touch, pos, flag);
     if (flag)
     {
         float magnitude = (this.beganPosition - pos).magnitude;
         if (magnitude < 40f && this.actTouchShort != null)
         {
             base.PlaySelectSE();
             this.actTouchShort();
         }
     }
 }
Exemplo n.º 10
0
    protected override void WindowOpened()
    {
        base.WindowOpened();
        FarmCameraControlForCMD.Off();
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (null != tutorialObserver)
        {
            GUIMain.BarrierON(null);
            TutorialObserver tutorialObserver2 = tutorialObserver;
            string           tutorialName      = "second_tutorial_facility_shop";
            if (CMD_FacilityShop.< > f__mg$cache0 == null)
            {
                CMD_FacilityShop.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
            }
            tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FacilityShop.< > f__mg$cache0, delegate
            {
                GUICollider.EnableAllCollider("CMD_FacilityShop");
            });
        }
        else
        {
            GUICollider.EnableAllCollider("CMD_FacilityShop");
        }
    }
Exemplo n.º 11
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showTime)
    {
        base.SetTutorialAnyTime("anytime_second_tutorial_facility_shop");
        GUICollider.DisableAllCollider("CMD_FacilityShop");
        if (this.ExistNewFacility() || this.ExistNewDecoration())
        {
            base.HideDLG();
            APIRequestTask apirequestTask = Singleton <UserDataMng> .Instance.RequestUserFacilityConditionData(true);

            APIRequestTask apirequestTask2 = this.ReqeustUserNewCount();
            if (apirequestTask2 != null)
            {
                apirequestTask.Add(apirequestTask2);
            }
            this.RequestUserFacilityShopInfo(apirequestTask, closeEvent, sizeX, sizeY, showTime);
        }
        else if (!Singleton <UserDataMng> .Instance.ExistUserFacilityCondition())
        {
            base.HideDLG();
            APIRequestTask task = Singleton <UserDataMng> .Instance.RequestUserFacilityConditionData(true);

            this.RequestUserFacilityShopInfo(task, closeEvent, sizeX, sizeY, showTime);
        }
        else
        {
            this.InitFacilityShop(closeEvent, sizeX, sizeY, showTime);
            RestrictionInput.EndLoad();
        }
    }
Exemplo n.º 12
0
 private void RequestUserFacilityShopInfo(APIRequestTask task, Action <int> closeEvent, float sizeX, float sizeY, float showTime)
 {
     base.StartCoroutine(task.Run(delegate
     {
         RestrictionInput.EndLoad();
         Singleton <UserDataMng> .Instance.RequestUserStockFacilityDataAPI(delegate(bool flg)
         {
             if (flg)
             {
                 this.ShowDLG();
                 this.InitFacilityShop(closeEvent, sizeX, sizeY, showTime);
             }
             else
             {
                 RestrictionInput.EndLoad();
                 GUICollider.EnableAllCollider("CMD_FacilityShop");
                 this.ClosePanel(false);
             }
         });
     }, delegate(Exception nop)
     {
         RestrictionInput.EndLoad();
         GUICollider.EnableAllCollider("CMD_FacilityShop");
         this.ClosePanel(false);
     }, null));
 }
Exemplo n.º 13
0
    protected void DisableCMD_CallBack(Transform tm)
    {
        GUICollider component = tm.gameObject.GetComponent <GUICollider>();

        if (component != null)
        {
            component.CallBackClass = base.gameObject;
        }
        IEnumerator enumerator = tm.GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                object    obj = enumerator.Current;
                Transform tm2 = (Transform)obj;
                this.DisableCMD_CallBack(tm2);
            }
        }
        finally
        {
            IDisposable disposable;
            if ((disposable = (enumerator as IDisposable)) != null)
            {
                disposable.Dispose();
            }
        }
    }
Exemplo n.º 14
0
 public virtual void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.disableAllCollider && !this.avoidDisableAllCollider)
     {
         return;
     }
     if (!this.activeCollider)
     {
         return;
     }
     this.isTouchMoved_ = true;
     if (this.callBackState == GUICollider.CallBackState.OnTouchMoved)
     {
         this.PlaySE();
     }
     if (this.onTouchMoved != null)
     {
         this.onTouchMoved(touch, pos);
     }
     if (this.callBackState == GUICollider.CallBackState.OnTouchMoved && this.CallBackClass != null && this.MethodToInvoke != null && this.MethodToInvoke != string.Empty)
     {
         this.CallBackClass.SendMessage(this.MethodToInvoke, this, SendMessageOptions.DontRequireReceiver);
     }
     if (this.SendMoveToParent && base.transform.parent != null)
     {
         GUICollider component = base.transform.parent.GetComponent <GUICollider>();
         if (component != null)
         {
             component.OnTouchMoved(touch, pos);
         }
     }
 }
Exemplo n.º 15
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        GUICollider.DisableAllCollider("CMD_ChipReinforced");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        GameWebAPI.RespDataCS_ChipListLogic.UserChipList[] array = this.ConvertChipList(ChipDataMng.userChipData);
        this.chipList = new ChipList(this.goEFC_FOOTER, 8, new Vector2(960f, 450f), array, false, true);
        this.chipList.SetPosition(new Vector3(-40f, -70f, 0f));
        this.chipList.SetScrollBarPosX(520f);
        this.chipList.SetShortTouchCallback(new Action <GUIListChipParts.Data>(this.OnShortTouchChip));
        this.chipList.SetLongTouchCallback(new Action <GUIListChipParts.Data>(this.OnLongTouchChip));
        this.chipList.AddWidgetDepth(base.gameObject.GetComponent <UIWidget>().depth);
        base.PartsTitle.SetTitle(StringMaster.GetString("ChipReinforcement-01"));
        this.sortButtonLabel.text      = StringMaster.GetString("SystemSortButton");
        this.sortNameLabel.text        = CMD_ChipSortModal.GetSortName();
        this.sortButton.CallBackClass  = base.gameObject;
        this.sortButton.MethodToInvoke = "OnSortButton";
        this.messageLabel.gameObject.SetActive(array.Count <GameWebAPI.RespDataCS_ChipListLogic.UserChipList>() == 0);
        this.messageLabel.text = StringMaster.GetString("ChipAdministration-01");
        int num = 0;

        if (ChipDataMng.userChipData != null && ChipDataMng.userChipData.userChipList != null)
        {
            num = ChipDataMng.userChipData.userChipList.Length;
        }
        this.listCountLabel.text = string.Format(StringMaster.GetString("SystemFraction"), num, DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.chipLimitMax);
        base.ShowDLG();
        base.SetTutorialAnyTime("anytime_second_tutorial_chip_reinforcement");
        base.Show(closeEvent, sizeX, sizeY, showAnimationTime);
        RestrictionInput.EndLoad();
    }
Exemplo n.º 16
0
    private void ShowItemIcon()
    {
        List <EvolutionData.MonsterEvolveItem> itemList = this.data.itemList;
        int i;

        for (i = 0; i < itemList.Count; i++)
        {
            UILabel component = this.goITEMS_NUM[i].GetComponent <UILabel>();
            string  evolveItemIconPathByID = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(itemList[i].sd_item.soulId);

            Vector3 localScale = this.goITEMS[i].transform.localScale;
            this.goITEMS[i].transform.localScale = Vector2.zero;
            this.LoadObjectASync(evolveItemIconPathByID, i, localScale);
            string      soulId     = itemList[i].sd_item.soulId;
            GUICollider component2 = this.goITEMS[i].GetComponent <GUICollider>();
            component2.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag)
            {
                this.ActCallBackDropItem(soulId);
            };
            if (itemList[i].haveNum < itemList[i].need_num)
            {
                component.text = string.Format(this.notEnoughFormat, itemList[i].haveNum, itemList[i].need_num);
            }
            else
            {
                component.text = string.Format(this.enoughFormat, itemList[i].haveNum, itemList[i].need_num);
            }
        }
        while (i < this.goITEMS.Count)
        {
            this.goITEMS[i].SetActive(false);
            this.goITEMS_NUM[i].SetActive(false);
            i++;
        }
    }
Exemplo n.º 17
0
 public override void ShowGUI()
 {
     if (!this.isUpdate && this.parent == null)
     {
         this.parent = base.gameObject.transform.parent.gameObject.GetComponent <GUICollider>();
     }
 }
Exemplo n.º 18
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (flag && !this.selectPanelA.animationMoving)
     {
         Transform transform = this.selectPanelA.transform;
         float     z         = transform.localPosition.z;
         base.OnTouchEnded(touch, pos, flag);
         Vector3 localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, z);
         transform.localPosition = localPosition;
         if (0 < this.totalSeconds)
         {
             float magnitude = (this.beganPostion - pos).magnitude;
             if (40f > magnitude && !this.isTouchEndFromChild && this.pushedAction != null)
             {
                 this.pushedAction(base.IDX);
             }
         }
     }
 }
Exemplo n.º 19
0
    private void SetCommonUI_A_Stage()
    {
        this.goSelectPanelA_StageL = GUIManager.LoadCommonGUI("SelectListPanel/SelectListPanelA_StageL", base.gameObject);
        this.csSelectPanelA_StageL = this.goSelectPanelA_StageL.GetComponent <GUISelectPanelA_StageL>();
        int depth = this.txEVENT_BG.gameObject.GetComponent <UIWidget>().depth - 1;

        DepthController.SetWidgetDepth_Static(this.csSelectPanelA_StageL.transform, depth);
        if (CMD_QuestTOP.AreaData.data.type == "3" || CMD_QuestTOP.AreaData.data.type == "4")
        {
            GameObject gameObject = UnityEngine.Object.Instantiate(Resources.Load("UISelectPanelParam/SelectPanelParamUD_A_StageL_Point")) as GameObject;
            gameObject.transform.parent = base.transform;
            this.csSelectPanelA_StageL.SetSelectPanelParam(gameObject);
        }
        else if (CMD_QuestTOP.AreaData.data.worldAreaId == "3" && this.isScheduleBannerActive)
        {
            GameObject gameObject2 = UnityEngine.Object.Instantiate(Resources.Load("UISelectPanelParam/SelectPanelParamUD_A_StageL_Point")) as GameObject;
            gameObject2.transform.parent = base.transform;
            this.csSelectPanelA_StageL.SetSelectPanelParam(gameObject2);
        }
        else if (CMD_QuestTOP.AreaData.data.type == "6")
        {
            GameObject gameObject3 = UnityEngine.Object.Instantiate(Resources.Load("UISelectPanelParam/SelectPanelParamUD_A_StageL_Detiles")) as GameObject;
            gameObject3.transform.parent = base.transform;
            this.csSelectPanelA_StageL.SetSelectPanelParam(gameObject3);
        }
        Vector3     localPosition = this.goLP_SATGE.transform.localPosition;
        GUICollider component     = this.goSelectPanelA_StageL.GetComponent <GUICollider>();

        component.SetOriginalPos(localPosition);
        this.csSelectPanelA_StageL.selectParts        = this.goLP_SATGE;
        this.csSelectPanelA_StageL.ListWindowViewRect = this.GetRectWindowArea(localPosition);
    }
Exemplo n.º 20
0
 private void Update()
 {
     if (GUIMain.nextGUIScreen != null && !string.IsNullOrEmpty(GUIMain.nextGUIScreen) && GUIManager.ReadyGUI(GUIMain.nextGUIScreen))
     {
         if (GUIMain.gUIScreen != null && !string.IsNullOrEmpty(GUIMain.gUIScreen))
         {
             GUIManager.HideGUI(GUIMain.gUIScreen);
             if (!GUIMain.backMode_)
             {
                 if (!("UIHome" == GUIMain.nextGUIScreen) && !("UI*****" == GUIMain.nextGUIScreen))
                 {
                     if (!("UIRestart" == GUIMain.gUIScreen) && !("UI******" == GUIMain.gUIScreen))
                     {
                         GUIMain.beforeGUIScreen.Push(GUIMain.gUIScreen);
                     }
                 }
             }
             GUIMain.backMode_ = false;
         }
         GUIMain.gUIScreen = GUIMain.nextGUIScreen;
         GUIManager.ShowGUI(GUIMain.nextGUIScreen);
         GUICollider.EnableAllCollider("GUIMain");
         GUIMain.nextGUIScreen = string.Empty;
     }
 }
Exemplo n.º 21
0
 public override void OnTouchEnded(Touch touch, Vector2 pos, bool flag)
 {
     if (GUICollider.IsAllColliderDisable() && !base.AvoidDisableAllCollider)
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     this.isTouching_mi = false;
     if (this.isLongTouched)
     {
         this.isLongTouched = false;
         return;
     }
     if (flag)
     {
         base.OnTouchEnded(touch, pos, flag);
         float magnitude = (this.beganPostion - pos).magnitude;
         if (magnitude < 40f)
         {
             CMD_AlMightySelect cmd_AlMightySelect = (CMD_AlMightySelect)base.GetInstanceCMD();
             cmd_AlMightySelect.SetSelected(this.Data.soulM.soulId);
         }
     }
 }
Exemplo n.º 22
0
 public static void FadeWhiteReqScreen(string screen, Action <int> act = null, float outSec = 0.8f, float inSec = 0.8f, bool isFadeIn = false)
 {
     GUICollider.DisableAllCollider("GUIMain");
     GUIFadeControll.SetLoadInfo(act, string.Empty, screen, string.Empty, null, isFadeIn);
     GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f);
     GUIManager.LoadCommonGUI("Effect/FADE_W", GUIMain.self.gameObject);
 }
    public static void StartQuestTopTutorial(string worldAreaId)
    {
        string questTopTutorialFileName = QuestSecondTutorial.GetQuestTopTutorialFileName(worldAreaId);

        if (string.IsNullOrEmpty(questTopTutorialFileName))
        {
            GUICollider.EnableAllCollider("CMD_QuestTOP");
        }
        else
        {
            TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();
            if (null == tutorialObserver)
            {
                GUICollider.EnableAllCollider("CMD_QuestTOP");
            }
            else
            {
                GUIMain.BarrierON(null);
                TutorialObserver tutorialObserver2 = tutorialObserver;
                string           tutorialName      = questTopTutorialFileName;
                if (QuestSecondTutorial.< > f__mg$cache2 == null)
                {
                    QuestSecondTutorial.< > f__mg$cache2 = new Action(GUIMain.BarrierOFF);
                }
                Action completed = QuestSecondTutorial.< > f__mg$cache2;
                if (QuestSecondTutorial.< > f__mg$cache3 == null)
                {
                    QuestSecondTutorial.< > f__mg$cache3 = new Action(QuestSecondTutorial.InitializedQuestTopTutorial);
                }
                tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache3);
            }
        }
    }
Exemplo n.º 24
0
    public static void FadeBlackLoadScene(string SceneName, float outSec = 0.5f, float inSec = 0.5f, bool destroyMonsterIcon = true, Action <int> actionEnd = null)
    {
        GUIMain.actCallBackBattle = null;
        if (destroyMonsterIcon)
        {
            ClassSingleton <GUIMonsterIconList> .Instance.AllDisable();

            ClassSingleton <GUIMonsterIconList> .Instance.AllDelete();
        }
        GUICollider.DisableAllCollider("GUIMain");
        if (GUIMain.< > f__mg$cache1 == null)
        {
            GUIMain.< > f__mg$cache1 = new Action <int>(GUIMain.ShiftGUI);
        }
        Action <int> action_      = GUIMain.< > f__mg$cache1;
        string       loadGUIName_ = "UIIdle";

        GUIFadeControll.SetLoadInfo(action_, SceneName, loadGUIName_, string.Empty, actionEnd, false);
        GUIFadeControll.SetFadeInfo(outSec, 0f, inSec, 1f);
        BattleStateManager.onAutoServerConnect = true;
        ServerDateTime.isUpdateServerDateTime  = false;
        ClassSingleton <PlayLimit> .Instance.UseTicketNumCont();

        ClassSingleton <PlayLimit> .Instance.UsePlayLimitNumCont();

        GUIManager.LoadCommonGUI("Effect/FADE_B", GUIMain.self.gameObject);
        Resources.UnloadUnusedAssets();
    }
Exemplo n.º 25
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_Succession");
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.PartsTitle.SetTitle(StringMaster.GetString("SuccessionTitle"));
     this.ngTX_DECIDE.text     = StringMaster.GetString("SuccessionTitle");
     this.sortButtonLabel.text = StringMaster.GetString("SystemSortButton");
     this.necessaryLabel.text  = StringMaster.GetString("Succession-02");
     this.baseMonsterSkillTab1.SetLabel(StringMaster.GetString("SkillInheritTitle1"));
     this.baseMonsterSkillTab2.SetLabel(StringMaster.GetString("SkillInheritTitle2"));
     this.materialMonsterSkillTab1.SetLabel(StringMaster.GetString("SkillInheritTitle1"));
     this.materialMonsterSkillTab2.SetLabel(StringMaster.GetString("SkillInheritTitle2"));
     this.baseMonsterSkillTab1.Off();
     this.baseMonsterSkillTab2.Off();
     this.baseMonsterSkillTab2.SetActive(false);
     this.materialMonsterSkillTab1.Off();
     this.materialMonsterSkillTab2.Off();
     this.materialMonsterSkillTab2.SetActive(false);
     this.SetCommonUI();
     this.InitMonsterList(true);
     this.ShowChgInfo();
     this.ShowMATInfo();
     this.UpdateClusterNum();
     base.Show(f, sizeX, sizeY, aT);
     base.SetTutorialAnyTime("anytime_second_tutorial_succession");
     RestrictionInput.EndLoad();
 }
Exemplo n.º 26
0
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.x - pos.x) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll)
     {
         this.scrollSpeed = (pos.x - this.startLoc.x) / 4f;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed * 0.7f;
     this.StopAtEndFunc();
     this.startLoc = pos;
 }
    private void UpdateAnimationTicketIcon()
    {
        if (!this.StartEffect)
        {
            return;
        }
        int num = this.curTicketFrameCT % this.showChipInterval;

        if ((num == 0 || this.isOnTapped) && this.curTicketInitNUM < CMD_TicketGashaResult.UserDungeonTicketList.Length)
        {
            if (this.curTicketInitNUM == 0)
            {
                GUICollider.EnableAllCollider("=================================== CMD_TicketGashaResult::UpdateShowTicketIcons");
            }
            this.ticketEffectList[this.curTicketInitNUM].Play();
            this.curTicketInitNUM++;
            SoundMng.Instance().PlaySE("SEInternal/Farm/se_221", 0f, false, true, null, -1, 1f);
            if (CMD_TicketGashaResult.UserDungeonTicketList.Length == this.curTicketInitNUM)
            {
                this.StartEffect = false;
                this.startButton.gameObject.SetActive(true);
                if (CMD_TicketGashaResult.RewardsData != null)
                {
                    GUICollider.DisableAllCollider("=================================== CMD_TicketGashaResult::ICON");
                    AppCoroutine.Start(this.GashaRewardSet(0.7f), true);
                }
            }
        }
        this.curTicketFrameCT++;
    }
Exemplo n.º 28
0
    private IEnumerator Init(Action <int> f, float sizeX, float sizeY, float aT)
    {
        GUICollider.DisableAllCollider("CMD_TitleSelect");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        base.PartsTitle.SetTitle(StringMaster.GetString("EditUserTitle"));
        this.titleIcon.mainTexture = null;
        this.titleNameLbl.text     = string.Empty;
        this.titleName.text        = string.Empty;
        this.titleDetail.text      = string.Empty;
        this.equipBtnLbl.text      = StringMaster.GetString("EquipUserTitle");
        this.equipBtn.GetComponent <UISprite>().spriteName = "Common02_Btn_Gray";
        this.equipBtnLbl.color = ConstValue.DEACTIVE_BUTTON_LABEL;
        this.equipBtn.GetComponent <BoxCollider>().enabled = false;
        this.titleListOriginalItem.SetActive(true);
        GameWebAPI.RespDataMA_TitleMaster.TitleM[] titles = TitleDataMng.GetAvailableTitleM();
        this.CreateTitleList(this.titleList, titles.Length);
        this.SetTitleDetail(this.titleList, titles);
        this.titleListOriginalItem.SetActive(false);
        base.ShowDLG();
        base.Show(f, sizeX, sizeY, aT);
        RestrictionInput.EndLoad();
        yield return(null);

        yield break;
    }
Exemplo n.º 29
0
 protected override void Awake()
 {
     base.Awake();
     this.firstClearMessage.text = string.Format(StringMaster.GetString("FirstClearBonus"), ConstValue.FIRST_CLEAR_NUM);
     this.moveBehavior           = CommonDialog.MOVE_BEHAVIOUR.XY_SCALE_CLOSE;
     GUICollider.DisableAllCollider("CMD_FirstClear");
 }
 public override void OnTouchMoved(Touch touch, Vector2 pos)
 {
     if (GUICollider.IsAllColliderDisable())
     {
         return;
     }
     if (!base.activeCollider)
     {
         return;
     }
     if (!this.touch_begin)
     {
         return;
     }
     base.OnTouchMoved(touch, pos);
     if (Mathf.Abs(this.startLoc.y - pos.y) > Mathf.Abs(this.scrollSpeed))
     {
     }
     if (this.EnableScroll)
     {
         this.scrollSpeed = this.startLoc.y - pos.y;
     }
     else
     {
         this.scrollSpeed = 0f;
     }
     this.selectLoc -= this.scrollSpeed;
     this.selectLoc  = Mathf.Max(Mathf.Min(this.selectLoc, this.borderMaxLocate), this.borderMinLocate);
     this.startLoc   = pos;
     if (this.parent != null)
     {
         this.parent.OnTouchMoved(touch, pos);
     }
 }