Exemple #1
0
        public CButton(CButton button)
        {
            _PartyModeID = button._PartyModeID;
            _Theme       = new SThemeButton
            {
                Skin         = button._Theme.Skin,
                SkinSelected = button._Theme.SkinSelected
            };

            MaxRect    = button.MaxRect;
            Color      = button.Color;
            SelColor   = button.SelColor;
            Texture    = button.Texture;
            SelTexture = button.SelTexture;

            Text        = new CText(button.Text);
            _SelText    = _SelText == null ? null : new CText(button._SelText);
            Selected    = false;
            EditMode    = false;
            _Selectable = button._Selectable;

            _Reflection       = button._Reflection;
            _ReflectionHeight = button._ReflectionHeight;
            _ReflectionSpace  = button._ReflectionSpace;

            _SelReflection       = button._SelReflection;
            _SelReflectionHeight = button._SelReflectionHeight;
            _SelReflectionSpace  = button._SelReflectionSpace;
        }
Exemple #2
0
 protected void _AddButton(CButton button, String key = null)
 {
     _AddElement(_Buttons.Add(button, key), EType.Button);
 }
Exemple #3
0
 public static CButton GetNewButton(CButton button)
 {
     return(new CButton(button));
 }