예제 #1
0
 // Token: 0x0600037B RID: 891 RVA: 0x00014170 File Offset: 0x00012570
 public void PushRollButton()
 {
     if (SuperGameMaster.TicketStock() < 5)
     {
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel("ふくびき券が足りません");
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         return;
     }
     SuperGameMaster.GetTicket(-5);
     SuperGameMaster.set_FlagAdd(Flag.Type.ROLL_NUM, 1);
     base.GetComponentInParent <UIMaster>().freezeObject(true);
     base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
     this.LotteryCheck();
     this.ResultButton.GetComponent <RollResultButton>().CngImage((int)this.result);
     this.ResultButton.GetComponent <RollResultButton>().CngResultText(Define.PrizeBallName[this.result] + "がでました");
     this.LotteryWheelPanel.GetComponent <LotteryWheelPanel>().OpenPanel(this.result);
     SuperGameMaster.SetTmpRaffleResult((int)this.result);
     SuperGameMaster.SaveData();
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Raffle"]);
     this.BackFunc();
 }
예제 #2
0
    // Token: 0x0600054B RID: 1355 RVA: 0x00022BB4 File Offset: 0x00020FB4
    public void ExitConfilm()
    {
        this.freezeObject(true);
        this.blockUI(true, new Color(0f, 0f, 0f, 0.3f));
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("アプリケーションを終了しますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            SuperGameMaster.SaveData();
        });
        confilm.SetOnClick_Yes(delegate
        {
            Application.Quit();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_No(delegate
        {
            this.freezeObject(false);
        });
        confilm.SetOnClick_No(delegate
        {
            this.blockUI(false, new Color(0f, 0f, 0f, 0f));
        });
    }
예제 #3
0
    // Token: 0x060003F3 RID: 1011 RVA: 0x000197EC File Offset: 0x00017BEC
    public void EnterConsole()
    {
        this.CloseConsole();
        int num = -1;

        if (this.ConsoleText.text.Length == 8)
        {
            num = SuperGameMaster.checkHoten(this.ConsoleText.text);
        }
        if (num <= -1)
        {
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("入力に失敗しました\n(エラー:" + -num + ")");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
        }
        else if (num != 2147483647)
        {
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("三つ葉を" + num + "追加しました");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
        }
    }
예제 #4
0
    // Token: 0x060003BA RID: 954 RVA: 0x00016728 File Offset: 0x00014B28
    public bool OpenPanel(string _url, WebViewPanel.Back _backMode)
    {
        this.backMode = _backMode;
        if (Application.internetReachability == NetworkReachability.NotReachable)
        {
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("インターネットに接続できませんでした\n電波状況や端末オプションを\nご確認のうえ、再度お試しください");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
            return(false);
        }
        base.gameObject.SetActive(true);
        this.webViewObject.Init(null, false, string.Empty, null, null, false);
        this.webViewObject.LoadURL(_url);
        this.webViewObject.SetVisibility(true);
        float num;

        if (Screen.height / 3 > Screen.width / 2)
        {
            num = (float)Screen.width / 640f;
        }
        else
        {
            num = (float)Screen.height / 960f;
        }
        this.webViewObject.SetMargins(0, (int)(num * 70f), 0, 0);
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
        this.BackFunc();
        return(true);
    }
예제 #5
0
    // Token: 0x0600029A RID: 666 RVA: 0x0000A190 File Offset: 0x00008590
    public void PushReset()
    {
        base.GetComponentInParent <FlickCheaker>().stopFlick(true);
        ConfilmPanel confilm = base.GetComponentInParent <BagDeskPanels>().ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("つくえにだしているものを\n全てかたづけますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.GetComponentInParent <FlickCheaker>().stopFlick(false);
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.DeskReset();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_No(delegate
        {
            this.GetComponentInParent <FlickCheaker>().stopFlick(false);
        });
    }
예제 #6
0
 // Token: 0x0600030B RID: 779 RVA: 0x0000E5C0 File Offset: 0x0000C9C0
 public void OpenIAPPanel()
 {
     base.GetComponentInParent <UIMaster>().freezeObject(true);
     base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
     if (Application.internetReachability == NetworkReachability.NotReachable)
     {
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel("インターネットに接続できませんでした\n電波状況や端末オプションを\nご確認のうえ、再度お試しください");
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.GetComponentInParent <UIMaster>().freezeObject(false);
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
         });
         return;
     }
     base.gameObject.SetActive(true);
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
     this.BackFunc();
 }
예제 #7
0
    // Token: 0x0600030F RID: 783 RVA: 0x0000EA34 File Offset: 0x0000CE34
    public void IAP_Failed(Product product, PurchaseFailureReason reason)
    {
        SuperGameMaster.IAPCallBackCntReset();
        this.BtnBlocker.SetActive(false);
        switch (SuperGameMaster.GetNowScenes())
        {
        case Scenes.MainOut:
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SaveAndStopReload(false);
            break;

        case Scenes.MainIn:
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainIn>().SaveAndStopReload(false);
            break;

        case Scenes.Shop:
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_Shop>().SaveAndStopReload(false);
            break;

        default:
            SuperGameMaster.SaveData();
            break;
        }
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel("購入できませんでした");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
        });
    }
예제 #8
0
    // Token: 0x0600038F RID: 911 RVA: 0x0001559C File Offset: 0x0001399C
    public void CheckExit_PictureResult()
    {
        base.GetComponent <FlickCheaker>().stopFlick(true);
        ConfilmPanel confilm = base.GetComponent <ResultPanel>().ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("写真の受け取りを終了しますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.GetComponent <FlickCheaker>().stopFlick(false);
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.CloseView();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_No(delegate
        {
            this.GetComponent <FlickCheaker>().stopFlick(false);
        });
    }
예제 #9
0
    // Token: 0x0600035F RID: 863 RVA: 0x00013104 File Offset: 0x00011504
    public void ChangePicture()
    {
        base.GetComponentInParent <UIMaster>().freezeObject(true);
        base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
        Texture2D tmpPicture = SuperGameMaster.GetTmpPicture(this.chgEvtId, TextureFormat.RGB24);

        SuperGameMaster.SavePictureList(true, tmpPicture, this.chgPicDateTime);
        SuperGameMaster.evtMgr.delete_ActEvt_forId(this.chgEvtId);
        SuperGameMaster.DeleteTmpPicture(this.chgEvtId);
        SuperGameMaster.picture.ChangePictureData(-1, new DateTime(1970, 1, 1));
        base.GetComponentInParent <UIMaster>().OnSave();
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel("写真を入れ替えしました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.GetComponentInParent <UIMaster_Album>().BackMain();
        });
        this.snapList_tex.Add(tmpPicture);
        this.snapList_sprite.Add(Sprite.Create(tmpPicture, new Rect(0f, 0f, (float)tmpPicture.width, (float)tmpPicture.height), Vector2.zero));
    }
