Beispiel #1
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Copy constructor
        /// </summary>
        ///
        /// <param name="copy">Instance to copy</param>
        ///
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public Knob(Knob copy)
            : base(copy)
        {
            ValueChangedCallback = copy.ValueChangedCallback;

            m_loadedConfigFile = copy.m_loadedConfigFile;
            m_size             = copy.m_size;
            m_clockwiseTurning = copy.m_clockwiseTurning;
            m_imageRotation    = copy.m_imageRotation;
            m_startRotation    = copy.m_startRotation;
            m_endRotation      = copy.m_endRotation;
            m_minimum          = copy.m_minimum;
            m_value            = copy.m_value;
            m_maximum          = copy.m_maximum;

            Global.TextureManager.CopyTexture(copy.m_backgroundTexture, m_backgroundTexture);
            Global.TextureManager.CopyTexture(copy.m_foregroundTexture, m_foregroundTexture);
        }
Beispiel #2
0
 public Knob(Knob copy)
     : base(copy)
 {
 }