private void load(TextureStore textures, IAPIProvider api) { Origin = Anchor.Centre; Anchor = Anchor.Centre; Children = new Drawable[] { scaleContainer = new Container { AutoSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { LogoVisualisation = new LogoVisualisation { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Colour = Color4.DarkBlue, Size = new Vector2(0.96f) }, new Circle { Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(480), Colour = Color4.Black }, } }, }; if (api.LocalUser.Value.IsSupporter) { scaleContainer.Add(welcomeText = new SkinnableSprite(@"Intro/Welcome/welcome_text")); } else { scaleContainer.Add(welcomeText = new Sprite { Texture = textures.Get(@"Intro/Welcome/welcome_text") }); } welcomeText.Anchor = Anchor.Centre; welcomeText.Origin = Anchor.Centre; }
private void load(TextureStore textures) { Origin = Anchor.Centre; Anchor = Anchor.Centre; Children = new Drawable[] { scaleContainer = new Container { AutoSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { LogoVisualisation = new LogoVisualisation { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Alpha = 0.5f, AccentColour = Color4.DarkBlue, Size = new Vector2(0.96f) }, new Circle { Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(480), Colour = Color4.Black }, welcomeText = new Sprite { Anchor = Anchor.Centre, Origin = Anchor.Centre, Texture = textures.Get(@"Intro/Welcome/welcome_text") }, } }, }; }
public OsuLogo() { // Required to make Schedule calls run in OsuScreen even when we are not visible. AlwaysPresent = true; EarlyActivationMilliseconds = early_activation; Size = new Vector2(default_size); Origin = Anchor.Centre; AutoSizeAxes = Axes.Both; Children = new Drawable[] { intro = new IntroSequence { RelativeSizeAxes = Axes.Both, }, logoHoverContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoBounceContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { rippleContainer = new Container { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Children = new Drawable[] { ripple = new Sprite { Anchor = Anchor.Centre, Origin = Anchor.Centre, Blending = BlendingMode.Additive, Alpha = 0 } } }, logoAmplitudeContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoBeatContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { visualizer = new LogoVisualisation { RelativeSizeAxes = Axes.Both, Origin = Anchor.Centre, Anchor = Anchor.Centre, Alpha = 0.5f, Size = new Vector2(0.96f) }, new BufferedContainer { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoContainer = new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Scale = new Vector2(0.88f), Masking = true, Children = new Drawable[] { colourAndTriangles = new Container { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = OsuPink, }, triangles = new Triangles { TriangleScale = 4, ColourLight = OsuColour.FromHex(@"ff7db7"), ColourDark = OsuColour.FromHex(@"de5b95"), RelativeSizeAxes = Axes.Both, }, } }, flashLayer = new Box { RelativeSizeAxes = Axes.Both, Blending = BlendingMode.Additive, Colour = Color4.White, Alpha = 0, }, }, }, logo = new Sprite { Anchor = Anchor.Centre, Origin = Anchor.Centre, }, } }, impactContainer = new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, Alpha = 0, BorderColour = Color4.White, RelativeSizeAxes = Axes.Both, BorderThickness = 10, Masking = true, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, AlwaysPresent = true, Alpha = 0, } } } } } } } } } } } }; }
public VisualisationDrawNode(LogoVisualisation source) : base(source) { }
public OsuLogo() { EarlyActivationMilliseconds = early_activation; Size = new Vector2(default_size); Origin = Anchor.Centre; AutoSizeAxes = Axes.Both; Children = new Drawable[] { intro = new IntroSequence { RelativeSizeAxes = Axes.Both, }, logoHoverContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoBounceContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { rippleContainer = new Container { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Children = new Drawable[] { ripple = new Sprite { Anchor = Anchor.Centre, Origin = Anchor.Centre, Blending = BlendingMode.Additive, Alpha = 0 } } }, logoAmplitudeContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoBeatContainer = new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { visualizer = new LogoVisualisation { RelativeSizeAxes = Axes.Both, Origin = Anchor.Centre, Anchor = Anchor.Centre, Alpha = 0.5f, Size = new Vector2(0.96f) }, new Container { AutoSizeAxes = Axes.Both, Children = new Drawable[] { logoContainer = new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Scale = new Vector2(0.88f), Masking = true, Children = new Drawable[] { colourAndTriangles = new Container { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = KyzerPink, }, triangles = new Triangles { Alpha = 0.9f, TriangleScale = 8, MultipleColours = true, Colours = new Color4[] { OsuColour.FromHex("fe7968"), OsuColour.FromHex("a6512c"), OsuColour.FromHex("a33617"), OsuColour.FromHex("a62819"), OsuColour.FromHex("740805"), OsuColour.FromHex("b45131"), OsuColour.FromHex("c17134"), OsuColour.FromHex("a30F0b"), OsuColour.FromHex("ffa46b"), OsuColour.FromHex("ff7d8d"), OsuColour.FromHex("b30f0d"), OsuColour.FromHex("fee679"), OsuColour.FromHex("cf5339"), }, RelativeSizeAxes = Axes.Both, }, } }, flashLayer = new Box { RelativeSizeAxes = Axes.Both, Blending = BlendingMode.Additive, Colour = Color4.White, Alpha = 0, }, }, }, logo = new Sprite { Anchor = Anchor.Centre, Origin = Anchor.Centre, }, } }, impactContainer = new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, Alpha = 0, BorderColour = Color4.White, RelativeSizeAxes = Axes.Both, BorderThickness = 10, Masking = true, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, AlwaysPresent = true, Alpha = 0, } } } } } } } } } } } }; }