mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00:00
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Primitives;
|
|
using osu.Framework.Graphics.UserInterface;
|
|
using OpenTK;
|
|
|
|
namespace osu.Game.Screens.Ranking
|
|
{
|
|
public class ResultModeTabControl : TabControl<ResultMode>
|
|
{
|
|
public ResultModeTabControl()
|
|
{
|
|
TabContainer.Anchor = Anchor.BottomCentre;
|
|
TabContainer.Origin = Anchor.BottomCentre;
|
|
TabContainer.Spacing = new Vector2(15);
|
|
|
|
TabContainer.Masking = false;
|
|
TabContainer.Padding = new MarginPadding(5);
|
|
}
|
|
|
|
protected override Dropdown<ResultMode> CreateDropdown() => null;
|
|
|
|
protected override TabItem<ResultMode> CreateTabItem(ResultMode value) => new ResultModeButton(value)
|
|
{
|
|
Anchor = TabContainer.Anchor,
|
|
Origin = TabContainer.Origin
|
|
};
|
|
}
|
|
} |