示例#1
0
 static public void Add(Vector2 pos, int space, string prefixText, string text, int fontSize, Color color, FontStyle fontStyle = FontStyle.Normal, HorTextAlign horTextAlign = HorTextAlign.Left, VerTextAlign vertTextAlign = VerTextAlign.Top)
 {
     drawTextList.Add(new TextCommand(pos, prefixText, fontSize, color, fontStyle, horTextAlign, vertTextAlign));
     drawTextList.Add(new TextCommand(pos + new Vector2(space, 0), text, fontSize, color, fontStyle, horTextAlign, vertTextAlign));
 }
示例#2
0
 public TextCommand(Vector2 pos, string text, int fontSize, Color color, FontStyle fontStyle = FontStyle.Normal, HorTextAlign horTextAlign = HorTextAlign.Left, VerTextAlign vertTextAlign = VerTextAlign.Top)
 {
     this.pos = pos; this.text = text; this.color = color; this.fontSize = fontSize; this.fontStyle = fontStyle; this.horTextAlign = horTextAlign; this.vertTextAlign = vertTextAlign;
 }