示例#1
0
        protected override void LoadComplete()
        {
            var presence = new DiscordRpc.RichPresence
            {
                details       = "Test Game",
                state         = "In-Game",
                largeImageKey = "logo"
            };

            DiscordRpc.UpdatePresence(ref presence);

            bg.BlurTo(new Vector2(10));
        }
示例#2
0
 protected override void InitializeBackgroundElements()
 {
     Background?.FadeColour(Color4.White, BACKGROUND_FADE_DURATION, Easing.OutQuint);
     Background?.BlurTo(background_blur, BACKGROUND_FADE_DURATION, Easing.OutQuint);
 }
示例#3
0
 public TransformSequence <Background> BlurTo(Vector2 sigma, double duration, Easing easing = Easing.None)
 => Background?.BlurTo(BlurTarget = sigma, duration, easing);