Example #1
0
 public override void OnResize(int width, int height)
 {
     for (int i = 0; i < buttons.Length; i++)
     {
         buttons[i].CalculatePosition();
     }
     title.CalculatePosition();
 }
 public override void OnResize(int width, int height)
 {
     if (descWidget != null)
     {
         descWidget.CalculatePosition();
     }
     base.OnResize(width, height);
 }
        TextWidget MakeLabel(int x, int y, string text)
        {
            TextWidget label = TextWidget.Create(game, text, regularFont)
                               .SetLocation(Anchor.Centre, Anchor.Centre, x, y);

            label.XOffset = -110 - label.Width / 2;
            label.CalculatePosition();
            label.Colour = new FastColour(224, 224, 224);
            return(label);
        }
 public override void OnResize(int width, int height)
 {
     messageWidget.CalculatePosition();
     titleWidget.CalculatePosition();
 }