void OpenLineUp(MasterDataStepUpGachaManage stepupgachamanage, uint assign_id)
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK);

        m_Canvas.enabled = false;

        string title = GameTextUtil.GetText("gacha_lineup_title1");

        if (stepupgachamanage.special_assign_id != 0 &&
            stepupgachamanage.special_assign_id == assign_id)
        {
            title = GameTextUtil.GetText("gacha_lineup_title2");
        }

        // タイトルにステップ数追加
        if (stepupgachamanage.step_num == 0)
        {
            // 初回ステップ
            title += GameTextUtil.GetText("gacha_lineup_step1");
        }
        else
        {
            title += string.Format(GameTextUtil.GetText("gacha_lineup_step2"), stepupgachamanage.step_num);
        }

        ScratchLineUpDialog lineupdialog = ScratchLineUpDialog.Create();

        lineupdialog.SetCamera(SceneObjReferMainMenu.Instance.m_MainMenuGroupCamera.GetComponent <Camera>());
        lineupdialog.setup(m_GachaMaster, stepupgachamanage, assign_id, true, title);
        lineupdialog.m_CloseAction = () =>
        {
            m_Canvas.enabled = true;
        };
    }
Exemple #2
0
    // ダイアログ(特殊) ガチャラインナップ
    private void OnLineUp(Scratch.LineUp _type)
    {
        if (TutorialManager.IsExists)
        {
            MasterDataGacha isMaster = MasterFinder <MasterDataGacha> .Instance.Find((int)Context.lineupMaster[(int)_type]);

            if (isMaster == null)
            {
                return;
            }

            if (isMaster.fix_id != GlobalDefine.TUTORIAL_SCRATCH ||
                isMaster.gacha_group_id == 0)
            {
                return;
            }
        }

        string title = "";

        switch (_type)
        {
        case Scratch.LineUp.A:
            title = GameTextUtil.GetText("gacha_lineup_title1") + GameTextUtil.GetText("gacha_lineup_half1");
            break;

        case Scratch.LineUp.B:
            title = GameTextUtil.GetText("gacha_lineup_title1") + GameTextUtil.GetText("gacha_lineup_half2");
            break;

        case Scratch.LineUp.Normal:
            title = GameTextUtil.GetText("gacha_lineup_title1");
            break;

        case Scratch.LineUp.Rainbow:
            title = GameTextUtil.GetText("gacha_lineup_title2");
            break;

        default:
            break;
        }

        MasterDataStepUpGachaManage stepUpGachaManage = null;
        MasterDataGacha             master            = null;

        if (Context.gachaMaster.type == MasterDataDefineLabel.GachaType.STEP_UP)
        {
            stepUpGachaManage = MasterDataUtil.GetCurrentStepUpGachaManageMaster(Context.gachaMaster.fix_id);
            master            = Context.gachaMaster;
            // タイトルにステップ数追加
            if (stepUpGachaManage.step_num == 0)
            {
                // 初回ステップ
                title += GameTextUtil.GetText("gacha_lineup_step1");
            }
            else
            {
                title += string.Format(GameTextUtil.GetText("gacha_lineup_step2"), stepUpGachaManage.step_num);
            }
        }
        else
        {
            master = MasterFinder <MasterDataGacha> .Instance.Find((int)Context.lineupMaster[(int)_type]);
        }

        if (master == null)
        {
            return;
        }

        ScratchLineUpDialog lineupdialog = ScratchLineUpDialog.Create();

        lineupdialog.SetCamera(SceneObjReferMainMenu.Instance.m_MainMenuGroupCamera.GetComponent <Camera>());
        lineupdialog.setup(master, stepUpGachaManage, Context.lineupMaster[(int)_type], Context.IsUsedTip, title);

        SoundUtil.PlaySE(SEID.SE_MENU_OK);
    }