Beispiel #1
0
        public void AddLabel(int index, int x, int y, int width, int height, string text, string font, int fontSize,
                             Color color)
        {
            MenuLabel lbl = new MenuLabel();

            lbl.X        = x;
            lbl.Y        = y;
            lbl.Width    = width;
            lbl.Height   = height;
            lbl.Text     = text;
            lbl.Font     = font;
            lbl.FontSize = fontSize;
            lbl.Color    = color;
            mLabels.Add(index, lbl);
        }
Beispiel #2
0
 public void AddLabel(int index, int x, int y, int width, int height, string text, string font, int fontSize,
     Color color)
 {
     MenuLabel lbl = new MenuLabel();
     lbl.X = x;
     lbl.Y = y;
     lbl.Width = width;
     lbl.Height = height;
     lbl.Text = text;
     lbl.Font = font;
     lbl.FontSize = fontSize;
     lbl.Color = color;
     mLabels.Add(index, lbl);
 }