1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 14:37:21 +08:00
osu-lazer/osu.Game/Overlays/OverlayRulesetSelector.cs

32 lines
1.1 KiB
C#
Raw Normal View History

2020-01-01 22:49:04 +03: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.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Rulesets;
using osuTK;
namespace osu.Game.Overlays
{
2022-11-24 14:32:20 +09:00
public partial class OverlayRulesetSelector : RulesetSelector
2020-01-01 22:49:04 +03:00
{
2023-01-13 12:16:35 +09:00
// Since this component is used in online overlays and currently web-side doesn't support non-legacy rulesets, let's disable them for now.
2023-01-12 23:26:29 +03:00
protected override bool LegacyOnly => true;
public OverlayRulesetSelector()
2020-01-01 22:49:04 +03:00
{
AutoSizeAxes = Axes.Both;
}
protected override TabItem<RulesetInfo> CreateTabItem(RulesetInfo value) => new OverlayRulesetTabItem(value);
protected override TabFillFlowContainer CreateTabFlow() => new TabFillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
2020-03-24 22:14:15 +01:00
Spacing = new Vector2(20, 0),
2020-01-01 22:49:04 +03:00
};
}
}