Exemple #1
0
    public void OnQuery_ON_SUFFIX()
    {
        currentTab        = WORD_TAB.SUFFIX;
        currentPage       = 1;
        currentSelectData = Singleton <DegreeTable> .I.GetData((uint)currentDegrees[3]);

        RefreshUI();
    }
Exemple #2
0
    public void OnQuery_ON_CONJUNCTION()
    {
        currentTab        = WORD_TAB.CONJUNCTION;
        currentPage       = 1;
        currentSelectData = Singleton <DegreeTable> .I.GetData((uint)currentDegrees[2]);

        RefreshUI();
    }
Exemple #3
0
    public void OnQuery_OMAKASE()
    {
        int index = Random.Range(0, userHaveFrameData.Count);

        currentDegrees[0] = (int)userHaveFrameData[index].id;
        index             = Random.Range(0, userHaveNounData.Count);
        currentDegrees[1] = (int)userHaveNounData[index].id;
        index             = Random.Range(0, userHaveConData.Count);
        currentDegrees[2] = (int)userHaveConData[index].id;
        index             = Random.Range(0, userHaveNounData.Count);
        currentDegrees[3] = (int)userHaveNounData[index].id;
        currentTab        = WORD_TAB.PREFIX;
        currentPage       = 1;
        currentSelectData = Singleton <DegreeTable> .I.GetData((uint)currentDegrees[1]);

        RefreshUI();
    }
Exemple #4
0
    public override void Initialize()
    {
        //IL_01e5: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ea: Unknown result type (might be due to invalid IL or missing references)
        //IL_01f6: Unknown result type (might be due to invalid IL or missing references)
        //IL_01fb: Unknown result type (might be due to invalid IL or missing references)
        currentDegrees = MonoBehaviourSingleton <UserInfoManager> .I.selectedDegreeIds.ToList();

        showAll    = true;
        currentTab = WORD_TAB.PREFIX;
        SpoileColor();
        DegreeTable.DegreeData data = Singleton <DegreeTable> .I.GetData((uint)currentDegrees[0]);

        currentSelectData = ((data.type != DEGREE_TYPE.SPECIAL_FRAME) ? Singleton <DegreeTable> .I.GetData((uint)currentDegrees[1]) : null);
        List <DegreeTable.DegreeData> all = Singleton <DegreeTable> .I.GetAll();

        all.Sort((DegreeTable.DegreeData a, DegreeTable.DegreeData b) => (int)(a.id - b.id));
        allNounData = (from x in all
                       where x.type == DEGREE_TYPE.NOUN
                       select x).ToList();
        allConData = (from x in all
                      where x.type == DEGREE_TYPE.CONJUNCTION
                      select x).ToList();
        userHaveNounData = (from x in allNounData
                            where x.IsUnlcok(MonoBehaviourSingleton <UserInfoManager> .I.unlockedDegreeIds)
                            select x).ToList();
        userHaveConData = (from x in allConData
                           where x.IsUnlcok(MonoBehaviourSingleton <UserInfoManager> .I.unlockedDegreeIds)
                           select x).ToList();
        userHaveFrameData = (from x in all
                             where x.type == DEGREE_TYPE.FRAME
                             where x.IsUnlcok(MonoBehaviourSingleton <UserInfoManager> .I.unlockedDegreeIds)
                             select x).ToList();
        currentPage     = 1;
        currentPlate    = GetCtrl(UI.OBJ_DEGREE_PLATE_ROOT).GetComponent <DegreePlate>();
        arrowTrans      = GetCtrl(UI.SPR_TAB_SELECTING);
        arrowLocalPos   = arrowTrans.get_localPosition();
        arrowlocalScale = arrowTrans.get_localScale();
        base.Initialize();
    }
