Esempio n. 1
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);
        });
    }
Esempio n. 2
0
 // Token: 0x060002F8 RID: 760 RVA: 0x0000DFF4 File Offset: 0x0000C3F4
 public void OpenPanel(string text)
 {
     this.tapBlock = true;
     this.timer    = 0f;
     this.ScreenButton.GetComponent <Button>().enabled = false;
     this.PanelText.GetComponent <Text>().text         = text;
     base.gameObject.SetActive(true);
     if (!this.HelpWindow.activeSelf)
     {
         this.HelpWindow.SetActive(true);
         base.GetComponent <Image>().color = new Color(0f, 0f, 0f, 0.3f);
     }
     if (text == string.Empty)
     {
         this.HelpWindow.SetActive(false);
         base.GetComponent <Image>().color = new Color(0f, 0f, 0f, 0f);
     }
     if (text != string.Empty)
     {
         SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
     }
     this.ScreenButton.SetActive(true);
     this.BackFuncFlag = base.GetComponentInParent <UIMaster>().BackFunc_GetStopFlag();
     if (SuperGameMaster.GetNowScenes() != Scenes.InitScene && !this.BackFuncFlag)
     {
         base.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
     }
 }
Esempio n. 3
0
    // Token: 0x0600030C RID: 780 RVA: 0x0000E6B4 File Offset: 0x0000CAB4
    public void PushCloseButton()
    {
        base.gameObject.SetActive(false);
        base.GetComponentInParent <UIMaster>().freezeObject(false);
        base.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
        base.GetComponentInParent <UIMaster>().stopUpDate_UI(false);
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes != Scenes.MainOut)
        {
            if (nowScenes != Scenes.MainIn)
            {
                if (nowScenes == Scenes.Shop)
                {
                    base.GetComponentInParent <UIMaster_Shop>().BackFunc();
                }
            }
            else
            {
                base.GetComponentInParent <UIMaster_MainIn>().BackFunc();
            }
        }
        else
        {
            base.GetComponentInParent <UIMaster_MainOut>().BackFunc();
        }
    }
Esempio n. 4
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();
             });
         }
     }
 }
Esempio n. 5
0
 // Token: 0x060002F9 RID: 761 RVA: 0x0000E128 File Offset: 0x0000C528
 public void ClosePanel()
 {
     base.gameObject.SetActive(false);
     if (SuperGameMaster.GetNowScenes() != Scenes.InitScene && !this.BackFuncFlag)
     {
         base.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
     }
 }
Esempio n. 6
0
 // Token: 0x06000752 RID: 1874 RVA: 0x00030E08 File Offset: 0x0002F208
 public void StartTutorial(GameObject _Master)
 {
     if (this.TutorialComplete())
     {
         this.SetScene = Scenes.NONE;
         return;
     }
     this.SetScene = SuperGameMaster.GetNowScenes();
     this.Master   = _Master;
     this.UI       = this.Master.GetComponent <GameMaster>().UIMaster;
     this.Obj      = this.Master.GetComponent <GameMaster>().ObjectMaster;
     this.CallTutorial();
 }
Esempio n. 7
0
 // Token: 0x060002C3 RID: 707 RVA: 0x0000C1A4 File Offset: 0x0000A5A4
 public void ClosePanel()
 {
     base.gameObject.SetActive(false);
     if (this.PlusContents != null)
     {
         UnityEngine.Object.Destroy(this.PlusContents);
         this.PlusContents = null;
         this.ConfilmPanelText.SetActive(true);
     }
     if (SuperGameMaster.GetNowScenes() != Scenes.InitScene && !this.BackFuncFlag)
     {
         base.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
     }
 }
Esempio n. 8
0
 // Token: 0x060002C0 RID: 704 RVA: 0x0000BF94 File Offset: 0x0000A394
 public void OpenPanel_YesNo(string text)
 {
     this.ConfilmPanelText.GetComponent <Text>().text = text;
     this.EnterPanel.SetActive(false);
     this.YesNoPanel.SetActive(true);
     this.ScreenButton.SetActive(false);
     this.SpacePanel.SetActive(true);
     base.gameObject.SetActive(true);
     SuperGameMaster.audioMgr.StopSE();
     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Popup"]);
     this.BackFuncFlag = base.GetComponentInParent <UIMaster>().BackFunc_GetStopFlag();
     if (SuperGameMaster.GetNowScenes() != Scenes.InitScene && !this.BackFuncFlag)
     {
         base.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
     }
 }
Esempio n. 9
0
    // Token: 0x0600033D RID: 829 RVA: 0x00011B60 File Offset: 0x0000FF60
    public void SetNoReload()
    {
        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);
        }
    }
Esempio n. 10
0
    // Token: 0x060002AF RID: 687 RVA: 0x0000B880 File Offset: 0x00009C80
    public void PushTwitter()
    {
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes != Scenes.MainOut)
        {
            if (nowScenes == Scenes.MainIn)
            {
                base.GetComponentInParent <UIMaster_MainIn>().GameMaster.GetComponent <GameMaster_MainIn>().SetReloadTimer(2f);
            }
        }
        else
        {
            base.GetComponentInParent <UIMaster_MainOut>().GameMaster.GetComponent <GameMaster_MainOut>().SetReloadTimer(2f);
        }
    }
