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; }
protected void _AddButton(CButton button, String key = null) { _AddElement(_Buttons.Add(button, key), EType.Button); }
public static CButton GetNewButton(CButton button) { return(new CButton(button)); }