void EnsureBtnClick_OneKeyDelete() { LoadingUI.Instance.Show(); SoundManager.Instance.PlaySoundEffect("Sound_Button_MailBatchDeleteConfirmation"); MessageBox.Instance.CloseMsgBox(); EmailInfoPanelManager.GetInstance().SC_EmailTabManager.Sc_EmailContainerList.DeleteAllEmail(); }
public void RefreshItem() { Background_spriteSwith.ChangeSprite(5); IsRead_spring.gameObject.SetActive(!Convert.ToBoolean(_EamilItem.byState)); IconPoint.ClearChild(); fromLable.SetText(Encoding.UTF8.GetString(_EamilItem.szSendActorName)); TitleLable.SetText(Encoding.UTF8.GetString(_EamilItem.szTitle)); if (Convert.ToBoolean(_EamilItem.byIsSystem)) { fromLable.gameObject.SetActive(false); FromSystem.gameObject.SetActive(true); var maildata = EmailInfoPanelManager.GetInstance().systemMailConfigDataBase.SystemMailConfigDataList.First(p => p.MailType == (int)_EamilItem.wEmailType); TitleLable.SetText(LanguageTextManager.GetString(maildata.MailTitle)); } else { fromLable.gameObject.SetActive(true); FromSystem.gameObject.SetActive(false); } if (Convert.ToInt32(_EamilItem.byGoodsType) == (int)emEMAIL_EXTRA_TYPE.EMAIL_NONE_EXTRA_TYPE) { BaseIcon.gameObject.SetActive(true); } else { BaseIcon.gameObject.SetActive(false); ItemData data = ItemDataManager.Instance.GetItemData(System.Convert.ToInt32(_EamilItem.dwGoodsID)); if (data != null) { Background_spriteSwith.ChangeSprite(data._ColorLevel + 1); NGUITools.AddChild(IconPoint.gameObject, data._picPrefab); } } }
public void SetFriendInfo(uint id, string Name) { EmailDataManager.Instance.CurrentFriendId = id; EmailInfoPanelManager.GetInstance().UpdateEmaiBottom(); EmailWrite.dwRecvActorID = id; FriendInput.text = Name; }
public void SetFriendInfo(PanelElementDataModel Friend) { //EmailDataManager.Instance.EmailWrite.dwRecvActorID=1;//Friend.sMsgRecvAnswerFriends_SC.dwFriendID; EmailDataManager.Instance.CurrentFriendId = Friend.sMsgRecvAnswerFriends_SC.dwFriendID; EmailWrite.dwRecvActorID = Friend.sMsgRecvAnswerFriends_SC.dwFriendID; FriendInput.text = Friend.sMsgRecvAnswerFriends_SC.Name; EmailInfoPanelManager.GetInstance().UpdateEmaiBottom(); }
private void GetEmailListHandel(object obj) { LoadingUI.Instance.Close(); if (EmailDataManager.Instance.CurrentMainStatus == EmailPageStatus.ShowEmail && EmailDataManager.Instance.CurrentSubStatue == EmaiSubPageStatus.EmailList) { EmailInfoPanelManager.GetInstance().UpdateEmaiBottom(); StartRefreshList(true); } }
public void StartRefreshList(bool showReadPanel) { if (!showReadPanel) { EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailList); } StartCoroutine(RefreshList()); RefreshUnReadCountLable(); }
void OnWriteEmailBtn(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailChange"); AllEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(1)); SystemEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(1)); WriteEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(2)); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailWrite); //StartCoroutine(ChangeSubPanel(true)); }
void OnSystemEmailBtn(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailChange"); AllEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(1)); SystemEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(2)); WriteEmailBtn.spriteSwithList.ApplyAllItem(p => p.ChangeSprite(1)); Sc_EmailContainerList.Init(EmailType.systemEmail); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailList); }
private void GetAllAttachmentHandl(object obj) { LoadingUI.Instance.Close(); SEmailGetAllGoods_SC Attachment = (SEmailGetAllGoods_SC)obj; //List<Attachment> list= EmailDataManager.Instance.GetAttachmentFromLoacl(Attachment.mailIdList); //list.ApplyAllItem(p=>GoodsMessageManager.Instance.Show((int)p.GoodsID,(int)p.count)); StartRefreshList(true); EmailInfoPanelManager.GetInstance().UpdateEmaiBottom(); }
public void ItemSelectedEventHandle(EmaiListItem selectedEquipItem) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailChoice"); //所有项LoseFocus //SelectedItemID ItemList.ApplyAllItem(p => p.OnLoseFocus()); selectedEquipItem.OnGetFocus(); SelectedItemID = selectedEquipItem._EamilItem.llMailID; EmailDataManager.Instance.ReadEmail(selectedEquipItem._EamilItem.llMailID, selectedEquipItem._EamilItem.byEmailPage); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailRead); //EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail,EmaiSubPageStatus.EmailWrite); }
void RefreshUnReadCountLable() { EmailInfoPanelManager.GetInstance().SC_EmailTabManager.UpdateUnreaderIcon(); if (EmailList.Count > 0) { UnReadCountLable.gameObject.SetActive(true); UnReadCountLable.text = string.Format(LanguageTextManager.GetString("IDS_I22_11"), NGUIColor.SetTxtColor(EmailDataManager.Instance.GetUnReadCount(_Type).ToString(), TextColor.ChatYellow)); } else { UnReadCountLable.gameObject.SetActive(false); } }
public void Refresh() { EmailInfoPanelManager.GetInstance().UpdateEmaiBottom(); //Email=EmailDataManager.Instance.EmailOpenUI_SC.mailList.Find(c=>c.llMailID==EmailDataManager.Instance.EmailRead.llEmailID); if (Email.llMailID == 0) { } else { if (Email.byIsSystem != 0) { FromSystem.SetActive(true); FromUserName.gameObject.SetActive(false); var maildata = EmailInfoPanelManager.GetInstance().systemMailConfigDataBase.SystemMailConfigDataList.First(p => p.MailType == (int)Email.wEmailType); Title.SetText(LanguageTextManager.GetString(maildata.MailTitle)); Context.SetText(LanguageTextManager.GetString(maildata.MailText)); } else { FromSystem.SetActive(false); FromUserName.gameObject.SetActive(true); FromUserName.SetText(Encoding.UTF8.GetString(Email.szSendActorName)); Title.SetText(Encoding.UTF8.GetString(Email.szTitle)); Context.SetText(Encoding.UTF8.GetString(EmailDataManager.Instance.EmailRead.szEmailContext)); } } if (Convert.ToInt32(Email.byGoodsType) == (int)emEMAIL_EXTRA_TYPE.EMAIL_NONE_EXTRA_TYPE) { Noneattachments.gameObject.SetActive(true); attachments.gameObject.SetActive(false); } else { Noneattachments.gameObject.SetActive(false); attachments.gameObject.SetActive(true); attachments.Init(Email); } }
public void SendEmail(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailDelete"); EmailInfoPanelManager.GetInstance().SC_EmailTabManager.Sc_SendEmailContent.SendEmail(); }
void OnChoseButtonClick(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailSelectfriendConfirmation"); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailWrite); EmailInfoPanelManager.GetInstance().SC_EmailTabManager.Sc_SendEmailContent.SetFriendInfo(SelectedItemList[0].Friend); }
void OnBackButtonClick(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailSelectfriendCancel"); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailWrite); }
void ChoseFriend(object obj) { SoundManager.Instance.PlaySoundEffect("Sound_Button_MailSelectRecipient"); EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.ChoseFriend); }