Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
0
 public bool SetInteractionToSelectSlide(CSelectSlide slide)
 {
     for (int i = 0; i < _Interactions.Count; i++)
     {
         if (_Interactions[i].Type == EType.TSelectSlide)
         {
             if (_SelectSlides[_Interactions[i].Num].Visible && _SelectSlides[_Interactions[i].Num] == slide)
             {
                 _UnsetSelected();
                 _UnsetHighlighted(_Selection);
                 _Selection = i;
                 _SetSelected();
                 return(true);
             }
         }
     }
     return(false);
 }
Ejemplo n.º 3
0
 public int AddSelectSlide(CSelectSlide slide)
 {
     _SelectSlides.Add(slide);
     _AddInteraction(_SelectSlides.Count - 1, EType.TSelectSlide);
     return(_SelectSlides.Count - 1);
 }