void AddAppearence() { appearence.AddAppearence("background", new PlainBackground(new Color4(41f / 256f, 39f / 256f, 39f / 256f,1f))); appearence.AddAppearence("border", new PlainBorder(3,new Color4(122f / 256f, 106f / 256f, 70f / 256f,1f))); textAppearence = appearence.Add<PlainText>("plaintext"); textAppearence.AutoSize = false; textAppearence.Color = Color.White; }
public Label(int id, string text, Color color, bool autoresize) : base(id) { textAppearence = appearence.Add<PlainText>("text"); textAppearence.Color = color; textAppearence.Text = text; textAppearence.AutoSize = autoresize; this.text = text; this.color = color; }
public Label() : base() { textAppearence = new PlainText(true, "", Color.White); }