예제 #10
0
    // Token: 0x060003FF RID: 1023 RVA: 0x0001A1F4 File Offset: 0x000185F4
    public void SelectPrize(int prizeId)
    {
        this.selectPrizeId = prizeId;
        PrizeDataFormat prizeDataFormat = SuperGameMaster.sDataBase.get_PrizeDB_forId(this.selectPrizeId);
        ItemDataFormat  itemDataFormat  = SuperGameMaster.sDataBase.get_ItemDB_forId(prizeDataFormat.itemId);

        if (prizeDataFormat.itemId != -1 && itemDataFormat == null)
        {
            return;
        }
        if (prizeDataFormat.itemId == -1)
        {
            itemDataFormat      = new ItemDataFormat();
            itemDataFormat.name = "ふくびき券";
        }
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo(itemDataFormat.name + "\nを受け取りますか");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.GetPrize();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
    }
예제 #11
0
 // Token: 0x06000341 RID: 833 RVA: 0x00011D08 File Offset: 0x00010108
 public void PushNoticeBtn(bool cngFlag)
 {
     this.CngNoticeFlag(cngFlag);
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cursor"]);
     if (cngFlag)
     {
         Scenes nowScenes = SuperGameMaster.GetNowScenes();
         if (nowScenes != Scenes.MainOut)
         {
             if (nowScenes == Scenes.MainIn)
             {
                 base.transform.parent.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainIn>().SetReloadTimer(1f);
             }
         }
         else
         {
             base.transform.parent.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SetReloadTimer(1f);
         }
         SuperGameMaster.iOS_AgreeNotifications();
         if (!SuperGameMaster.Android_CheckDoze())
         {
             ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
             confilm.OpenPanel("端末で省電力モードを設定していると\n通知が遅れて届く場合があります\n通知をすぐに受け取るには\n電池の最適化を無効にする\n必要があります");
             confilm.ResetOnClick_Screen();
             confilm.SetOnClick_Screen(delegate
             {
                 confilm.ClosePanel();
             });
         }
     }
 }
예제 #12
0
    // Token: 0x060002E8 RID: 744 RVA: 0x0000D8BC File Offset: 0x0000BCBC
    public void PushEnter()
    {
        string       text    = this.InputUI.GetComponent <InputField>().text;
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        if (text == string.Empty)
        {
            confilm.OpenPanel("名前を入力してください");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
            confilm.SetOnClick_Screen(delegate
            {
                this.InputUI.GetComponent <InputField>().ActivateInputField();
            });
            confilm.SetOnClick_Screen(delegate
            {
                confilm.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
            });
        }
        else
        {
            this.CloseNamePanel();
        }
    }
예제 #13
0
 // Token: 0x0600029D RID: 669 RVA: 0x0000A338 File Offset: 0x00008738
 public void PushComplete()
 {
     if (!SuperGameMaster.GetStandby())
     {
         if (this.tmpBagList[0] != -1)
         {
             if (!SuperGameMaster.tutorial.ClockOk())
             {
                 if (!base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().BagCompleteCursor.GetComponentInChildren <Image>().enabled)
                 {
                     HelpPanel help = base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>();
                     help.OpenPanel("おべんとうに「えびづるのスコーン」\nおまもりに「よつ葉」\nを選んで<color=#61a8c7><b>かんりょう</b></color>ボタンを\n押してください");
                     help.ResetOnClick_Screen();
                     help.SetOnClick_Screen(delegate
                     {
                         help.ClosePanel();
                     });
                     return;
                 }
                 base.GetComponentInParent <BagDeskPanels>().CloseCheck();
             }
             SuperGameMaster.SetStandby(true);
             SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
         }
         else
         {
             if (!SuperGameMaster.tutorial.ClockOk())
             {
                 HelpPanel help = base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>();
                 help.OpenPanel("おべんとうに「えびづるのスコーン」\nおまもりに「よつ葉」\nを選んで<color=#61a8c7><b>かんりょう</b></color>ボタンを\n押してください");
                 help.ResetOnClick_Screen();
                 help.SetOnClick_Screen(delegate
                 {
                     help.ClosePanel();
                 });
                 return;
             }
             base.GetComponentInParent <FlickCheaker>().stopFlick(true);
             ConfilmPanel confilm = base.GetComponentInParent <BagDeskPanels>().ConfilmUI.GetComponent <ConfilmPanel>();
             confilm.OpenPanel("おべんとうを支度してください");
             confilm.ResetOnClick_Screen();
             confilm.SetOnClick_Screen(delegate
             {
                 confilm.ClosePanel();
             });
             confilm.SetOnClick_Screen(delegate
             {
                 this.GetComponentInParent <FlickCheaker>().stopFlick(false);
             });
         }
     }
     else
     {
         SuperGameMaster.SetStandby(false);
         SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
     }
     this.ChangeBtnEnable(SuperGameMaster.GetStandby());
 }
