Esempio n. 1
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Copy constructor
        /// </summary>
        ///
        /// <param name="copy">Instance to copy</param>
        ///
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public Slider2d(Slider2d copy) : base(copy)
        {
            ValueChangedCallback          = copy.ValueChangedCallback;
            ThumbReturnedToCenterCallback = copy.ThumbReturnedToCenterCallback;

            m_LoadedConfigFile    = copy.m_LoadedConfigFile;
            m_Minimum             = copy.m_Minimum;
            m_Maximum             = copy.m_Maximum;
            m_Value               = copy.m_Value;
            m_ReturnThumbToCenter = copy.m_ReturnThumbToCenter;
            m_FixedThumbSize      = copy.m_FixedThumbSize;
            m_SeparateHoverImage  = copy.m_SeparateHoverImage;

            Global.TextureManager.CopyTexture(copy.m_TextureTrackNormal, m_TextureTrackNormal);
            Global.TextureManager.CopyTexture(copy.m_TextureTrackHover, m_TextureTrackHover);
            Global.TextureManager.CopyTexture(copy.m_TextureThumbNormal, m_TextureThumbNormal);
            Global.TextureManager.CopyTexture(copy.m_TextureThumbHover, m_TextureThumbHover);
        }
Esempio n. 2
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Copy constructor
        /// </summary>
        ///
        /// <param name="copy">Instance to copy</param>
        ///
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public Slider2d(Slider2d copy)
            : base(copy)
        {
            ValueChangedCallback = copy.ValueChangedCallback;
            ThumbReturnedToCenterCallback = copy.ThumbReturnedToCenterCallback;

            m_LoadedConfigFile    = copy.m_LoadedConfigFile;
            m_Minimum             = copy.m_Minimum;
            m_Maximum             = copy.m_Maximum;
            m_Value               = copy.m_Value;
            m_ReturnThumbToCenter = copy.m_ReturnThumbToCenter;
            m_FixedThumbSize      = copy.m_FixedThumbSize;
            m_SeparateHoverImage  = copy.m_SeparateHoverImage;

            Global.TextureManager.CopyTexture(copy.m_TextureTrackNormal, m_TextureTrackNormal);
            Global.TextureManager.CopyTexture(copy.m_TextureTrackHover, m_TextureTrackHover);
            Global.TextureManager.CopyTexture(copy.m_TextureThumbNormal, m_TextureThumbNormal);
            Global.TextureManager.CopyTexture(copy.m_TextureThumbHover, m_TextureThumbHover);
        }