Move OverlayHeaderTabControl to correct namespace

This commit is contained in:
Dean Herbert 2019-05-21 13:36:21 +09:00
parent 5a9c3ab9fa
commit aba945934d
3 changed files with 7 additions and 7 deletions

View File

@ -7,6 +7,7 @@ using osu.Framework.Allocation;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API; using osu.Game.Online.API;
using osu.Game.Online.API.Requests; using osu.Game.Online.API.Requests;
using osu.Game.Overlays;
using osu.Game.Overlays.Profile; using osu.Game.Overlays.Profile;
using osu.Game.Overlays.Profile.Header; using osu.Game.Overlays.Profile.Header;
using osu.Game.Overlays.Profile.Header.Components; using osu.Game.Overlays.Profile.Header.Components;
@ -21,7 +22,7 @@ namespace osu.Game.Tests.Visual.Online
typeof(ProfileHeader), typeof(ProfileHeader),
typeof(RankGraph), typeof(RankGraph),
typeof(LineGraph), typeof(LineGraph),
typeof(HeaderTabControl), typeof(OverlayHeaderTabControl),
typeof(CentreHeaderContainer), typeof(CentreHeaderContainer),
typeof(BottomHeaderContainer), typeof(BottomHeaderContainer),
typeof(DetailHeaderContainer), typeof(DetailHeaderContainer),

View File

@ -4,13 +4,12 @@
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Profile.Header;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
public abstract class OverlayHeader : Container public abstract class OverlayHeader : Container
{ {
protected readonly HeaderTabControl TabControl; protected readonly OverlayHeaderTabControl TabControl;
private const float cover_height = 150; private const float cover_height = 150;
private const float cover_info_height = 75; private const float cover_info_height = 75;
@ -41,7 +40,7 @@ namespace osu.Game.Overlays
Children = new Drawable[] Children = new Drawable[]
{ {
CreateTitle().With(t => t.X = -ScreenTitle.ICON_WIDTH), CreateTitle().With(t => t.X = -ScreenTitle.ICON_WIDTH),
TabControl = new HeaderTabControl TabControl = new OverlayHeaderTabControl
{ {
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,

View File

@ -11,9 +11,9 @@ using osu.Game.Graphics.UserInterface;
using osuTK; using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
namespace osu.Game.Overlays.Profile.Header namespace osu.Game.Overlays
{ {
public class HeaderTabControl : TabControl<string> public class OverlayHeaderTabControl : TabControl<string>
{ {
private readonly Box bar; private readonly Box bar;
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Profile.Header
set => TabContainer.Padding = value; set => TabContainer.Padding = value;
} }
public HeaderTabControl() public OverlayHeaderTabControl()
{ {
TabContainer.Masking = false; TabContainer.Masking = false;
TabContainer.Spacing = new Vector2(15, 0); TabContainer.Spacing = new Vector2(15, 0);