Exemplo n.º 1
0
 public static Widget MakeText(string text, DialogFont Font, float x, float y, int textColor)
 {
     Widget w = new Widget();
     w.Type = WidgetType.Text;
     w.Text = text;
     w.X = (int)x;
     w.Y = (int)y;
     w.Font = Font;
     w.Color = textColor;
     return w;
 }
Exemplo n.º 2
0
 public static Widget MakeTextBox(string text, DialogFont Font, float x, float y, float width, float height, int textColor)
 {
     Widget w = new Widget();
     w.Type = WidgetType.TextBox;
     w.Text = text;
     w.X = (int)x;
     w.Y = (int)y;
     w.Width = (int)width;
     w.Height = (int)height;
     w.Font = Font;
     w.Color = textColor;
     return w;
 }
Exemplo n.º 3
0
 public static Widget MakeSolid(float x, float y, float width, float height, int color)
 {
     Widget w = new Widget();
     w.Type = WidgetType.Image;
     w.Image = SolidImage;
     w.X = (int)x;
     w.Y = (int)y;
     w.Width = (int)width;
     w.Height = (int)height;
     w.Color = color;
     return w;
 }