예제 #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();
                }
            });
        }
예제 #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();
            });
        }