コード例 #1
0
    void OnUpdateTableRow(GUIBase_Widget widget, int rowIndex, int itemIndex)
    {
        FriendLine row = m_GuiLines[rowIndex];

        if (itemIndex < m_Friends.Length)
        {
            row.Show();
            row.Update(m_Friends[itemIndex]);
        }
        else
        {
            row.Hide();
        }
    }
コード例 #2
0
    // HANDLERS

    void OnUpdateTableRow(GUIBase_Widget widget, int rowIndex, int itemIndex)
    {
        FriendLine row = m_GuiLines[rowIndex];

        if (itemIndex < m_Friends.Count)
        {
            FriendInfo info   = m_Friends[itemIndex];
            bool       active = m_ActiveFriend == itemIndex ? true : false;

            if (active == true)
            {
                info.UnreadMessages = 0;
            }

            row.Show();
            row.Update(info, active);
        }
        else
        {
            row.Hide();
        }
    }