public UIBigButton(bool green) : base() { CaptionStyle = CaptionStyle.Clone(); CaptionStyle.Size = 37; CaptionStyle.Color = (green)?UIStyle.Current.GreenBtnTxt:UIStyle.Current.BtnTxt; CaptionStyle.DisabledColor = UIStyle.Current.BtnDisable; Texture = Content.Get().CustomUI.Get(green ? "greenbutton.png" : "button.png").Get(GameFacade.GraphicsDevice); }
public void NewStyle(Color color, int size) { CaptionStyle = CaptionStyle.Clone(); CaptionStyle.Color = color; CaptionStyle.Size = size; }