Esempio n. 11
0
    // Token: 0x06000371 RID: 881 RVA: 0x00013C34 File Offset: 0x00012034
    public void PushSocial()
    {
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes != Scenes.MainOut)
        {
            if (nowScenes == Scenes.MainIn)
            {
                this.Controller.GetComponentInParent <UIMaster_MainIn>().GameMaster.GetComponent <GameMaster_MainIn>().SetReloadTimer(2f);
            }
        }
        else
        {
            this.Controller.GetComponentInParent <UIMaster_MainOut>().GameMaster.GetComponent <GameMaster_MainOut>().SetReloadTimer(2f);
        }
        base.StartCoroutine(base.GetComponent <SocialSender>().SendSocial("#旅かえる", string.Empty, this.tex, this.Controller.GetComponentInParent <UIMaster>()));
    }
Esempio n. 12
0
    // Token: 0x060002A6 RID: 678 RVA: 0x0000A940 File Offset: 0x00008D40
    public void PushClose()
    {
        base.GetComponentInParent <UIMaster>().freezeObject(false);
        base.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
        this.CloseCamera();
        SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes != Scenes.MainOut)
        {
            if (nowScenes == Scenes.MainIn)
            {
                base.GetComponentInParent <UIMaster_MainIn>().BackFunc();
            }
        }
        else
        {
            base.GetComponentInParent <UIMaster_MainOut>().BackFunc();
        }
    }
Esempio n. 13
0
    // Token: 0x06000303 RID: 771 RVA: 0x0000E4A8 File Offset: 0x0000C8A8
    public void IAP_Failed(Product product, PurchaseFailureReason reason)
    {
        SuperGameMaster.IAPCallBackCntReset();
        base.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes == Scenes.MainOut)
        {
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SaveAndStopReload(false);
        }
        this.confilm.OpenPanel("購入できませんでした");
        this.confilm.ResetOnClick_Screen();
        this.confilm.SetOnClick_Screen(delegate
        {
            this.confilm.ClosePanel();
        });
        this.confilm.SetOnClick_Screen(delegate
        {
            base.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
        });
    }
Esempio n. 14
0
    // Token: 0x06000355 RID: 853 RVA: 0x00012360 File Offset: 0x00010760
    public void Init()
    {
        this.AlbumFlag = (SuperGameMaster.GetNowScenes() == Scenes.Album);
        Sprite sprite = this.SocialImg[0];

        foreach (Image image in this.refSocialImg)
        {
            image.sprite = sprite;
        }
        this.unsetCursor();
        if (this.AlbumFlag)
        {
            this.itemMax = 60;
        }
        else
        {
            this.itemMax = 30;
        }
        this.deleteMode  = false;
        this.deleteIndex = new List <int>();
        this.GetSnapList();
        this.CreateItemButton();
        if (this.snapList_sprite.Count > this.pageItemMax && !this.NextBtn.activeSelf)
        {
            this.NextBtn.SetActive(true);
        }
        this.S_FlickChecker = base.GetComponent <FlickCheaker>();
        this.deleteBtn.GetComponent <Button>().interactable = false;
        this.chgEvtId = SuperGameMaster.picture.GetChangePictureData();
        if (this.chgEvtId != -1)
        {
            this.chgPicDateTime = SuperGameMaster.picture.GetChangePictureData_DateTime();
            this.deleteMode     = true;
            this.deleteBtn.GetComponent <Button>().interactable = true;
        }
    }
Esempio n. 15
0
    // Token: 0x0600030D RID: 781 RVA: 0x0000E774 File Offset: 0x0000CB74
    public void IAP_ButtonPush()
    {
        this.BtnBlocker.SetActive(true);
        SuperGameMaster.IAPCallBackCntReset();
        switch (SuperGameMaster.GetNowScenes())
        {
        case Scenes.MainOut:
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SaveAndStopReload(true);
            break;

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

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

        default:
            SuperGameMaster.SaveData();
            break;
        }
        base.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
    }
Esempio n. 16
0
    // Token: 0x06000302 RID: 770 RVA: 0x0000E340 File Offset: 0x0000C740
    public void IAP_Complete(Product product)
    {
        SuperGameMaster.IAPCallBackCntReset();
        base.GetComponentInParent <UIMaster>().BackFunc_Stop(true);
        int    num = 0;
        string id  = product.definition.id;

        if (id != null)
        {
            if (!(id == "CLOVER_ADD_1"))
            {
                if (!(id == "CLOVER_ADD_2"))
                {
                    if (!(id == "CLOVER_ADD_3"))
                    {
                        if (id == "CLOVER_ADD_4")
                        {
                            num = 2800;
                        }
                    }
                    else
                    {
                        num = 1800;
                    }
                }
                else
                {
                    num = 1000;
                }
            }
            else
            {
                num = 400;
            }
        }
        SuperGameMaster.getCloverPoint(num);
        Scenes nowScenes = SuperGameMaster.GetNowScenes();

        if (nowScenes == Scenes.MainOut)
        {
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SaveAndStopReload(true);
        }
        this.confilm.OpenPanel("みつ葉" + num + "\nを購入しました");
        this.confilm.ResetOnClick_Screen();
        this.confilm.SetOnClick_Screen(delegate
        {
            this.confilm.ClosePanel();
        });
        this.confilm.SetOnClick_Screen(delegate
        {
            base.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
        });
        Scenes nowScenes2 = SuperGameMaster.GetNowScenes();

        if (nowScenes2 != Scenes.MainOut)
        {
            SuperGameMaster.SaveData();
        }
        else
        {
            this.confilm.SetOnClick_Screen(delegate
            {
                base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SetStopReload(false);
            });
        }
    }