예제 #14
0
 // Token: 0x060002A5 RID: 677 RVA: 0x0000A768 File Offset: 0x00008B68
 public void OpenCamera()
 {
     if (SuperGameMaster.GetPictureListCount(false) >= 30)
     {
         base.GetComponentInParent <UIMaster>().freezeObject(true);
         base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel_YesNo("写真がいっぱいです。\nさつえいに移動しますか?");
         confilm.ResetOnClick_Yes();
         confilm.SetOnClick_Yes(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_Yes(delegate
         {
             this.GetComponentInParent <UIMaster>().freezeAll(true);
         });
         confilm.SetOnClick_Yes(delegate
         {
             this.GetComponentInParent <UIMaster>().changeScene(Scenes.Snap);
         });
         confilm.ResetOnClick_No();
         confilm.SetOnClick_No(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_No(delegate
         {
             this.GetComponentInParent <UIMaster>().freezeObject(false);
         });
         confilm.SetOnClick_No(delegate
         {
             this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
         });
         return;
     }
     base.gameObject.SetActive(true);
     base.GetComponentInParent <UIMaster>().freezeObject(true);
     base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0f));
     this.SnapPanel.SetActive(true);
     this.CameraResultPanel.SetActive(false);
     this.ScreenRect  = base.transform.GetComponent <RectTransform>().rect;
     this.cameraPhase = CameraPanel.Phase.Camera;
     this.cameraMode  = CameraPanel.Mode.NONE;
     this.modeTimer   = 0;
     this.lastTap     = 7;
     this.backDist    = 0f;
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
     Debug.Log("[CameraPanel] カメラ起動");
     this.BackFunc();
 }
예제 #15
0
    // Token: 0x06000261 RID: 609 RVA: 0x00007C98 File Offset: 0x00006098
    public void getHitChara(int charaId)
    {
        this.focusCharaId = charaId;
        int index = this.RefChara.FindIndex((GameObject rec) => rec.GetComponent <CharaObject>().charaId.Equals(this.focusCharaId));
        EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt_forId(this.RefActEvtId[index]);

        if (eventTimerFormat.evtValue[1] == 1)
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(true);
            this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0.3f, 0.3f, 0.3f, 0f));
            ConfilmPanel        confilm             = this.ConfilmUI.GetComponent <ConfilmPanel>();
            int                 num                 = SuperGameMaster.sDataBase.get_CharaDB_rowItemId_index(eventTimerFormat.evtValue[2]);
            CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(charaId);
            float               num2                = 100f + (float)characterDataFormat.taste[num];
            if (num2 >= 180f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\n喜んでいます");
            }
            else if (num2 >= 160f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\n嬉しそうです");
            }
            else if (num2 >= 120f)
            {
                confilm.OpenPanel(characterDataFormat.name + "は\nお腹がいっぱいです");
            }
            else
            {
                confilm.OpenPanel(characterDataFormat.name + "は\nもう食べられません");
            }
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
            confilm.SetOnClick_Screen(delegate
            {
                this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(false);
            });
            confilm.SetOnClick_Screen(delegate
            {
                this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
            });
            this.ResetFocus();
            return;
        }
        this.ItemView.GetComponent <ItemScrollView>().OpenScrollView(base.gameObject, ItemScrollView.Mode.Present, this.focusCharaId);
    }
예제 #16
0
 // Token: 0x060002F1 RID: 753 RVA: 0x0000DCF8 File Offset: 0x0000C0F8
 public void GetAchiveDisp()
 {
     if (this.getAchiIdList.Count > 0)
     {
         int num = this.getAchiIdList[0];
         AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB_forId(num);
         if (achieveDataFormat == null)
         {
             return;
         }
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel("称号「" + achieveDataFormat.name + "」\nを獲得しました");
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.GetAchiveDisp();
         });
         SuperGameMaster.Set_GetAchieve(num);
         this.getAchiIdList.RemoveAt(0);
         base.GetComponentInParent <UIMaster>().OnSave();
         if (num == 0)
         {
             HelpPanel help = base.GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>();
             help.OpenPanel(string.Concat(new string[]
             {
                 "一定の条件を満たすと\n",
                 SuperGameMaster.GetFrogName(),
                 "の<color=#61a8c7><b>称号</b></color>を獲得します\n称号はかっこいいものから\nちょっと変わったものまで\nさまざまなものがあります\n称号は",
                 SuperGameMaster.GetFrogName(),
                 "をタップして\nセットすることができます"
             }));
             help.ResetOnClick_Screen();
             help.SetOnClick_Screen(delegate
             {
                 help.ClosePanel();
             });
             help.gameObject.SetActive(false);
             confilm.SetOnClick_Screen(delegate
             {
                 help.gameObject.SetActive(true);
             });
         }
     }
 }
예제 #17
0
 // Token: 0x06000571 RID: 1393 RVA: 0x00023428 File Offset: 0x00021828
 public override void UI_Start()
 {
     this.BackFunc();
     this.RaffleUI.GetComponent <RaffelPanel>().Init();
     if (SuperGameMaster.GetTmpRaffleResult() != -1)
     {
         this.freezeObject(true);
         this.blockUI(true, new Color(0f, 0f, 0f, 0f));
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel("前回のふくびきの景品を\n受け取っていません");
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.RaffleUI.GetComponent <RaffelPanel>().SetTmpResult();
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.RaffleUI.GetComponent <RaffelPanel>().CloseResultButton();
         });
     }
     if (!SuperGameMaster.GetFirstFlag(Flag.FIRST_RAFFLE_ROLL))
     {
         SuperGameMaster.SetFirstFlag(Flag.FIRST_RAFFLE_ROLL);
         this.freezeObject(true);
         this.blockUI(true, new Color(0f, 0f, 0f, 0f));
         HelpPanel help = this.HelpUI.GetComponent <HelpPanel>();
         help.OpenPanel("ふくびき券5枚で\n1回抽選に挑戦ができます\n景品はここでしか手に入らない\n旅に役立つものものばかり\nぜひ挑戦してみてください");
         help.ResetOnClick_Screen();
         help.SetOnClick_Screen(delegate
         {
             help.ClosePanel();
         });
         help.SetOnClick_Screen(delegate
         {
             this.freezeObject(false);
         });
         help.SetOnClick_Screen(delegate
         {
             this.blockUI(false, new Color(0f, 0f, 0f, 0f));
         });
         return;
     }
 }
예제 #18
0
    // Token: 0x06000288 RID: 648 RVA: 0x00009A7C File Offset: 0x00007E7C
    public void OpenPanels_bubble()
    {
        base.GetComponentInParent <UIMaster>().freezeObject(true);
        base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0f));
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel("おべんとうを支度してください");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.OpenPanels();
        });
    }
예제 #19
0
 // Token: 0x0600036A RID: 874 RVA: 0x00013624 File Offset: 0x00011A24
 public void PushSocial()
 {
     if (this.selectIndex == -1)
     {
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel("共有する画像を選択してください");
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         return;
     }
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
     base.GetComponentInParent <UIMaster_Album>().GameMaster.GetComponent <GameMaster_Album>().SetReloadTimer(2f);
     base.StartCoroutine(base.GetComponent <SocialSender>().SendSocial("#旅かえる", string.Empty, this.snapList_tex[this.selectIndex], base.GetComponentInParent <UIMaster>()));
 }
