mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Add logging
This commit is contained in:
parent
9814e9ba7f
commit
b92c22ad42
@ -18,6 +18,7 @@ using osu.Framework.Threading;
|
||||
using osu.Framework.Graphics.Pooling;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Extensions;
|
||||
using osu.Game.Graphics.Containers;
|
||||
@ -582,6 +583,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
if (revalidateItems || firstIndex != displayedRange.first || lastIndex != displayedRange.last)
|
||||
{
|
||||
Logger.Log("revalidation requested");
|
||||
|
||||
// Remove all items that should no longer be on-screen
|
||||
scrollableContent.RemoveAll(p => p.Y + p.Item.TotalHeight < visibleUpperBound || p.Y > visibleBottomBound);
|
||||
|
||||
@ -596,6 +599,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
if (panel == null)
|
||||
{
|
||||
Logger.Log($"getting panel for {item} from pool");
|
||||
panel = setPool.Get(p => p.Item = item);
|
||||
panel.Y = yPositions[i];
|
||||
panel.Depth = i;
|
||||
|
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Cursor;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.Drawables;
|
||||
using osu.Game.Collections;
|
||||
@ -86,10 +87,12 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
if (Item == null)
|
||||
return;
|
||||
|
||||
Logger.Log($"updating item {beatmapSet}");
|
||||
Content.Children = new Drawable[]
|
||||
{
|
||||
new DelayedLoadUnloadWrapper(() =>
|
||||
{
|
||||
Logger.Log($"loaded background item {beatmapSet}");
|
||||
var background = new PanelBackground(manager.GetWorkingBeatmap(beatmapSet.Beatmaps.FirstOrDefault()))
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
Loading…
Reference in New Issue
Block a user