Esempio n. 17
0
 // Token: 0x060003D9 RID: 985 RVA: 0x0001828C File Offset: 0x0001668C
 public void CloseScrollView(int selectItemId)
 {
     this.DeleteButtonAll();
     base.gameObject.SetActive(false);
     this.DeleteButtonAll();
     ItemScrollView.Mode mode = this.listMode;
     if (mode != ItemScrollView.Mode.View)
     {
         if (mode != ItemScrollView.Mode.Present)
         {
             if (mode == ItemScrollView.Mode.Equip)
             {
                 base.gameObject.SetActive(false);
                 if (selectItemId != -1)
                 {
                     if (selectItemId != -2)
                     {
                         this.CallObj.GetComponent <BagPanel>().CloseBagScrollView1Result(this.setItemType, this.setId, selectItemId);
                         SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]);
                     }
                     else
                     {
                         this.CallObj.GetComponent <BagPanel>().CloseBagScrollView1Result(Item.Type._ElmMax, this.setId, selectItemId);
                         SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
                     }
                 }
                 else
                 {
                     this.CallObj.GetComponent <BagPanel>().CloseBagScrollView1Result(Item.Type.NONE, this.setId, selectItemId);
                     SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
                 }
                 this.CallObj.GetComponentInParent <BagDeskPanels>().BackFunc();
             }
         }
         else
         {
             base.gameObject.SetActive(false);
             base.GetComponentInParent <UIMaster>().freezeObject(false);
             base.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
             this.CallObj.GetComponent <CharaTable>().selectedItem(this.setId, selectItemId);
             base.gameObject.SetActive(false);
             this.DeleteButtonAll();
             if (selectItemId == -1)
             {
                 SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
             }
             base.GetComponentInParent <UIMaster_MainOut>().BackFunc();
         }
     }
     else
     {
         base.gameObject.SetActive(false);
         base.GetComponentInParent <UIMaster>().freezeObject(false);
         base.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f));
         base.gameObject.SetActive(false);
         this.DeleteButtonAll();
         SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]);
         Scenes nowScenes = SuperGameMaster.GetNowScenes();
         if (nowScenes != Scenes.MainOut)
         {
             if (nowScenes == Scenes.MainIn)
             {
                 base.GetComponentInParent <UIMaster_MainIn>().BackFunc();
             }
         }
         else
         {
             base.GetComponentInParent <UIMaster_MainOut>().BackFunc();
         }
     }
 }
Esempio n. 18
0
    // Token: 0x0600030E RID: 782 RVA: 0x0000E818 File Offset: 0x0000CC18
    public void IAP_Complete(Product product)
    {
        SuperGameMaster.IAPCallBackCntReset();
        int    num = 0;
        string id  = product.definition.id;

        if (id != null)
        {
            if (!(id == "CLOVER_ADD_1"))
            {
                if (!(id == "CLOVER_ADD_2"))
                {
                    if (!(id == "CLOVER_ADD_3"))
                    {
                        if (id == "CLOVER_ADD_4")
                        {
                            num = 2800;
                        }
                    }
                    else
                    {
                        num = 1800;
                    }
                }
                else
                {
                    num = 1000;
                }
            }
            else
            {
                num = 400;
            }
        }
        SuperGameMaster.getCloverPoint(num);
        switch (SuperGameMaster.GetNowScenes())
        {
        case Scenes.MainOut:
            base.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SaveAndStopReload(true);
            break;

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

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

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

        confilm.OpenPanel("みつ葉" + num + "\nを購入しました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.GetComponentInParent <UIMaster>().BackFunc_Stop(false);
        });
        switch (SuperGameMaster.GetNowScenes())
        {
        case Scenes.MainOut:
            confilm.SetOnClick_Screen(delegate
            {
                this.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainOut>().SetStopReload(false);
            });
            break;

        case Scenes.MainIn:
            confilm.SetOnClick_Screen(delegate
            {
                this.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_MainIn>().SetStopReload(false);
            });
            break;

        case Scenes.Shop:
            confilm.SetOnClick_Screen(delegate
            {
                this.GetComponentInParent <UIMaster>().GameMaster.GetComponent <GameMaster_Shop>().SetStopReload(false);
            });
            break;

        default:
            SuperGameMaster.SaveData();
            break;
        }
    }