void OnClickStoryView()
    {
        MasterDataStoryChara storycharaData = new MasterDataStoryChara();

        storycharaData.img_tiling   = (int)(m_TilingArray[m_Index] * 1000);
        storycharaData.img_offset_x = (int)(m_OffsetXArray[m_Index] * 1000);
        storycharaData.img_offset_y = (int)(m_OffsetYArray[m_Index] * 1000);

        List <MasterDataStory> storyList = new List <MasterDataStory>();
        MasterDataStory        s1        = new MasterDataStory();

        s1.show_character_01       = m_CurrentStoryCharaMaster.fix_id;
        s1.show_character_02       = m_CurrentStoryCharaMaster.fix_id;
        s1.show_character_03       = m_CurrentStoryCharaMaster.fix_id;
        s1.show_character_04       = m_CurrentStoryCharaMaster.fix_id;
        s1.show_character_01_slide = MasterDataDefineLabel.BoolType.ENABLE;
        s1.show_character_02_slide = MasterDataDefineLabel.BoolType.ENABLE;
        s1.show_character_03_slide = MasterDataDefineLabel.BoolType.ENABLE;
        s1.show_character_04_slide = MasterDataDefineLabel.BoolType.ENABLE;
        s1.text = string.Format("Tiling:{0} \nOffsetX:{1} \nOffsetY:{2}", m_TilingArray[m_Index].ToString("F3")
                                , m_OffsetXArray[m_Index].ToString("F3")
                                , m_OffsetYArray[m_Index].ToString("F3"));
        storyList.Add(s1);

        StoryView story = StoryView.Create();

        story.SetDebugStoryData(storyList.ToArray(), storycharaData);
        story.Show(() =>
        {
        });
    }
Example #2
0
    public void OnClick()
    {
        // カットインイベントの表示
        StoryView cutin = StoryView.Create();

        cutin.SetScenario(m_StoryID);
        cutin.Show(() => {
            Debug.Log("StoryView Completed");
        });
    }
Example #3
0
    private StoryView PlayStory(uint storyId, Action action)
    {
#if UNITY_EDITOR && BUILD_TYPE_DEBUG
        if (TutorialDebugOption.Instance.skipMovie)
        {
            action();
            return(null);
        }
#endif

        StoryView sv = StoryView.Create().DisableAutoDestroy();
        sv.SetScenario(storyId);
        sv.Show(
            () =>
        {
            Debug.Log("StoryView Completed");
            action();
        });

        return(sv);
    }
    /// <summary>
    /// クエスト決定
    /// </summary>
    /// <param name="quest_id"></param>
    private void SelectQuest(uint quest_index)
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK2);

        EpisodeDataContext selectArea  = m_QuestSelect.EpisodeList[m_SelectAreaIndex];
        QuestDataContext   selectQuest = m_QuestSelect.QuestList[(int)quest_index];

        switch (m_QuestSelect.QuestList[(int)quest_index].m_QuestType)
        {
        case QuestDataContext.ExecType.Quest:
            break;

        case QuestDataContext.ExecType.Quest2:
        {
            {
                MainMenuParam.m_QuestStamina = 0;
                MainMenuParam.m_QuestKey     = 0;
                MainMenuParam.m_QuestTicket  = 0;
                switch (selectQuest.master.consume_type)
                {
                case 1:
                    MainMenuParam.m_QuestStamina = selectQuest.m_Point;
                    break;

                case 2:
                    MainMenuParam.m_QuestKey = selectQuest.m_Point;
                    break;

                case 3:
                    MainMenuParam.m_QuestTicket = selectQuest.m_Point;
                    break;
                }

                MainMenuParam.m_QuestAreaAmendList = selectArea.amend.m_AreaMasterDataAmendList;
            }
            if (MainMenuManager.HasInstance)
            {
                MainMenuParam.m_QuestSelectAreaID    = selectArea.master.fix_id;
                MainMenuParam.m_QuestSelectMissionID = selectQuest.master.fix_id;
                MainMenuManager.Instance.AddSwitchRequest(MAINMENU_SEQ.SEQ_QUEST_SELECT_DETAIL, false, false);
            }
        }
        break;

        case QuestDataContext.ExecType.Event:
        {
            //----------------------------------------
            // パラメータリミットチェック
            //----------------------------------------
            //チェック対象:コイン、チケット、フレンドポイント
            PRM_LIMIT_ERROR_TYPE ret = MainMenuUtil.ChkPrmLimit(1, 1, 1, 0, 0);
            //チェック対象:消費アイテム全て
            ret = MainMenuUtil.ChkPrmLimitItem(1, -1, ret);
            //チェック対象:クエストキー全て
            ret = MainMenuUtil.ChkPrmLimitQuestKey(1, -1, ret);

            MainMenuUtil.ShowParamLimitDialog(ret, DialogType.DialogYesNo, (isPositive) =>
                {
                    if (isPositive == true)
                    {
                        //----------------------------------------
                        // ストーリー画面の表示
                        //----------------------------------------
                        StoryView cutin = StoryView.Create();
                        cutin.SetScenario(selectQuest.master.story, selectQuest.master.fix_id);
                        cutin.SetReloadQuestListEvent(() =>
                        {
                            int hasAreaCount   = 0;
                            bool hasSelectArea = false;
                            selectQuest.SetFlag(selectQuest.master.fix_id);
                            updateEpisodeListInfo(ref hasAreaCount, ref hasSelectArea);
                            // 表示しているエリアが期限切れ
                            if (hasSelectArea == false)
                            {
                                openWarningAreaDialog();
                            }
                        });
                        cutin.Show(() =>
                        {
#if BUILD_TYPE_DEBUG
                            Debug.Log("StoryView Completed");
#endif
                        });
                    }
                });
        }
        break;
        }
    }