Exemple #1
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Copy constructor
        /// </summary>
        ///
        /// <param name="copy">Instance to copy</param>
        ///
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public ChatBox(ChatBox copy)
            : base(copy)
        {
            m_LoadedConfigFile = copy.m_LoadedConfigFile;
            m_LineSpacing      = copy.m_LineSpacing;
            m_TextSize         = copy.m_TextSize;
            m_TextColor        = copy.m_TextColor;
            m_BorderColor      = copy.m_BorderColor;
            m_Borders          = copy.m_Borders;
            m_MaxLines         = copy.m_MaxLines;
            m_FullTextHeight   = copy.m_FullTextHeight;
            m_Panel            = new Panel(copy.m_Panel);

            // If there is a scrollbar then copy it
            if (copy.m_Scroll != null)
                m_Scroll = new Scrollbar(copy.m_Scroll);
        }
Exemple #2
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Copy constructor
        /// </summary>
        ///
        /// <param name="copy">Instance to copy</param>
        ///
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public ChatBox(ChatBox copy) : base(copy)
        {
            m_LoadedConfigFile = copy.m_LoadedConfigFile;
            m_LineSpacing      = copy.m_LineSpacing;
            m_TextSize         = copy.m_TextSize;
            m_TextColor        = copy.m_TextColor;
            m_BorderColor      = copy.m_BorderColor;
            m_Borders          = copy.m_Borders;
            m_MaxLines         = copy.m_MaxLines;
            m_FullTextHeight   = copy.m_FullTextHeight;
            m_Panel            = new Panel(copy.m_Panel);

            // If there is a scrollbar then copy it
            if (copy.m_Scroll != null)
            {
                m_Scroll = new Scrollbar(copy.m_Scroll);
            }
        }
Exemple #3
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="copy">Object to copy</param>
 public ChatBox(ChatBox copy)
     : base(copy)
 {
 }