Exemple #1
0
 public DimmedLoadingLayer()
 {
     RelativeSizeAxes = Axes.Both;
     Children         = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = Color4.Black.Opacity(0.5f),
         },
         loading = new LoadingAnimation(),
     };
 }
Exemple #2
0
 public DimmedLoadingLayer(float dimAmount = 0.5f, float iconScale = 1f)
 {
     RelativeSizeAxes = Axes.Both;
     Children         = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = Color4.Black.Opacity(dimAmount),
         },
         loading = new LoadingAnimation {
             Scale = new Vector2(iconScale)
         },
     };
 }