// NoticeElementから呼び出される (通知内容を表示させるため、内容表示パネルを開く) public void _CallBackBtnDispNoticeinfoElement(Transform tElm, string sCategory, string sNtcDate, string sPara1, string sPara2) { delElmSave = tElm; // prefabのtransform 内容表示で削除が選ばれたときに使用する if (sCategory == NoticeManager.CATE_SYSTEM) { viewManager.scriptNoticeInfView.category = sCategory; viewManager.scriptNoticeInfView.noticeDate = sNtcDate; viewManager.scriptNoticeInfView.noticeTitle = sPara1; viewManager.scriptNoticeInfView.message = sPara2; viewManager.chgNoticeInfView(myView, viewManager.IN_RIGHT); // 既読 if (NoticeManager.posNoticeSYSOfNtcDate(sCategory, sNtcDate)) { tElm.FindChild("txtNew").gameObject.SetActive(false); tElm.GetComponent <Image>().color = Colors.White; tElm.FindChild("txtTitle").GetComponent <Outline>().enabled = false; tElm.GetComponent <NoticeElement> ().readStat = 1; NoticeManager.readStat = 1; } } else if (sCategory == NoticeManager.CATE_RESULT) { viewManager.scriptNoticeTmtView.category = sCategory; viewManager.scriptNoticeTmtView.sumDate = sPara1; viewManager.scriptNoticeTmtView.sumEndDate = sPara2; // 既読 if (NoticeManager.posNoticeRESOfNtcDate(sCategory, sNtcDate, sPara1)) { tElm.FindChild("txtNew").gameObject.SetActive(false); tElm.GetComponent <Image>().color = Colors.White; tElm.FindChild("txtTitle").GetComponent <Outline>().enabled = false; tElm.GetComponent <NoticeElement> ().readStat = 1; NoticeManager.readStat = 1; } viewManager.chgNoticeTmtView(myView, viewManager.IN_RIGHT); } else if (sCategory == NoticeManager.CATE_NETWK) { // 既読 if (NoticeManager.posNoticeNETOfNtcDate(sCategory, sNtcDate, sPara1)) { tElm.FindChild("txtNew").gameObject.SetActive(false); tElm.GetComponent <Image>().color = Colors.White; tElm.FindChild("txtTitle").GetComponent <Outline>().enabled = false; tElm.GetComponent <NoticeElement> ().readStat = 1; NoticeManager.readStat = 1; } viewManager.chgNoticeInfView(myView, viewManager.IN_RIGHT); } NoticeManager.Save(); }
// 新しい集計結果があればNoticeDataを作成 private int createNoticeFromResult() { int cnt = 0; while (ResultManager.posNewResult()) { NoticeManager.initNotice(); NoticeManager.category = NoticeManager.CATE_RESULT; NoticeManager.sumDate = ResultManager.sumDate; NoticeManager.sumEndDate = ResultManager.sumEndDate; NoticeManager.addNotice(); cnt++; } NoticeManager.Save(); return(cnt); }