Esempio n. 1
0
        private void logger_NewEntry(LogEntry entry)
        {
#if !DEBUG
            if (entry.Level <= LogLevel.Verbose)
            {
                return;
            }
#endif

            Schedule(() =>
            {
                var drawEntry = new DrawableLogEntry(entry);

                flow.Add(drawEntry);

                drawEntry.Position = new Vector2(-drawEntry.DrawWidth, 0);

                drawEntry.FadeInFromZero(200);
                using (drawEntry.Delay(200))
                {
                    drawEntry.FadeOut(entry.Message.Length * 100, EasingTypes.InQuint);
                    drawEntry.Expire();
                }
            });
        }
Esempio n. 2
0
        private void logger_NewEntry(LogEntry entry)
        {
            Schedule(() =>
            {
                var drawEntry = new DrawableLogEntry(entry);

                flow.Add(drawEntry);

                drawEntry.Position = new Vector2(-drawEntry.DrawWidth, 0);

                drawEntry.FadeInFromZero(200);
                drawEntry.Delay(200);
                drawEntry.FadeOut(entry.Message.Length * 100, EasingTypes.InQuint);
                drawEntry.Expire();
            });
        }
Esempio n. 3
0
        private void addEntry(LogEntry entry)
        {
#if !DEBUG
            if (entry.Level <= LogLevel.Verbose)
            {
                return;
            }
#endif

            Schedule(() =>
            {
                const int display_length = 4000;

                var drawEntry = new DrawableLogEntry(entry);

                flow.Add(drawEntry);

                drawEntry.FadeInFromZero(800, Easing.OutQuint).Delay(display_length).FadeOut(800, Easing.InQuint);
                drawEntry.Expire();
            });
        }