public static void SetIcon(ICON_TYPE type, bool bOn) { if (Scene.IsCurScene(Scene.Type.WORLD)) { NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON); if (noticeIconDlg != null) { if (type == ICON_TYPE.ATTEND_REWARD) { noticeIconDlg.SetIconOnOff(type, false); noticeIconDlg.SetIconStatus(type, false); } else { noticeIconDlg.SetIconOnOff(type, bOn); noticeIconDlg.SetIconStatus(type, bOn); } if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedFirstQuest()) { noticeIconDlg.Hide(); } } } else if (bOn) { NoticeIconDlg.AddTempNotice(type); } }
public void ShowTempNotice() { if (!this.IsTempNotice()) { return; } NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON); for (int i = 0; i < 5; i++) { if (NoticeIconDlg.tempicontype[i] >= 0) { if (noticeIconDlg != null) { noticeIconDlg.SetIconOnOff((ICON_TYPE)NoticeIconDlg.tempicontype[i], true); noticeIconDlg.SetIconStatus((ICON_TYPE)NoticeIconDlg.tempicontype[i], true); if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedFirstQuest()) { noticeIconDlg.Hide(); } } } } this.InitTempNotice(); }