예제 #1
0
    // Token: 0x060002F3 RID: 755 RVA: 0x0000DED4 File Offset: 0x0000C2D4
    public void SetAchiData(int achiId)
    {
        this.achieveId = achiId;
        AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB_forId(this.achieveId);

        this.AchieveUI.GetComponentInChildren <Text>().text = achieveDataFormat.name;
    }
예제 #2
0
    // Token: 0x060002F2 RID: 754 RVA: 0x0000DE74 File Offset: 0x0000C274
    public void GetData()
    {
        this.beforeName = SuperGameMaster.GetFrogName();
        this.InputUI.GetComponent <InputField>().text = this.beforeName;
        this.achieveId = SuperGameMaster.GetAchieveId();
        AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB_forId(this.achieveId);

        this.AchieveUI.GetComponentInChildren <Text>().text = achieveDataFormat.name;
    }
예제 #3
0
 // Token: 0x06000416 RID: 1046 RVA: 0x0001BEA0 File Offset: 0x0001A2A0
 public AchieveDataFormat(AchieveDataFormat original)
 {
     this.name      = original.name;
     this.info      = original.info;
     this.id        = original.id;
     this.flagType  = original.flagType;
     this.flagValue = original.flagValue;
     this.flagSign  = original.flagSign;
 }
예제 #4
0
    // Token: 0x060002F0 RID: 752 RVA: 0x0000DB9C File Offset: 0x0000BF9C
    public void CheckGetAchive()
    {
        this.getAchiIdList = new List <int>();
        int num = SuperGameMaster.sDataBase.count_AchieveDB();

        for (int i = 0; i < num; i++)
        {
            AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB(i);
            int id = achieveDataFormat.id;
            if (!SuperGameMaster.CheckAchieveFlag(id))
            {
                if (achieveDataFormat != null)
                {
                    if (achieveDataFormat.flagType[0] == Flag.Type.DEFAULT)
                    {
                        SuperGameMaster.Set_GetAchieve(id);
                        this.getAchiIdList.Add(id);
                        break;
                    }
                    int num2 = 0;
                    for (int j = 0; j < achieveDataFormat.flagType.Length; j++)
                    {
                        Sign sign = achieveDataFormat.flagSign[j];
                        if (sign != Sign.MORE)
                        {
                            if (sign != Sign.LESS)
                            {
                                if (sign == Sign.EQUAL)
                                {
                                    if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) == achieveDataFormat.flagValue[j])
                                    {
                                        num2++;
                                    }
                                }
                            }
                            else if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) <= achieveDataFormat.flagValue[j])
                            {
                                num2++;
                            }
                        }
                        else if (SuperGameMaster.get_Flag(achieveDataFormat.flagType[j]) >= achieveDataFormat.flagValue[j])
                        {
                            num2++;
                        }
                    }
                    if (num2 == achieveDataFormat.flagType.Length)
                    {
                        this.getAchiIdList.Add(id);
                    }
                }
            }
        }
    }
예제 #5
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);
             });
         }
     }
 }
예제 #6
0
 // Token: 0x060003C2 RID: 962 RVA: 0x000169D4 File Offset: 0x00014DD4
 public void CreateButton()
 {
     for (int i = 0; i < SuperGameMaster.sDataBase.count_AchieveDB(); i++)
     {
         AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB(i);
         GameObject        gameObject        = UnityEngine.Object.Instantiate <GameObject>(this.btnPref);
         gameObject.transform.SetParent(this.contentsList.GetComponent <RectTransform>(), false);
         gameObject.GetComponent <AchieveButton>().ScrollViewUI = base.gameObject;
         if (SuperGameMaster.CheckAchieveFlag(achieveDataFormat.id))
         {
             gameObject.GetComponent <AchieveButton>().SetId(achieveDataFormat.id);
             gameObject.GetComponent <AchieveButton>().CngName(achieveDataFormat.name);
             gameObject.GetComponent <AchieveButton>().CngInfo(achieveDataFormat.info);
         }
         else
         {
             gameObject.GetComponent <AchieveButton>().SetId(achieveDataFormat.id);
             gameObject.GetComponent <AchieveButton>().CngName("????");
             gameObject.GetComponent <AchieveButton>().CngInfo(achieveDataFormat.info);
             gameObject.GetComponent <Button>().interactable = false;
         }
     }
 }