Ejemplo n.º 1
0
        private void select()
        {
            int trg_idx = -1;

            for (int index1 = 0; index1 < 2; ++index1)
            {
                CTrgAoAction ctrgAoAction = this.m_trg[index1];
                float        frame;
                if (ctrgAoAction.GetState(0U)[10] && ctrgAoAction.GetState(0U)[1])
                {
                    frame   = 1f;
                    trg_idx = index1;
                }
                else
                {
                    frame = !ctrgAoAction.GetState(0U)[0] ? 0.0f : 2f;
                }
                for (uint index2 = 0; (long)index2 < (long)AppMain.arrayof((Array)AppMain.CMain.c_btn_action_table[index1]); ++index2)
                {
                    AppMain.AoActSetFrame(this.m_act[(int)AppMain.CMain.c_btn_action_table[index1][(int)index2]].act, frame);
                }
            }
            if (-1 == trg_idx)
            {
                return;
            }
            AppMain.CMain.EAct.Type[] typeArray = AppMain.CMain.c_btn_action_table[trg_idx];
            for (int index = (int)typeArray[0]; (AppMain.CMain.EAct.Type)index < typeArray[2] + 1; ++index)
            {
                this.m_act[index].flag[0] = false;
            }
            AppMain.DmSoundPlaySE("Ok");
            this.m_result[0] = AppMain.CMain.TrgIdxToReturnIdx(trg_idx);
            this.enterEfctStart();
        }
Ejemplo n.º 2
0
        // Token: 0x06002063 RID: 8291 RVA: 0x0013E3B4 File Offset: 0x0013C5B4
        private void select()
        {
            int num = -1;

            for (int i = 0; i < 2; i++)
            {
                CTrgAoAction ctrgAoAction = this.m_trg[i];
                float        frame;
                if (ctrgAoAction.GetState(0U)[10] && ctrgAoAction.GetState(0U)[1])
                {
                    frame = 1f;
                    num   = i;
                }
                else if (ctrgAoAction.GetState(0U)[0])
                {
                    frame = 2f;
                }
                else
                {
                    frame = 0f;
                }
                uint num2 = 0U;
                while ((ulong)num2 < (ulong)((long)AppMain.arrayof(AppMain.CMain.c_btn_action_table[i])))
                {
                    AppMain.CMain.EAct.Type[] array = AppMain.CMain.c_btn_action_table[i];
                    AppMain.AoActSetFrame(this.m_act[(int)array[(int)((UIntPtr)num2)]].act, frame);
                    num2 += 1U;
                }
            }
            if (-1 != num)
            {
                AppMain.CMain.EAct.Type[] array2 = AppMain.CMain.c_btn_action_table[num];
                for (int j = (int)array2[0]; j < (int)(array2[2] + 1); j++)
                {
                    this.m_act[j].flag[0] = false;
                }
                AppMain.DmSoundPlaySE("Ok");
                this.m_result[0] = AppMain.CMain.TrgIdxToReturnIdx(num);
                this.enterEfctStart();
            }
        }
Ejemplo n.º 3
0
        // Token: 0x0600255C RID: 9564 RVA: 0x0014CE70 File Offset: 0x0014B070
        private void really()
        {
            int num = -1;

            for (int i = 0; i < AppMain.CMain_PauseMenu.c_trg_table.Length; i++)
            {
                CTrgAoAction ctrgAoAction = this.m_trg[AppMain.CMain_PauseMenu.c_trg_table[i]];
                float        frame;
                if (ctrgAoAction.GetState(0U)[10] && ctrgAoAction.GetState(0U)[1])
                {
                    frame = 2f;
                    num   = i;
                }
                else if (ctrgAoAction.GetState(0U)[0])
                {
                    frame = 3f;
                }
                else
                {
                    frame = 0f;
                }
                for (int j = 0; j < AppMain.CMain_PauseMenu.c_btn_action_table[i].Length; j++)
                {
                    int[] array = AppMain.CMain_PauseMenu.c_btn_action_table[i];
                    AppMain.AoActSetFrame(this.m_act[array[j]].act, frame);
                }
            }
            if (-1 != num)
            {
                int[] array2 = AppMain.CMain_PauseMenu.c_btn_action_table[num];
                for (int k = array2[0]; k < array2[2] + 1; k++)
                {
                    this.m_act[k].flag[0] = false;
                }
                this.m_really = AppMain.CMain_PauseMenu.TrgIdxToReturnIdx(num);
            }
            else if (this.m_flag[8])
            {
                this.m_really = 4;
            }
            if (0 <= AppMain.GmMainKeyCheckPauseKeyPush())
            {
                this.m_return = 4;
                this.pauseBtnCancelStart();
                return;
            }
            if (AppMain.isBackKeyPressed())
            {
                this.m_return = 4;
                AppMain.setBackKeyRequest(false);
                this.playSe(1);
                this.selectStart();
                return;
            }
            if (6 == this.m_really)
            {
                return;
            }
            if (this.m_return == this.m_really)
            {
                this.playSe(0);
                this.enterEfctStart();
                return;
            }
            this.playSe(1);
            this.selectStart();
        }
Ejemplo n.º 4
0
        private void really()
        {
            int trg_idx = -1;

            for (int index1 = 0; index1 < AppMain.CMain_PauseMenu.c_trg_table.Length; ++index1)
            {
                CTrgAoAction ctrgAoAction = this.m_trg[AppMain.CMain_PauseMenu.c_trg_table[index1]];
                float        frame;
                if (ctrgAoAction.GetState(0U)[10] && ctrgAoAction.GetState(0U)[1])
                {
                    frame   = 2f;
                    trg_idx = index1;
                }
                else
                {
                    frame = !ctrgAoAction.GetState(0U)[0] ? 0.0f : 3f;
                }
                for (int index2 = 0; index2 < AppMain.CMain_PauseMenu.c_btn_action_table[index1].Length; ++index2)
                {
                    AppMain.AoActSetFrame(this.m_act[AppMain.CMain_PauseMenu.c_btn_action_table[index1][index2]].act, frame);
                }
            }
            if (-1 != trg_idx)
            {
                int[] numArray = AppMain.CMain_PauseMenu.c_btn_action_table[trg_idx];
                for (int index = numArray[0]; index < numArray[2] + 1; ++index)
                {
                    this.m_act[index].flag[0] = false;
                }
                this.m_really = AppMain.CMain_PauseMenu.TrgIdxToReturnIdx(trg_idx);
            }
            else if (this.m_flag[8])
            {
                this.m_really = 4;
            }
            if (0 <= AppMain.GmMainKeyCheckPauseKeyPush())
            {
                this.m_return = 4;
                this.pauseBtnCancelStart();
            }
            else if (AppMain.isBackKeyPressed())
            {
                this.m_return = 4;
                AppMain.setBackKeyRequest(false);
                this.playSe(1);
                this.selectStart();
            }
            else
            {
                if (6 == this.m_really)
                {
                    return;
                }
                if (this.m_return == this.m_really)
                {
                    this.playSe(0);
                    this.enterEfctStart();
                }
                else
                {
                    this.playSe(1);
                    this.selectStart();
                }
            }
        }