Example #1
0
    public void SetData(MessageInfo m, System.DateTime timestamp, string partnerName, InboxScreen screen, int threadLength)
    {
        m_TopicText.text  = "Aihe: " + (m.title != null && m.title.Length > 0 ? m.title : "(ei otsikkoa)");
        m_SenderText.text = partnerName != null ? partnerName : "Tuntematon";

        if (threadLength > 1)
        {
            m_ThreadLengthText.text = threadLength + " viestiƤ";
        }
        else
        {
            m_ThreadLengthText.text = "";
        }

        m_TimeStampText.text = MessageManager.GetTimeSince(timestamp);
        m_OpenButton.onClick.RemoveAllListeners();
        m_OpenButton.onClick.AddListener(delegate { OpenMessage(screen, m._id); });
    }
Example #2
0
 private void OpenMessage(InboxScreen screen, string id)
 {
     screen.ShowMessage(id);
 }