예제 #20
0
    // Token: 0x06000391 RID: 913 RVA: 0x0001575C File Offset: 0x00013B5C
    public void CheckExit_TravelResult()
    {
        ConfilmPanel confilm = base.GetComponent <ResultPanel>().ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("アイテムを全て受け取りますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.CloseView();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
    }
예제 #21
0
    // Token: 0x06000344 RID: 836 RVA: 0x00011E54 File Offset: 0x00010254
    public void PushSupportBtn()
    {
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("サポートIDを再生成しますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.SetSupportID(true);
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
    }
예제 #22
0
    // Token: 0x0600026D RID: 621 RVA: 0x00008AA8 File Offset: 0x00006EA8
    public void CloverGet()
    {
        Debug.LogWarning("取得判定");
        int num = this.element;

        if (num != 0)
        {
            if (num == 1)
            {
                SuperGameMaster.GetItem(1000, this.point);
                if (!base.GetComponentInParent <CloverFarm>().ConfilmUI.activeSelf&& SuperGameMaster.tutorial.ClockOk() && !base.GetComponentInParent <CloverFarm>().ConfilmUI.GetComponentInParent <UIMaster_MainOut>().Check_blockUI())
                {
                    UIMaster_MainOut UI_Cmp = base.GetComponentInParent <CloverFarm>().ConfilmUI.GetComponentInParent <UIMaster_MainOut>();
                    UI_Cmp.freezeObject(true);
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f));
                    ConfilmPanel confilm = base.GetComponentInParent <CloverFarm>().ConfilmUI.GetComponent <ConfilmPanel>();
                    confilm.OpenPanel(string.Empty);
                    confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(base.GetComponentInParent <CloverFarm>().AddConfirm_pref));
                    confilm.ResetOnClick_Screen();
                    confilm.SetOnClick_Screen(delegate
                    {
                        confilm.ClosePanel();
                    });
                    confilm.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.freezeObject(false);
                    });
                    confilm.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.blockUI(false);
                    });
                }
            }
        }
        else
        {
            SuperGameMaster.getCloverPoint(this.point);
        }
        this.point = 0;
        base.GetComponentInParent <CloverFarm>().Recycle(this.index);
    }
예제 #23
0
    // Token: 0x0600055A RID: 1370 RVA: 0x00022F58 File Offset: 0x00021358
    public void openWarningWindow(string errorMessage)
    {
        this.freezeObject(true);
        this.blockUI(false, new Color(0.3f, 0.3f, 0.3f, 0f));
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel(errorMessage);
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.freezeObject(false);
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.blockUI(false, new Color(0f, 0f, 0f, 0f));
        });
    }
예제 #24
0
 // Token: 0x0600037F RID: 895 RVA: 0x00014364 File Offset: 0x00012764
 public void CloseResultButton()
 {
     this.ResultButton.SetActive(false);
     if (this.result == Rank.NONE)
     {
         base.GetComponentInParent <UIMaster>().freezeObject(false);
         base.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
         return;
     }
     if (this.result != Rank.White)
     {
         this.PrizeScrollViewUI.GetComponent <PrizeScrollView>().OpenScrollView(this.result);
     }
     else
     {
         PrizeDataFormat prizeDataFormat = SuperGameMaster.sDataBase.get_PrizeDB_forId(Define.PRIZE_WHITE_ID);
         SuperGameMaster.GetTicket(prizeDataFormat.stock);
         SuperGameMaster.SetTmpRaffleResult(-1);
         base.GetComponentInParent <UIMaster>().OnSave();
         ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
         confilm.OpenPanel(string.Empty);
         confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(this.AddConfirm_pref));
         confilm.ResetOnClick_Screen();
         confilm.SetOnClick_Screen(delegate
         {
             confilm.ClosePanel();
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.GetComponentInParent <UIMaster>().freezeObject(false);
         });
         confilm.SetOnClick_Screen(delegate
         {
             this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
         });
         base.GetComponentInParent <UIMaster_Raffle>().BackFunc();
     }
 }
예제 #25
0
    // Token: 0x060003EE RID: 1006 RVA: 0x00019614 File Offset: 0x00017A14
    public void PushAcceptAll()
    {
        this.DeleteMailButtonAll();
        for (int i = SuperGameMaster.saveData.MailList.Count - 1; i >= 0; i--)
        {
            if (!SuperGameMaster.saveData.MailList[i].opened)
            {
                this.GetItem(i);
            }
            SuperGameMaster.saveData.MailList.RemoveAt(i);
        }
        this.CreateMailButton();
        base.GetComponentInParent <UIMaster>().OnSave();
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel("すべてのゆうびんを受け取りました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        this.CheckNewMail();
    }
예제 #26
0
    // Token: 0x06000376 RID: 886 RVA: 0x00013F3C File Offset: 0x0001233C
    public void PushDeleteButton()
    {
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel_YesNo("選択中の写真を削除しますか?");
        confilm.ResetOnClick_Yes();
        confilm.SetOnClick_Yes(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.GetComponentInParent <UIMaster>().freezeObject(false);
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.PicturePanelUI.GetComponent <FlickCheaker>().FlickInit();
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.PicturePanelUI.SimpleDeleteItem(this.PicturePanelUI.selectIndex);
        });
        confilm.SetOnClick_Yes(delegate
        {
            this.PushCloseButton();
        });
        confilm.ResetOnClick_No();
        confilm.SetOnClick_No(delegate
        {
            confilm.ClosePanel();
        });
    }
