Exemple #1
0
 public Cell Add(string text, string fontName, string colorName)
 {
     if (Skin == null)
     {
         throw new InvalidOperationException("Table must have a skin to use this method.");
     }
     return(Add(new Label(text, new LabelStyle(Skin.GetFont(fontName), Skin.GetColor(colorName)))));
 }
Exemple #2
0
 public Label(CharSequence text, Skin skin, string fontName, Color color)
     : this(text, new LabelStyle(skin.GetFont(fontName), color))
 {
 }
Exemple #3
0
 public Label(CharSequence text, Skin skin, string fontName, string colorName)
     : this(text, new LabelStyle(skin.GetFont(fontName), skin.GetColor(colorName)))
 {
 }
Exemple #4
0
 public Label(string text, Skin skin, string fontName, string colorName)
     : this(new StringSequence(text ?? ""), new LabelStyle(skin.GetFont(fontName), skin.GetColor(colorName)))
 {
 }