Ejemplo n.º 1
0
    /// <summary>
    /// ダイアログ ガチャ詳細
    /// </summary>
    public void openInfomationDialog()
    {
        if (TutorialManager.IsExists)
        {
            if (Context.detailText.IsNullOrEmpty())
            {
                return;
            }
        }

        if (Context.gachaMaster.type == MasterDataDefineLabel.GachaType.STEP_UP)
        {
            StepUpScratchDialog newdialog = StepUpScratchDialog.Create();
            newdialog.SetGachaID(Context.gachaMaster.fix_id);
            newdialog.Show();
        }
        else
        {
            Dialog newDialog = Dialog.Create(DialogType.DialogScroll);
            newDialog.SetDialogText(DialogTextType.Title, "詳細");
            newDialog.SetDialogText(DialogTextType.MainText, Context.detailText);
            newDialog.SetDialogObjectEnabled(DialogObjectType.OneButton, true);
            newDialog.SetDialogTextFromTextkey(DialogTextType.OKText, "common_button1");
            newDialog.DisableCancelButton();
            newDialog.Show();
        }

        SoundUtil.PlaySE(SEID.SE_MENU_OK);
    }
Ejemplo n.º 2
0
    public void OnClickButton()
    {
        StepUpScratchDialog dialog = StepUpScratchDialog.Create();

        dialog.SetGachaID(0);
        dialog.Show();
    }