Exemple #5
0
    private void SetTab(WORD_TAB selectTab, DEGREE_TYPE frameType)
    {
        //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
        //IL_010e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0124: Unknown result type (might be due to invalid IL or missing references)
        //IL_0152: Unknown result type (might be due to invalid IL or missing references)
        //IL_0168: Unknown result type (might be due to invalid IL or missing references)
        //IL_0196: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ac: Unknown result type (might be due to invalid IL or missing references)
        //IL_01db: Unknown result type (might be due to invalid IL or missing references)
        //IL_01f1: Unknown result type (might be due to invalid IL or missing references)
        //IL_0220: Unknown result type (might be due to invalid IL or missing references)
        //IL_0236: Unknown result type (might be due to invalid IL or missing references)
        //IL_0277: Unknown result type (might be due to invalid IL or missing references)
        //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
        //IL_0309: Unknown result type (might be due to invalid IL or missing references)
        //IL_03a9: Unknown result type (might be due to invalid IL or missing references)
        if (frameType != DEGREE_TYPE.SPECIAL_FRAME)
        {
            SetButtonSprite((Enum)UI.BTN_PREFIX, TAB_SPRITE_NAME[(selectTab == WORD_TAB.PREFIX) ? 1 : 0], false);
            SetButtonSprite((Enum)UI.BTN_CONJUNCTION, TAB_SPRITE_NAME[(selectTab == WORD_TAB.CONJUNCTION) ? 1 : 0], false);
            SetButtonSprite((Enum)UI.BTN_SUFFIX, TAB_SPRITE_NAME[(selectTab == WORD_TAB.SUFFIX) ? 1 : 0], false);
            SetButtonEnabled((Enum)UI.BTN_PREFIX, selectTab != WORD_TAB.PREFIX);
            SetButtonEnabled((Enum)UI.BTN_CONJUNCTION, selectTab != WORD_TAB.CONJUNCTION);
            SetButtonEnabled((Enum)UI.BTN_SUFFIX, selectTab != WORD_TAB.SUFFIX);
            GetCtrl(UI.LBL_PREFIX).GetComponent <UILabel>().color            = ((selectTab == WORD_TAB.PREFIX) ? selectColors[0] : normalColors[0]);
            GetCtrl(UI.LBL_PREFIX).GetComponent <UILabel>().effectColor      = ((selectTab == WORD_TAB.PREFIX) ? selectColors[1] : normalColors[1]);
            GetCtrl(UI.LBL_CONJUNCTION).GetComponent <UILabel>().color       = ((selectTab == WORD_TAB.CONJUNCTION) ? selectColors[0] : normalColors[0]);
            GetCtrl(UI.LBL_CONJUNCTION).GetComponent <UILabel>().effectColor = ((selectTab == WORD_TAB.CONJUNCTION) ? selectColors[1] : normalColors[1]);
            GetCtrl(UI.LBL_SUFFIX).GetComponent <UILabel>().color            = ((selectTab == WORD_TAB.SUFFIX) ? selectColors[0] : normalColors[0]);
            GetCtrl(UI.LBL_SUFFIX).GetComponent <UILabel>().effectColor      = ((selectTab == WORD_TAB.SUFFIX) ? selectColors[1] : normalColors[1]);
            SetActive((Enum)UI.SPR_PREFIX_SELECT, selectTab == WORD_TAB.PREFIX);
            SetActive((Enum)UI.SPR_CONJUNCTION_SELECT, selectTab == WORD_TAB.CONJUNCTION);
            SetActive((Enum)UI.SPR_SUFFIX_SELECT, selectTab == WORD_TAB.SUFFIX);
            arrowTrans.get_gameObject().SetActive(true);
            switch (selectTab)
            {
            default:
                arrowTrans.set_parent(GetCtrl(UI.BTN_PREFIX));
                break;

            case WORD_TAB.CONJUNCTION:
                arrowTrans.set_parent(GetCtrl(UI.BTN_CONJUNCTION));
                break;

            case WORD_TAB.SUFFIX:
                arrowTrans.set_parent(GetCtrl(UI.BTN_SUFFIX));
                break;
            }
            arrowTrans.set_localPosition(arrowLocalPos);
            arrowTrans.set_localScale(arrowlocalScale);
        }
        else
        {
            SetSprite((Enum)UI.BTN_PREFIX, TAB_SPRITE_NAME[2]);
            SetSprite((Enum)UI.BTN_CONJUNCTION, TAB_SPRITE_NAME[2]);
            SetSprite((Enum)UI.BTN_SUFFIX, TAB_SPRITE_NAME[2]);
            SetButtonEnabled((Enum)UI.BTN_PREFIX, false);
            SetButtonEnabled((Enum)UI.BTN_CONJUNCTION, false);
            SetButtonEnabled((Enum)UI.BTN_SUFFIX, false);
            SetActive((Enum)UI.SPR_PREFIX_SELECT, false);
            SetActive((Enum)UI.SPR_CONJUNCTION_SELECT, false);
            SetActive((Enum)UI.SPR_SUFFIX_SELECT, false);
            arrowTrans.get_gameObject().SetActive(false);
        }
    }