예제 #27
0
    // Token: 0x06000754 RID: 1876 RVA: 0x00031A3C File Offset: 0x0002FE3C
    public void UpdateTutorial()
    {
        if (this.TutorialComplete())
        {
            return;
        }
        if (this.SetScene == Scenes.NONE)
        {
            return;
        }
        Scenes setScene = this.SetScene;

        if (setScene != Scenes.MainOut)
        {
            if (setScene != Scenes.MainIn)
            {
                if (setScene == Scenes.Shop)
                {
                    UIMaster_Shop UI_Cmp = this.UI.GetComponent <UIMaster_Shop>();
                    switch (this.tutorialStep)
                    {
                    case Step.d1_SH_BuyItem:
                    {
                        int selectShopIndex = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex();
                        if (selectShopIndex != -1 && !UI_Cmp.HelpUI.activeSelf && selectShopIndex != 0)
                        {
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero);
                            UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(true);
                            UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f));
                            HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                            help.OpenPanel("はじめにお手頃な\n「えびづるのスコーン」を\n買ってみましょう");
                            help.ResetOnClick_Screen();
                            help.SetOnClick_Screen(delegate
                                {
                                    help.ClosePanel();
                                });
                            help.SetOnClick_Screen(delegate
                                {
                                    UI_Cmp.blockUI(false);
                                });
                            help.SetOnClick_Screen(delegate
                                {
                                    UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(false);
                                });
                        }
                        if (!UI_Cmp.BackFunc_GetStopFlag())
                        {
                            UI_Cmp.BackFunc_Stop(true);
                        }
                        if (SuperGameMaster.FindItemStock(0) >= 1)
                        {
                            this.StepTutorial(true);
                        }
                        break;
                    }

                    case Step.d2_SH_GoHome:
                    {
                        int selectShopIndex2 = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex();
                        if (selectShopIndex2 != -1 && !UI_Cmp.HelpUI.activeSelf)
                        {
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex();
                            UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero);
                        }
                        break;
                    }
                    }
                }
            }
            else
            {
                UIMaster_MainIn     component  = this.UI.GetComponent <UIMaster_MainIn>();
                ObjectMaster_MainIn component2 = this.Obj.GetComponent <ObjectMaster_MainIn>();
                if (component2.Frog.activeSelf)
                {
                    component2.Frog.SetActive(false);
                }
                if (component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.activeSelf)
                {
                    component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.SetActive(false);
                }
                Step step = this.tutorialStep;
                if (step != Step.e0_MI_OpenBag)
                {
                    if (step != Step.e1_MI_ReStart)
                    {
                        if (step == Step.b0_MI_GoOut)
                        {
                            this.seTime += Time.deltaTime;
                            if (this.seTime > 2f && this.seTime - Time.deltaTime < 2f)
                            {
                                HelpPanel component3 = component.HelpUI.GetComponent <HelpPanel>();
                                if (!component3.HelpWindow.activeSelf)
                                {
                                    component3.ClosePanel();
                                    component3.ActionStock_Next();
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (component2.Frog.activeSelf)
                    {
                        component2.Frog.SetActive(false);
                    }
                    if (component.BagDeskUI.activeSelf)
                    {
                        component.BagDeskUI.GetComponent <FlickCheaker>().stopFlick(true);
                        if (!component.BagDeskUI.GetComponent <BagDeskPanels>().BagPanelUI.GetComponent <BagPanel>().ItemView.activeSelf)
                        {
                            if (!SuperGameMaster.GetStandby())
                            {
                                List <int> tmpListAll = component.BagDeskUI.GetComponent <BagDeskPanels>().Get_tmpListAll();
                                if (tmpListAll[0] == 0 && tmpListAll[1] == 1000)
                                {
                                    component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = true;
                                }
                                else
                                {
                                    component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                                }
                            }
                            else
                            {
                                component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                            }
                        }
                        else
                        {
                            component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                        }
                    }
                    else if (!component.BagMarkUI.activeSelf && !component.HelpUI.activeSelf)
                    {
                        component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false;
                        List <int> bagList = SuperGameMaster.GetBagList();
                        if (bagList[0] == 0 && bagList[1] == 1000 && SuperGameMaster.GetStandby())
                        {
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return);
                            SuperGameMaster.travel.GoTravel(536870911, 1);
                            int index = SuperGameMaster.evtMgr.search_TimerEvtIndex_forType(TimerEvent.Type.BackHome);
                            EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_TimerEvt(index);
                            List <int>       list             = new List <int>(eventTimerFormat.evtValue);
                            if (list.Count >= 6 && list[4] >= 10000)
                            {
                                list[4] = 3009;
                            }
                            SuperGameMaster.evtMgr.set_TimerEvt_forId(eventTimerFormat.id, list);
                            SuperGameMaster.evtMgr.SetTime_TimerEvt(TimerEvent.Type.GoTravel, 0, 536870911);
                            SuperGameMaster.SetStandby(true);
                            SuperGameMaster.SetLastTravelTime(536870911);
                            SuperGameMaster.SetStandbyWait(0);
                            component.BagCompleteCursor.SetActive(false);
                            this.StepTutorial(true);
                        }
                        else
                        {
                            SuperGameMaster.saveData.lastTravelTime = SuperGameMaster.saveData.restTime;
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                            SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return);
                            component.blockUI(false);
                            component.TutorialUBlock();
                            component.BagMarkUI.SetActive(true);
                        }
                    }
                }
            }
        }
        else
        {
            UIMaster_MainOut     UI_Cmp     = this.UI.GetComponent <UIMaster_MainOut>();
            ObjectMaster_MainOut component4 = this.Obj.GetComponent <ObjectMaster_MainOut>();
            Step step2 = this.tutorialStep;
            switch (step2 + 1)
            {
            case Step.a0_MO_FrogTap:
                this.seTime += Time.deltaTime;
                if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]);
                }
                if (Input.GetKeyDown(KeyCode.Escape) && !UI_Cmp.ConfilmUI.activeSelf)
                {
                    if (!UI_Cmp.Title_StartUI.activeSelf)
                    {
                        if (UI_Cmp.WebViewUI.activeSelf)
                        {
                            UI_Cmp.WebViewUI.GetComponent <WebViewPanel>().ClosePanel();
                        }
                        else
                        {
                            UI_Cmp.Title_StartUI.SetActive(true);
                            UI_Cmp.Title_PolicyUI.SetActive(false);
                        }
                        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
                    }
                    else
                    {
                        ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                        confilm.OpenPanel_YesNo("アプリケーションを終了しますか?");
                        confilm.ResetOnClick_Yes();
                        confilm.SetOnClick_Yes(delegate
                        {
                            confilm.ClosePanel();
                        });
                        confilm.SetOnClick_Yes(delegate
                        {
                            SuperGameMaster.SaveData();
                        });
                        confilm.SetOnClick_Yes(delegate
                        {
                            Application.Quit();
                        });
                        confilm.ResetOnClick_No();
                        confilm.SetOnClick_No(delegate
                        {
                            confilm.ClosePanel();
                        });
                    }
                }
                break;

            case Step.a1_MO_FrogName:
                this.seTime += Time.deltaTime;
                if (this.seTime > 0f && this.seTime - Time.deltaTime < 0f)
                {
                    this.seTime = 0f;
                }
                this.seTime2 += Time.deltaTime;
                if (this.seTime2 > 4f)
                {
                    component4.Call_FlickMove(new Vector2(Mathf.Clamp((1.92f - Camera.main.transform.localPosition.x) / 60f, 1E-05f, 0.1f), 0f));
                }
                if (this.seTime2 > 7f)
                {
                    if (Input.GetMouseButtonDown(0))
                    {
                        Vector2 point = Camera.main.ScreenToWorldPoint(Input.mousePosition);
                        if (component4.Frog.GetComponent <Collider2D>().OverlapPoint(point))
                        {
                            this.StepTutorial(false);
                            UI_Cmp.FrogCursorUI.SetActive(false);
                        }
                    }
                    else if (this.seTime2 > 9f)
                    {
                        this.StepTutorial(false);
                        UI_Cmp.FrogCursorUI.SetActive(false);
                    }
                }
                if (this.seTime2 >= 2f && this.seTime2 - Time.deltaTime < 2f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Grassy"]);
                }
                if (this.seTime2 % 3f < (this.seTime2 - Time.deltaTime) % 3f && this.seTime2 > 7f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]);
                }
                if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]);
                }
                break;

            case Step.a2_MO_GoHome:
                if (this.seTime != 0f)
                {
                    this.seTime += Time.deltaTime;
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, this.seTime));
                    if (this.seTime > 1f)
                    {
                        UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f));
                        this.seTime = 0f;
                        UI_Cmp.FrogNameUI.GetComponent <FrogNamePanel>().OpenNamePanel();
                        component4.Frog.SetActive(false);
                    }
                }
                break;

            case Step.b0_MI_GoOut:
                this.seTime += Time.deltaTime;
                if (this.seTime >= 0.5f && this.seTime - Time.deltaTime < 0.5f)
                {
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]);
                }
                if (this.seTime <= 1f)
                {
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f - this.seTime));
                }
                if (this.seTime > 1f && this.seTime - Time.deltaTime < 1f)
                {
                    UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f));
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel(string.Empty);
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("おうちのなかに入っていきました\nなかをのぞいてみましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.blockUI(false);
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.TutorialUBlock();
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveCursorUI.SetActive(true);
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            this.StepTutorial(true);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().enabled = true;
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            SuperGameMaster.audioMgr.StopSE();
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Knock"]);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate
                        {
                            this.seTime = 0f;
                        });
                    });
                }
                if (this.seTime > 3f && this.seTime - Time.deltaTime < 3f)
                {
                    HelpPanel component5 = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    if (!component5.HelpWindow.activeSelf)
                    {
                        component5.ClosePanel();
                        component5.ActionStock_Next();
                    }
                }
                break;

            case Step.c0_MO_GetStandby:
                if (this.seTime == 0f)
                {
                    UI_Cmp.setFadeOut(99999f);
                    UI_Cmp.FadeUI.GetComponent <Image>().color = new Color(0f, 0f, 0f, 0f);
                }
                this.seTime += Time.deltaTime;
                if (this.seTime >= 1f && this.seTime - Time.deltaTime < 1f)
                {
                    UI_Cmp.setFadeOut(0.25f);
                    SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Move"]);
                }
                break;

            case Step.c1_MO_GetClover:
                if (!UI_Cmp.HelpUI.activeSelf)
                {
                    if (Input.GetMouseButtonUp(0))
                    {
                        component4.Call_FlickInit();
                    }
                    this.Obj.GetComponent <FlickCheaker>().FlickUpdate();
                    component4.Call_FlickMove();
                }
                if (Camera.main.transform.position.x <= -1.9f && UI_Cmp.CloverCursorUI.activeSelf)
                {
                    UI_Cmp.CloverCursorUI.SetActive(false);
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel("スライド操作でみつ葉のクローバーを\n収穫しましょう");
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        this.StepTutorial(false);
                    });
                }
                break;

            case Step.c2_MO_GoShop:
                if (Input.GetMouseButton(0))
                {
                    if (Camera.main.transform.position.x > 0f)
                    {
                        UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = true;
                    }
                    else
                    {
                        UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = false;
                    }
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf)
                {
                    component4.ScrollAndCloverCheck();
                    component4.CloverFarm.GetComponent <CloverFarm>().CloverProc();
                    if (SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) + SuperGameMaster.CloverPointStock() >= SuperGameMaster.GetCloverList().Count)
                    {
                        if (SuperGameMaster.FindItemStock(1000) > 10)
                        {
                            SuperGameMaster.getCloverPoint(10);
                        }
                        this.StepTutorial(true);
                    }
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.CloverPointStock() >= 1)
                {
                    UI_Cmp.CloverMarkUI.SetActive(true);
                    HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    help.OpenPanel("収穫したみつ葉のクローバーは\nこちらで確認することができます");
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.CloverMarkUI.SetActive(false);
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("畑のクローバーを全て収穫しましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_CLOVER);
                }
                if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) >= 1)
                {
                    ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                    confilm.OpenPanel(string.Empty);
                    confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(component4.CloverFarm.GetComponent <CloverFarm>().AddConfirm_pref));
                    confilm.ResetOnClick_Screen();
                    confilm.SetOnClick_Screen(delegate
                    {
                        confilm.ClosePanel();
                    });
                    confilm.SetOnClick_Screen(delegate
                    {
                        UI_Cmp.BackFunc_Stop(true);
                    });
                    SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_FOURLEAF);
                }
                break;

            case Step._StepMax:
                if (!UI_Cmp.ResultUI.activeSelf && !UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.tutorial.TutorialComplete())
                {
                    HelpPanel    help    = UI_Cmp.HelpUI.GetComponent <HelpPanel>();
                    ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>();
                    help.OpenPanel(string.Concat(new string[]
                    {
                        string.Empty,
                        SuperGameMaster.GetFrogName(),
                        "は旅立ちました\n",
                        SuperGameMaster.GetFrogName(),
                        "が帰ってくるには\nしばらく時間がかかります\n今回のしたくなら数時間ほどで\n帰ってきそうです"
                    }));
                    help.ResetOnClick_Screen();
                    help.SetOnClick_Screen(delegate
                    {
                        help.ClosePanel();
                    });
                    help.SetOnClick_Screen(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("※ヘルプで通知をONに設定しておくと\n" + SuperGameMaster.GetFrogName() + "が帰ってきたときに\n通知が入ります");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New(SuperGameMaster.GetFrogName() + "は旅のしたくがなくても\n自由にでかけていきますが\n今回のように旅のしたくを\n手伝ってあげていると\n旅の様子をうつした<color=#61a8c7><b>写真</b></color>や\n手に入れた各地の<color=#61a8c7><b>おみやげ</b></color>を\nプレゼントしてくれます");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New(SuperGameMaster.GetFrogName() + "が出かけている間に\n次の旅に備えて\nみつ葉のクローバーを収穫して\nもちものを用意しておきましょう");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        help.ActionStock_Next();
                    });
                    help.ActionStock_New("チュートリアルはここまでです\n" + SuperGameMaster.GetFrogName() + "との\n旅をお楽しみください");
                    help.ActionStock_Add(delegate
                    {
                        help.ClosePanel();
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.OpenPanel(string.Empty);
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(UI_Cmp.AddConfirm_pref));
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.ResetOnClick_Screen();
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            confilm.ClosePanel();
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.blockUI(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.freezeObject(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            UI_Cmp.BackFunc_Stop(false);
                        });
                    });
                    help.ActionStock_Add(delegate
                    {
                        confilm.SetOnClick_Screen(delegate
                        {
                            this.FinishTutorial();
                        });
                    });
                    SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift);
                }
                break;
            }
        }
    }
