2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-20 04:41:06 +08:00
|
|
|
|
using System;
|
2021-01-21 13:07:02 +08:00
|
|
|
|
using System.Diagnostics;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
using System.Linq;
|
2020-11-23 12:49:14 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2019-02-21 18:04:31 +08:00
|
|
|
|
using osu.Framework.Bindables;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-02-26 14:06:30 +08:00
|
|
|
|
using osu.Framework.Layout;
|
2023-06-07 14:24:12 +08:00
|
|
|
|
using osu.Framework.Logging;
|
|
|
|
|
using osu.Framework.Threading;
|
2020-12-22 23:51:12 +08:00
|
|
|
|
using osu.Framework.Utils;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-20 04:41:06 +08:00
|
|
|
|
namespace osu.Game.Graphics.Containers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A container that can scroll to each section inside it.
|
|
|
|
|
/// </summary>
|
2020-11-23 12:49:14 +08:00
|
|
|
|
[Cached]
|
2017-06-09 16:24:19 +08:00
|
|
|
|
public partial class SectionsContainer<T> : Container<T>
|
|
|
|
|
where T : Drawable
|
2017-05-20 04:41:06 +08:00
|
|
|
|
{
|
2023-06-07 13:53:37 +08:00
|
|
|
|
public Bindable<T?> SelectedSection { get; } = new Bindable<T?>();
|
|
|
|
|
|
|
|
|
|
private T? lastClickedSection;
|
|
|
|
|
|
|
|
|
|
protected override Container<T> Content => scrollContentContainer;
|
|
|
|
|
|
|
|
|
|
private readonly UserTrackingScrollContainer scrollContainer;
|
|
|
|
|
private readonly Container headerBackgroundContainer;
|
|
|
|
|
private readonly MarginPadding originalSectionsMargin;
|
|
|
|
|
|
|
|
|
|
private Drawable? fixedHeader;
|
|
|
|
|
|
|
|
|
|
private Drawable? footer;
|
|
|
|
|
private Drawable? headerBackground;
|
|
|
|
|
|
|
|
|
|
private FlowContainer<T> scrollContentContainer = null!;
|
|
|
|
|
|
|
|
|
|
private float? headerHeight, footerHeight;
|
|
|
|
|
|
|
|
|
|
private float? lastKnownScroll;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The percentage of the container to consider the centre-point for deciding the active section (and scrolling to a requested section).
|
|
|
|
|
/// </summary>
|
|
|
|
|
private const float scroll_y_centre = 0.1f;
|
2021-08-19 00:26:33 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
private Drawable? expandableHeader;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
public Drawable? ExpandableHeader
|
2017-05-20 04:41:06 +08:00
|
|
|
|
{
|
2019-02-28 12:58:19 +08:00
|
|
|
|
get => expandableHeader;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == expandableHeader) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2020-09-03 16:11:34 +08:00
|
|
|
|
if (expandableHeader != null)
|
2022-09-03 20:02:56 +08:00
|
|
|
|
RemoveInternal(expandableHeader, false);
|
2020-09-03 16:11:34 +08:00
|
|
|
|
|
2017-05-20 04:41:06 +08:00
|
|
|
|
expandableHeader = value;
|
2020-09-03 16:11:34 +08:00
|
|
|
|
|
2017-05-21 02:11:55 +08:00
|
|
|
|
if (value == null) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-09 16:24:19 +08:00
|
|
|
|
AddInternal(expandableHeader);
|
2023-06-07 13:53:37 +08:00
|
|
|
|
|
2021-01-21 13:31:31 +08:00
|
|
|
|
lastKnownScroll = null;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
public Drawable? FixedHeader
|
2017-05-20 04:41:06 +08:00
|
|
|
|
{
|
2019-02-28 12:58:19 +08:00
|
|
|
|
get => fixedHeader;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == fixedHeader) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-09 16:24:19 +08:00
|
|
|
|
fixedHeader?.Expire();
|
2017-05-20 04:41:06 +08:00
|
|
|
|
fixedHeader = value;
|
2022-09-03 20:02:56 +08:00
|
|
|
|
|
2017-05-21 02:11:55 +08:00
|
|
|
|
if (value == null) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-09 16:24:19 +08:00
|
|
|
|
AddInternal(fixedHeader);
|
2021-01-21 13:31:31 +08:00
|
|
|
|
lastKnownScroll = null;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
public Drawable? Footer
|
2017-05-21 03:44:03 +08:00
|
|
|
|
{
|
2019-02-28 12:58:19 +08:00
|
|
|
|
get => footer;
|
2017-05-21 03:44:03 +08:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == footer) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-21 03:44:03 +08:00
|
|
|
|
if (footer != null)
|
2022-09-03 20:02:56 +08:00
|
|
|
|
scrollContainer.Remove(footer, false);
|
|
|
|
|
|
2017-05-21 03:44:03 +08:00
|
|
|
|
footer = value;
|
2022-09-03 20:02:56 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
if (footer == null) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-21 03:44:03 +08:00
|
|
|
|
footer.Anchor |= Anchor.y2;
|
|
|
|
|
footer.Origin |= Anchor.y2;
|
2023-06-07 13:53:37 +08:00
|
|
|
|
|
2017-06-25 10:06:54 +08:00
|
|
|
|
scrollContainer.Add(footer);
|
2021-01-21 13:31:31 +08:00
|
|
|
|
lastKnownScroll = null;
|
2017-05-21 03:44:03 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-06-07 13:53:37 +08:00
|
|
|
|
public Drawable? HeaderBackground
|
2017-06-07 22:11:38 +08:00
|
|
|
|
{
|
2019-02-28 12:58:19 +08:00
|
|
|
|
get => headerBackground;
|
2017-06-07 22:11:38 +08:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == headerBackground) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-07 22:11:38 +08:00
|
|
|
|
headerBackgroundContainer.Clear();
|
|
|
|
|
headerBackground = value;
|
2020-04-13 19:12:51 +08:00
|
|
|
|
|
2017-06-07 22:11:38 +08:00
|
|
|
|
if (value == null) return;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-07 22:11:38 +08:00
|
|
|
|
headerBackgroundContainer.Add(headerBackground);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-01-21 13:31:31 +08:00
|
|
|
|
lastKnownScroll = null;
|
2017-06-07 22:11:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-20 04:41:06 +08:00
|
|
|
|
public SectionsContainer()
|
|
|
|
|
{
|
2020-04-13 17:23:28 +08:00
|
|
|
|
AddRangeInternal(new Drawable[]
|
2017-05-20 04:41:06 +08:00
|
|
|
|
{
|
2020-04-13 17:23:28 +08:00
|
|
|
|
scrollContainer = CreateScrollContainer().With(s =>
|
|
|
|
|
{
|
|
|
|
|
s.RelativeSizeAxes = Axes.Both;
|
|
|
|
|
s.Masking = true;
|
|
|
|
|
s.ScrollbarVisible = false;
|
2020-04-13 19:12:51 +08:00
|
|
|
|
s.Child = scrollContentContainer = CreateScrollContentContainer();
|
2020-04-13 17:23:28 +08:00
|
|
|
|
}),
|
|
|
|
|
headerBackgroundContainer = new Container
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X
|
|
|
|
|
}
|
2017-05-20 04:41:06 +08:00
|
|
|
|
});
|
2020-04-13 19:12:51 +08:00
|
|
|
|
|
2017-06-12 14:39:49 +08:00
|
|
|
|
originalSectionsMargin = scrollContentContainer.Margin;
|
2017-05-20 04:41:06 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2020-04-13 19:12:51 +08:00
|
|
|
|
public override void Add(T drawable)
|
|
|
|
|
{
|
|
|
|
|
base.Add(drawable);
|
2021-01-21 13:07:02 +08:00
|
|
|
|
|
|
|
|
|
Debug.Assert(drawable != null);
|
|
|
|
|
|
2021-01-21 13:31:31 +08:00
|
|
|
|
lastKnownScroll = null;
|
|
|
|
|
headerHeight = null;
|
|
|
|
|
footerHeight = null;
|
2020-04-13 19:12:51 +08:00
|
|
|
|
}
|
2020-04-13 17:23:28 +08:00
|
|
|
|
|
2023-06-07 14:24:12 +08:00
|
|
|
|
private ScheduledDelegate? scrollToTargetDelegate;
|
|
|
|
|
|
2021-08-20 16:00:20 +08:00
|
|
|
|
public void ScrollTo(Drawable target)
|
2020-12-22 23:51:12 +08:00
|
|
|
|
{
|
2023-06-07 14:24:12 +08:00
|
|
|
|
Logger.Log($"Scrolling to {target}..");
|
2021-08-20 16:40:56 +08:00
|
|
|
|
|
2023-06-07 14:24:12 +08:00
|
|
|
|
lastKnownScroll = null;
|
2021-08-20 16:40:56 +08:00
|
|
|
|
|
2023-06-07 14:24:12 +08:00
|
|
|
|
float scrollTarget = getScrollTargetForDrawable(target);
|
2021-08-20 16:40:56 +08:00
|
|
|
|
|
2023-06-07 14:24:12 +08:00
|
|
|
|
if (scrollTarget > scrollContainer.ScrollableExtent)
|
2021-08-20 16:40:56 +08:00
|
|
|
|
scrollContainer.ScrollToEnd();
|
|
|
|
|
else
|
2021-08-20 16:56:35 +08:00
|
|
|
|
scrollContainer.ScrollTo(scrollTarget);
|
2021-08-20 16:40:56 +08:00
|
|
|
|
|
2021-08-20 16:00:20 +08:00
|
|
|
|
if (target is T section)
|
|
|
|
|
lastClickedSection = section;
|
2023-06-07 14:24:12 +08:00
|
|
|
|
|
|
|
|
|
// Content may load in as a scroll occurs, changing the scroll target we need to aim for.
|
|
|
|
|
// This scheduled operation ensures that we keep trying until actually arriving at the target.
|
|
|
|
|
scrollToTargetDelegate?.Cancel();
|
|
|
|
|
scrollToTargetDelegate = Scheduler.AddDelayed(() =>
|
|
|
|
|
{
|
|
|
|
|
if (scrollContainer.UserScrolling)
|
|
|
|
|
{
|
|
|
|
|
Logger.Log("Scroll operation interrupted by user scroll");
|
|
|
|
|
scrollToTargetDelegate?.Cancel();
|
|
|
|
|
scrollToTargetDelegate = null;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Precision.AlmostEquals(scrollContainer.Current, scrollTarget, 1))
|
|
|
|
|
{
|
|
|
|
|
Logger.Log($"Finished scrolling to {target}!");
|
|
|
|
|
scrollToTargetDelegate?.Cancel();
|
|
|
|
|
scrollToTargetDelegate = null;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!Precision.AlmostEquals(getScrollTargetForDrawable(target), scrollTarget, 1))
|
|
|
|
|
{
|
|
|
|
|
Logger.Log($"Reattempting scroll to {target} due to change in position");
|
|
|
|
|
ScrollTo(target);
|
|
|
|
|
}
|
|
|
|
|
}, 50, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private float getScrollTargetForDrawable(Drawable target)
|
|
|
|
|
{
|
|
|
|
|
// implementation similar to ScrollIntoView but a bit more nuanced.
|
|
|
|
|
return scrollContainer.GetChildPosInContent(target) - scrollContainer.DisplayableContent * scroll_y_centre;
|
2020-12-22 23:51:12 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-11-15 18:01:30 +08:00
|
|
|
|
public void ScrollToTop() => scrollContainer.ScrollTo(0);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2020-12-22 23:36:44 +08:00
|
|
|
|
protected virtual UserTrackingScrollContainer CreateScrollContainer() => new UserTrackingScrollContainer();
|
2020-04-13 19:12:51 +08:00
|
|
|
|
|
|
|
|
|
protected virtual FlowContainer<T> CreateScrollContentContainer() =>
|
|
|
|
|
new FillFlowContainer<T>
|
|
|
|
|
{
|
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-26 14:06:30 +08:00
|
|
|
|
protected override bool OnInvalidate(Invalidation invalidation, InvalidationSource source)
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2021-10-27 12:04:41 +08:00
|
|
|
|
bool result = base.OnInvalidate(invalidation, source);
|
2018-12-23 04:50:25 +08:00
|
|
|
|
|
2020-02-26 14:06:30 +08:00
|
|
|
|
if (source == InvalidationSource.Child && (invalidation & Invalidation.DrawSize) != 0)
|
2018-12-23 04:50:25 +08:00
|
|
|
|
{
|
2021-08-19 00:25:57 +08:00
|
|
|
|
InvalidateScrollPosition();
|
2020-02-26 14:06:30 +08:00
|
|
|
|
result = true;
|
2018-12-23 04:50:25 +08:00
|
|
|
|
}
|
2020-02-26 14:06:30 +08:00
|
|
|
|
|
|
|
|
|
return result;
|
2018-12-23 04:50:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-19 00:25:57 +08:00
|
|
|
|
protected void InvalidateScrollPosition()
|
|
|
|
|
{
|
2022-04-23 00:23:54 +08:00
|
|
|
|
lastKnownScroll = null;
|
|
|
|
|
lastClickedSection = null;
|
2021-08-19 00:25:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
2017-05-20 05:48:40 +08:00
|
|
|
|
protected override void UpdateAfterChildren()
|
|
|
|
|
{
|
|
|
|
|
base.UpdateAfterChildren();
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-01-23 02:47:38 +08:00
|
|
|
|
float fixedHeaderSize = FixedHeader?.LayoutSize.Y ?? 0;
|
2021-01-21 13:52:41 +08:00
|
|
|
|
float expandableHeaderSize = ExpandableHeader?.LayoutSize.Y ?? 0;
|
|
|
|
|
|
|
|
|
|
float headerH = expandableHeaderSize + fixedHeaderSize;
|
2017-05-21 04:48:43 +08:00
|
|
|
|
float footerH = Footer?.LayoutSize.Y ?? 0;
|
2019-04-01 11:16:05 +08:00
|
|
|
|
|
2017-05-21 04:48:43 +08:00
|
|
|
|
if (headerH != headerHeight || footerH != footerHeight)
|
2017-05-21 02:11:55 +08:00
|
|
|
|
{
|
2017-05-21 04:48:43 +08:00
|
|
|
|
headerHeight = headerH;
|
|
|
|
|
footerHeight = footerH;
|
2017-05-21 03:44:03 +08:00
|
|
|
|
updateSectionsMargin();
|
2017-05-21 02:11:55 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-07-13 13:24:41 +08:00
|
|
|
|
float currentScroll = scrollContainer.Current;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-05-20 06:39:01 +08:00
|
|
|
|
if (currentScroll != lastKnownScroll)
|
|
|
|
|
{
|
|
|
|
|
lastKnownScroll = currentScroll;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2020-12-22 23:51:12 +08:00
|
|
|
|
// reset last clicked section because user started scrolling themselves
|
|
|
|
|
if (scrollContainer.UserScrolling)
|
|
|
|
|
lastClickedSection = null;
|
|
|
|
|
|
2017-06-25 10:07:54 +08:00
|
|
|
|
if (ExpandableHeader != null && FixedHeader != null)
|
2017-05-21 02:11:55 +08:00
|
|
|
|
{
|
2021-01-21 13:52:41 +08:00
|
|
|
|
float offset = Math.Min(expandableHeaderSize, currentScroll);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-06-25 10:07:54 +08:00
|
|
|
|
ExpandableHeader.Y = -offset;
|
2021-01-21 13:52:41 +08:00
|
|
|
|
FixedHeader.Y = -offset + expandableHeaderSize;
|
2017-05-21 02:11:55 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-01-21 13:52:41 +08:00
|
|
|
|
headerBackgroundContainer.Height = expandableHeaderSize + fixedHeaderSize;
|
2017-06-07 22:11:38 +08:00
|
|
|
|
headerBackgroundContainer.Y = ExpandableHeader?.Y ?? 0;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-12-07 15:30:15 +08:00
|
|
|
|
var flowChildren = scrollContentContainer.FlowingChildren.OfType<T>();
|
|
|
|
|
|
|
|
|
|
float smallestSectionHeight = flowChildren.Any() ? flowChildren.Min(d => d.Height) : 0;
|
2021-01-21 13:40:55 +08:00
|
|
|
|
|
2021-01-23 02:48:33 +08:00
|
|
|
|
// scroll offset is our fixed header height if we have it plus 10% of content height
|
2020-12-22 23:51:12 +08:00
|
|
|
|
// plus 5% to fix floating point errors and to not have a section instantly unselect when scrolling upwards
|
|
|
|
|
// but the 5% can't be bigger than our smallest section height, otherwise it won't get selected correctly
|
2021-01-21 14:08:36 +08:00
|
|
|
|
float selectionLenienceAboveSection = Math.Min(smallestSectionHeight / 2.0f, scrollContainer.DisplayableContent * 0.05f);
|
2021-01-21 13:44:47 +08:00
|
|
|
|
|
2021-01-21 14:08:36 +08:00
|
|
|
|
float scrollCentre = fixedHeaderSize + scrollContainer.DisplayableContent * scroll_y_centre + selectionLenienceAboveSection;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-12-07 15:30:15 +08:00
|
|
|
|
var presentChildren = flowChildren.Where(c => c.IsPresent);
|
2021-08-19 00:26:33 +08:00
|
|
|
|
|
2021-08-20 16:00:20 +08:00
|
|
|
|
if (lastClickedSection != null)
|
|
|
|
|
SelectedSection.Value = lastClickedSection;
|
|
|
|
|
else if (Precision.AlmostBigger(0, scrollContainer.Current))
|
|
|
|
|
SelectedSection.Value = presentChildren.FirstOrDefault();
|
2021-01-21 13:44:47 +08:00
|
|
|
|
else if (Precision.AlmostBigger(scrollContainer.Current, scrollContainer.ScrollableExtent))
|
2021-08-20 16:00:20 +08:00
|
|
|
|
SelectedSection.Value = presentChildren.LastOrDefault();
|
2021-01-21 13:44:47 +08:00
|
|
|
|
else
|
2021-01-21 13:46:35 +08:00
|
|
|
|
{
|
2021-08-19 00:26:33 +08:00
|
|
|
|
SelectedSection.Value = presentChildren
|
2021-01-21 14:08:36 +08:00
|
|
|
|
.TakeWhile(section => scrollContainer.GetChildPosInContent(section) - currentScroll - scrollCentre <= 0)
|
2021-08-19 00:26:33 +08:00
|
|
|
|
.LastOrDefault() ?? presentChildren.FirstOrDefault();
|
2021-01-21 13:46:35 +08:00
|
|
|
|
}
|
2017-05-20 06:39:01 +08:00
|
|
|
|
}
|
2017-05-20 05:48:40 +08:00
|
|
|
|
}
|
2020-04-13 19:12:51 +08:00
|
|
|
|
|
|
|
|
|
private void updateSectionsMargin()
|
|
|
|
|
{
|
|
|
|
|
if (!Children.Any()) return;
|
|
|
|
|
|
2022-04-23 11:03:54 +08:00
|
|
|
|
// if a fixed header is present, apply top padding for it
|
|
|
|
|
// to make the scroll container aware of its displayable area.
|
|
|
|
|
// (i.e. for page up/down to work properly)
|
|
|
|
|
scrollContainer.Padding = new MarginPadding { Top = FixedHeader?.LayoutSize.Y ?? 0 };
|
2021-01-21 13:31:31 +08:00
|
|
|
|
|
2022-04-23 11:03:54 +08:00
|
|
|
|
var newMargin = originalSectionsMargin;
|
|
|
|
|
newMargin.Top += (ExpandableHeader?.LayoutSize.Y ?? 0);
|
2021-01-21 13:31:31 +08:00
|
|
|
|
newMargin.Bottom += (footerHeight ?? 0);
|
2020-04-13 19:12:51 +08:00
|
|
|
|
|
|
|
|
|
scrollContentContainer.Margin = newMargin;
|
|
|
|
|
}
|
2017-05-20 04:41:06 +08:00
|
|
|
|
}
|
|
|
|
|
}
|