예제 #1
0
 public DimmedLoadingLayer()
 {
     RelativeSizeAxes = Axes.Both;
     Children         = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = Color4.Black.Opacity(0.5f),
         },
         loading = new LoadingAnimation(),
     };
 }
예제 #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)
         },
     };
 }