예제 #28
0
    // Token: 0x06000401 RID: 1025 RVA: 0x0001A344 File Offset: 0x00018744
    public void CreateButton(Rank createRank)
    {
        RectTransform component       = this.contentsList.GetComponent <RectTransform>();
        float         spacing         = component.GetComponent <VerticalLayoutGroup>().spacing;
        float         preferredHeight = this.btnPref.GetComponent <LayoutElement>().preferredHeight;
        bool          flag            = true;

        for (int i = 0; i < SuperGameMaster.sDataBase.count_PrizeDB(); i++)
        {
            PrizeDataFormat prizeDataFormat = SuperGameMaster.sDataBase.get_PrizeDB(i);
            if (createRank == Rank.NONE || prizeDataFormat.rank == createRank)
            {
                ItemDataFormat itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(prizeDataFormat.itemId);
                if (prizeDataFormat.itemId == -1 || itemDataFormat != null)
                {
                    GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.btnPref);
                    gameObject.transform.SetParent(component, false);
                    gameObject.GetComponent <PrizeButton>().setPrizeId(prizeDataFormat.id, prizeDataFormat.rank);
                    gameObject.GetComponent <PrizeButton>().CngStockNum(prizeDataFormat.stock);
                    if (prizeDataFormat.itemId != -1)
                    {
                        gameObject.GetComponent <PrizeButton>().CngPrizeName(itemDataFormat.name);
                        gameObject.GetComponent <PrizeButton>().CngImage(itemDataFormat.img);
                        int num = SuperGameMaster.FindItemStock(prizeDataFormat.itemId);
                        gameObject.GetComponent <PrizeButton>().CngHaveItemStock(num);
                        if (num >= 99)
                        {
                            gameObject.GetComponent <Button>().interactable = false;
                        }
                    }
                    else
                    {
                        gameObject.GetComponent <PrizeButton>().CngPrizeName("ふくびき券");
                        int num2 = SuperGameMaster.TicketStock();
                        gameObject.GetComponent <PrizeButton>().CngHaveItemStock(num2);
                        if (num2 >= 999)
                        {
                            gameObject.GetComponent <Button>().interactable = false;
                        }
                    }
                    if (gameObject.GetComponent <Button>().interactable)
                    {
                        flag = false;
                    }
                    gameObject.GetComponent <PrizeButton>().PrizeScrollViewUI = base.gameObject;
                }
            }
        }
        if (flag)
        {
            int num3 = Define.PrizeClover[createRank];
            SuperGameMaster.getCloverPoint(num3);
            base.GetComponentInParent <UIMaster>().OnSave();
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("みつ葉を" + num3 + "枚\n受け取りました");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                this.CloseScrollView();
            });
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
        }
    }
