private void closeDialog() { if (m_Dialog == null) { return; } //-------------------------------------- // 予約アイコンの更新 //-------------------------------------- EventScheduleDialog dialog = m_Dialog.GetComponent <EventScheduleDialog>(); if (dialog != null) { if (dialog.IsFuture) { EventRecordListItemContex item = Records1.Find((x) => x.FixId == dialog.FixId); if (item != null) { item.IsReserveBadge = dialog.IsOnNotif; } } } DestroyObject(m_Dialog); m_Dialog = null; IsViewContents = true; }
// 確認ダイアログボックス表示 private EventScheduleDialog CreateDetailView(EventRecordListItemContex contex) { m_Dialog = Instantiate(DialogInfo) as GameObject; m_Dialog.transform.SetParent(DialogInfoRoot.transform, false); bool future = (m_Category == Category.Furture) ? true : false; EventScheduleDialog eventDialog = m_Dialog.GetComponent <EventScheduleDialog>(); eventDialog.Create(contex, future); IsViewContents = false; return(eventDialog); }
public void PostSceneStart() { AndroidBackKeyManager.Instance.StackPush(gameObject, OnClickedBackButton); // ナビゲーションバー ScheduleTab1 = GameTextUtil.GetText("schedule_tab1"); ScheduleTab2 = GameTextUtil.GetText("schedule_tab2"); EmptyLabel = GameTextUtil.GetText("common_not_list"); IsViewContents = true; //--------------------------------------------- // 開催中レコード //--------------------------------------------- Records0.Clear(); List <EventScheduleInfo> activeEventInfoList = GetEvetntItemList(Category.Active); activeEventInfoList.Sort(SortExec); foreach (EventScheduleInfo item in activeEventInfoList) { AddRecord(Category.Active, item); } RecordCount0 = Records0.Count; //--------------------------------------------- // 開催予定レコード //--------------------------------------------- Records1.Clear(); List <EventScheduleInfo> furtureEventInfoList = GetEvetntItemList(Category.Furture); furtureEventInfoList.Sort(SortExec); foreach (EventScheduleInfo item in furtureEventInfoList) { AddRecord(Category.Furture, item); } RecordCount1 = Records1.Count; //--------------------------------------------- // データがある場合は詳細ダイアログを表示する //--------------------------------------------- if (MainMenuParam.m_DialogEventScheduleData != null) { EventRecordListItemContex record = Records0.Find((v) => v.FixId == MainMenuParam.m_DialogEventScheduleData.fix_id); if (record != null) { EventScheduleDialog eventDialog = CreateDetailView(record); eventDialog.IsViewJumpButton = false; } else { #if BUILD_TYPE_DEBUG string messageText = "イベントがありませんでした。\nMasterDataEvent::fix_id:" + MainMenuParam.m_DialogEventScheduleData.fix_id; Dialog dloalog = DialogManager.Open1B_Direct("デバッグ ダイアログ", messageText, "common_button7", true, true) .SetOkEvent(() => { }); #endif } MainMenuParam.m_DialogEventScheduleData = null; } }