Exemple #1
0
        void OnClickSendMail()
        {
            FusionAudio.PostEvent("UI/General/ButtonClick");
            if (InputTitleLabel.text.Equals(noInputTitleStr) || InputContentLabel.text.Equals(noInputContentStr))
            {
                MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LegionMailView_2531"));
            }
            else if (lessMailTimes <= 0)
            {
                MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LegionMailView_2680"));
            }
            else
            {
                if (LegionEvent.SendLegionMail != null)
                {
                    LegionEvent.SendLegionMail(InputTitleLabel.text, InputContentLabel.text);
                }

                if (InputTitleLabel != null)
                {
                    InputTitleLabel.text = noInputTitleStr;
                    InputTitleLabel.GetComponent <UIInput>().value = string.Empty;
                    InputContentLabel.text = noInputContentStr;
                    InputContentLabel.GetComponent <UIInput>().value = string.Empty;
                }
                mDMono.gameObject.SetActive(false);
            }
        }