示例#1
0
文件: Label.cs 项目: jaquadro/MonoGdx
 public Label(string text, LabelStyle style)
     : this(new StringSequence(text ?? ""), style)
 {
 }
示例#2
0
 public void AddText(string text, LabelStyle labelStyle)
 {
     AddText(new Label(text, labelStyle));
 }
示例#3
0
文件: Label.cs 项目: jaquadro/MonoGdx
 public LabelStyle(LabelStyle style)
 {
     Font = style.Font;
     FontColor = style.FontColor;
     Background = style.Background;
 }
示例#4
0
文件: Label.cs 项目: jaquadro/MonoGdx
        public Label(CharSequence text, LabelStyle style)
        {
            if (text != null)
                TextSequence = text;

            Style = style;
            Width = PrefWidth;
            Height = PrefHeight;
        }
示例#5
0
 public void AddText(string text, LabelStyle labelStyle)
 {
     AddText(new Label(text, labelStyle));
 }
示例#6
0
 public Label(string text, LabelStyle style)
     : this(new StringSequence(text ?? ""), style)
 {
 }
示例#7
0
 public LabelStyle(LabelStyle style)
 {
     Font       = style.Font;
     FontColor  = style.FontColor;
     Background = style.Background;
 }