Example #1
0
        public CSelectSlide()
        {
            _Theme       = new SThemeSelectSlide();
            _ThemeLoaded = false;

            Rect           = new SRectF();
            RectArrowLeft  = new SRectF();
            RectArrowRight = new SRectF();

            Color  = new SColorF();
            SColor = new SColorF();

            ColorArrow  = new SColorF();
            SColorArrow = new SColorF();

            TextColor  = new SColorF();
            STextColor = new SColorF();
            TextH      = 1f;
            MaxW       = 0f;

            _Selected     = false;
            _Textures     = new List <STexture>();
            _ValueIndexes = new List <int>();
            _ValueNames   = new List <string>();
        }
Example #2
0
        public CSelectSlide(CSelectSlide slide)
        {
            _Theme = new SThemeSelectSlide();

            _Theme.TextureArrowLeftName  = slide._Theme.TextureArrowLeftName;
            _Theme.TextureArrowRightName = slide._Theme.TextureArrowRightName;

            _Theme.STextureName           = slide._Theme.STextureName;
            _Theme.STextureArrowLeftName  = slide._Theme.STextureArrowLeftName;
            _Theme.STextureArrowRightName = slide._Theme.STextureArrowRightName;

            _Theme.HTextureName = slide._Theme.HTextureName;

            _Theme.ColorName  = slide._Theme.ColorName;
            _Theme.SColorName = slide._Theme.SColorName;
            _Theme.HColorName = slide._Theme.HColorName;

            _Theme.ArrowColorName  = slide._Theme.ArrowColorName;
            _Theme.SArrowColorName = slide._Theme.SArrowColorName;

            _Theme.TextColorName  = slide._Theme.TextColorName;
            _Theme.STextColorName = slide._Theme.STextColorName;

            _Theme.TextFont  = slide._Theme.TextFont;
            _Theme.TextStyle = slide._Theme.TextStyle;

            _ThemeLoaded = false;

            Rect           = new SRectF(slide.Rect);
            RectArrowLeft  = new SRectF(slide.RectArrowLeft);
            RectArrowRight = new SRectF(slide.RectArrowRight);

            Color  = new SColorF(slide.Color);
            SColor = new SColorF(slide.SColor);

            ColorArrow  = new SColorF(slide.ColorArrow);
            SColorArrow = new SColorF(slide.SColorArrow);

            TextColor     = new SColorF(slide.TextColor);
            STextColor    = new SColorF(slide.STextColor);
            TextH         = slide.TextH;
            TextRelativeX = slide.TextRelativeX;
            TextRelativeY = slide.TextRelativeY;
            MaxW          = slide.MaxW;

            _Selected     = slide._Selected;
            _Textures     = new List <STexture>(slide._Textures);
            _ValueIndexes = new List <int>(slide._ValueIndexes);
            _ValueNames   = new List <string>(slide._ValueNames);
            _ValueBounds  = new List <SRectF>(slide._ValueBounds);
            _Selection    = slide._Selection;
            _NumVisible   = slide._NumVisible;

            WithTextures = slide.WithTextures;
            Visible      = slide.Visible;
        }