예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 void EnsureBtnClick_OneKeyDelete()
 {
     LoadingUI.Instance.Show();
     SoundManager.Instance.PlaySoundEffect("Sound_Button_MailBatchDeleteConfirmation");
     MessageBox.Instance.CloseMsgBox();
     EmailInfoPanelManager.GetInstance().SC_EmailTabManager.Sc_EmailContainerList.DeleteAllEmail();
 }
예제 #3
0
 public void SetFriendInfo(uint id, string Name)
 {
     EmailDataManager.Instance.CurrentFriendId = id;
     EmailInfoPanelManager.GetInstance().UpdateEmaiBottom();
     EmailWrite.dwRecvActorID = id;
     FriendInput.text         = Name;
 }
예제 #4
0
 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();
 }
예제 #5
0
 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));
 }
예제 #6
0
 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);
 }
예제 #7
0
 public void StartRefreshList(bool showReadPanel)
 {
     if (!showReadPanel)
     {
         EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailList);
     }
     StartCoroutine(RefreshList());
     RefreshUnReadCountLable();
 }
예제 #8
0
 private void GetEmailListHandel(object obj)
 {
     LoadingUI.Instance.Close();
     if (EmailDataManager.Instance.CurrentMainStatus == EmailPageStatus.ShowEmail && EmailDataManager.Instance.CurrentSubStatue == EmaiSubPageStatus.EmailList)
     {
         EmailInfoPanelManager.GetInstance().UpdateEmaiBottom();
         StartRefreshList(true);
     }
 }
예제 #9
0
        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();
        }
예제 #10
0
 public static EmailInfoPanelManager GetInstance()
 {
     if (!instance)
     {
         instance = (EmailInfoPanelManager)GameObject.FindObjectOfType(typeof(EmailInfoPanelManager));
         if (!instance)
         {
             Debug.LogError("没有附加JewelBesetManager脚本的gameobject在场景中");
         }
     }
     return(instance);
 }
예제 #11
0
 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);
 }
예제 #12
0
 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);
     }
 }
예제 #13
0
 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);
     }
 }
예제 #14
0
 void ChoseFriend(object obj)
 {
     SoundManager.Instance.PlaySoundEffect("Sound_Button_MailSelectRecipient");
     EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.ChoseFriend);
 }
예제 #15
0
 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);
 }
예제 #16
0
 void OnBackButtonClick(object obj)
 {
     SoundManager.Instance.PlaySoundEffect("Sound_Button_MailSelectfriendCancel");
     EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailWrite);
 }
예제 #17
0
        public void SendEmail(object obj)
        {
            SoundManager.Instance.PlaySoundEffect("Sound_Button_MailDelete");

            EmailInfoPanelManager.GetInstance().SC_EmailTabManager.Sc_SendEmailContent.SendEmail();
        }