public AudioVisualizer(BeatmapSongPlayer player) { BeatmapSongPlayer = player; texture = Texture.WhitePixel; AccentColour = new Color4(1, 1, 1, 0.25f); Blending = BlendingMode.Mixture; }
public PlayInfoContainer(BeatmapSongPlayer player) { Player = player; Children = new Drawable[] { Visualizer = new AudioVisualizer(player) { Origin = Anchor.Centre, Anchor = Anchor.Centre, Size = new OpenTK.Vector2(450f, 450f), Depth = -3 }, Circular = new CircularContainer() { Origin = Anchor.Centre, Anchor = Anchor.Centre, Size = new OpenTK.Vector2(450f, 450f), Masking = true, CornerRadius = 175f, Depth = -4, Children = new Drawable[] { ProgressBar = new CircularProgress() { Margin = new MarginPadding(50f), Origin = Anchor.Centre, Anchor = Anchor.Centre, RelativeSizeAxes = Axes.Both, Colour = Color4.White, Depth = -4 }, InfoContainer = new CircularContainer() { Size = new OpenTK.Vector2(400f, 400f), Margin = new MarginPadding(50f), Masking = true, CornerRadius = 400f / 2f, Origin = Anchor.Centre, Anchor = Anchor.Centre, EdgeEffect = new EdgeEffectParameters { Type = EdgeEffectType.Shadow, Colour = Color4.Black.Lighten(1.15f).Opacity(75), Radius = 3f }, Depth = -4, Children = new Drawable[] { TriangleContainer = new TriangleContainer() { Origin = Anchor.Centre, Anchor = Anchor.Centre, Depth = -5, RelativeSizeAxes = Axes.Both, Padding = new MarginPadding(25f), Children = new Drawable[] { TitleText = CreateTitleText("Title"), ArtistText = CreateArtistText("Artist"), ProgressText = new SpriteText() { Origin = Anchor.Centre, Anchor = Anchor.BottomCentre, Font = "OpenSans", Colour = Color4.Black, TextSize = 30f, Text = "0:00 / 0:00", Depth = -6 }, new Box() { RelativeSizeAxes = Axes.Both } } }, new Box() { RelativeSizeAxes = Axes.Both, Colour = Color4.White } } }, CircularBox = new Box() { RelativeSizeAxes = Axes.Both } }, } }; EdgeEffect = new EdgeEffectParameters { Colour = Color4.Black.Lighten(1.25f).Opacity(0.6f), Radius = 5f }; }