예제 #29
0
    // Token: 0x060003EC RID: 1004 RVA: 0x000195D0 File Offset: 0x000179D0
    public IEnumerator ShowInterStitial(int _mailId, EvtId mailEvtId, int mailIndex)
    {
        if (!SuperGameMaster.admobMgr.ShowInterstitial_OK() && !SuperGameMaster.admobMgr.nowLoadInterstitial)
        {
            SuperGameMaster.admobMgr.RequestInterstitial();
            Debug.Log("[admobManager] インタースティシャルを再読み込みします");
        }
        base.GetComponentInParent <UIMaster>().freezeUI(true, new Color(0f, 0f, 0f, 0.3f));
        float timer;

        for (timer = 0f; timer < 3f; timer += Time.deltaTime)
        {
            if (!SuperGameMaster.admobMgr.nowLoadInterstitial)
            {
                break;
            }
            yield return(null);
        }
        if (!SuperGameMaster.admobMgr.ShowInterstitial_OK())
        {
            ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel("インターネットに接続できませんでした\n電波状況や端末オプションを\nご確認のうえ、再度お試しください");
            confilm.ResetOnClick_Screen();
            confilm.SetOnClick_Screen(delegate
            {
                confilm.ClosePanel();
            });
        }
        else
        {
            CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(SuperGameMaster.saveData.MailList[mailIndex].senderCharaId);
            ConfilmPanel        confilm             = this.ConfilmUI.GetComponent <ConfilmPanel>();
            confilm.OpenPanel_YesNo(characterDataFormat.name + "が \n持ってきたチラシ(広告)を\n見ますか?");
            confilm.ResetOnClick_Yes();
            confilm.SetOnClick_Yes(delegate
            {
                confilm.ClosePanel();
            });
            confilm.SetOnClick_Yes(delegate
            {
                SuperGameMaster.saveData.MailList.RemoveAt(mailIndex);
            });
            confilm.SetOnClick_Yes(delegate
            {
                SuperGameMaster.GetTicket(1);
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.OpenPanel(string.Empty);
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(this.$this.AddConfirm_pref));
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.ResetOnClick_Screen();
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.SetOnClick_Screen(delegate
                {
                    confilm.ClosePanel();
                });
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.SetOnClick_Screen(delegate
                {
                    this.$this.DeleteMailButton(_mailId);
                });
            });
            confilm.SetOnClick_Yes(delegate
            {
                confilm.SetOnClick_Screen(delegate
                {
                    SuperGameMaster.admobMgr.ShowInterstitial();
                });
            });
            confilm.ResetOnClick_No();
            confilm.SetOnClick_No(delegate
            {
                confilm.ClosePanel();
            });
            confilm.SetOnClick_No(delegate
            {
                SuperGameMaster.saveData.MailList.RemoveAt(mailIndex);
            });
            confilm.SetOnClick_No(delegate
            {
                this.$this.DeleteMailButton(_mailId);
            });
        }
        base.GetComponentInParent <UIMaster>().freezeUI(false, new Color(0f, 0f, 0f, 0f));
        Debug.Log(string.Concat(new object[]
        {
            "[MailScrollView] 広告処理終了:",
            SuperGameMaster.admobMgr.nowLoadInterstitial,
            " / timer = ",
            timer
        }));
        yield break;
    }
