コード例 #1
0
ファイル: GameScreen.cs プロジェクト: peppy/Lovewing
        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
ファイル: PlayerLoader.cs プロジェクト: Vagacoder/osu
 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);