예제 #30
0
    // Token: 0x06000262 RID: 610 RVA: 0x00007E94 File Offset: 0x00006294
    public void selectedItem(int charaId, int itemId)
    {
        if (itemId == -1)
        {
            this.ResetFocus();
            return;
        }
        int index = this.RefChara.FindIndex((GameObject rec) => rec.GetComponent <CharaObject>().charaId.Equals(charaId));
        EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt_forId(this.RefActEvtId[index]);
        ItemDataFormat   itemDataFormat   = new ItemDataFormat();

        itemDataFormat = SuperGameMaster.sDataBase.get_ItemDB_forId(itemId);
        bool flag = false;

        for (int i = 0; i < itemDataFormat.effectType.Length; i++)
        {
            if (itemDataFormat.effectElm[i] == EffectElm.FL_RARE)
            {
                flag = true;
            }
        }
        int num  = UnityEngine.Random.Range(0, 100);
        int num2 = 0;

        Define.Gift gift = Define.Gift.NONE;
        for (int j = 0; j < 3; j++)
        {
            if (flag)
            {
                num2 += Define.FRIEND_GIFTPER_RARE[(Define.Gift)j];
            }
            else
            {
                num2 += Define.FRIEND_GIFTPER_NORMAL[(Define.Gift)j];
            }
            if (num < num2)
            {
                gift = (Define.Gift)j;
                break;
            }
        }
        CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(charaId);
        int num3 = Define.FRIEND_GIFTFIX[gift];

        if (gift != Define.Gift.Clover)
        {
            if (gift != Define.Gift.FourClover)
            {
                if (gift == Define.Gift.Ticket)
                {
                    if (flag)
                    {
                        num3 += UnityEngine.Random.Range(1, 4);
                    }
                }
            }
        }
        else
        {
            int   num4 = SuperGameMaster.sDataBase.get_CharaDB_rowItemId_index(itemId);
            float num5 = (100f + (float)characterDataFormat.taste[num4]) / 100f;
            float num6 = (float)(eventTimerFormat.activeTime / 1800);
            int   num7 = new List <int>
            {
                eventTimerFormat.evtValue[2],
                eventTimerFormat.evtValue[3],
                eventTimerFormat.evtValue[4]
            }.FindIndex((int rec) => rec.Equals(itemId));
            float num8 = 1f;
            if (num7 != -1)
            {
                num8 = Define.FRIEND_ITEM_DEBUFF[num7];
            }
            num3 += (int)((float)characterDataFormat.cloverPow * num5 * num6 * num8 / 15f);
            Debug.Log(string.Concat(new object[]
            {
                "みつば数算出:[",
                num3,
                "] pow = ",
                characterDataFormat.cloverPow,
                " / taste = ",
                num5,
                " / count = ",
                num6,
                " / buf = ",
                num8
            }));
            if (flag)
            {
                num3 += 20;
            }
        }
        Debug.Log(string.Concat(new object[]
        {
            "[CharaTable] お返しの抽選を行ないました: charaId = ",
            charaId,
            " / itemId = ",
            itemId,
            "(",
            flag,
            ") >> ",
            gift.ToString(),
            "(",
            num3,
            ")"
        }));
        List <int> list = new List <int>();

        list.Add(eventTimerFormat.evtValue[0]);
        list.Add(1);
        list.Add(itemId);
        list.Add(eventTimerFormat.evtValue[2]);
        list.Add(eventTimerFormat.evtValue[3]);
        list.Add(eventTimerFormat.evtValue[5]);
        SuperGameMaster.evtMgr.set_ActEvt_forId(eventTimerFormat.id, list);
        EventTimerFormat eventTimerFormat2 = new EventTimerFormat();

        eventTimerFormat2.id          = -1;
        eventTimerFormat2.timeSpanSec = eventTimerFormat.timeSpanSec;
        eventTimerFormat2.activeTime  = -1;
        eventTimerFormat2.addTime     = new DateTime(1970, 1, 1);
        eventTimerFormat2.evtType     = TimerEvent.Type.Gift;
        eventTimerFormat2.evtId       = charaId;
        eventTimerFormat2.evtValue    = new List <int>();
        eventTimerFormat2.evtValue.Add((int)gift);
        eventTimerFormat2.evtValue.Add(num3);
        eventTimerFormat2.trigger = true;
        SuperGameMaster.evtMgr.TimerAdd(eventTimerFormat2);
        this.ResetFocus();
        SuperGameMaster.UseItem(itemId, 1);
        this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(true);
        this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(true, new Color(0.3f, 0.3f, 0.3f, 0f));
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel(characterDataFormat.name + "に" + itemDataFormat.name + "\nをふるまいました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().freezeObject(false);
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.ConfilmUI.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
        });
    }