mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 01:33:12 +08:00
Center -> centre
This commit is contained in:
parent
b33c0e9a93
commit
0eca9b9683
@ -21,6 +21,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
typeof(RankGraph),
|
typeof(RankGraph),
|
||||||
typeof(LineGraph),
|
typeof(LineGraph),
|
||||||
typeof(ProfileHeaderTabControl),
|
typeof(ProfileHeaderTabControl),
|
||||||
|
typeof(CentreHeaderContainer),
|
||||||
typeof(BottomHeaderContainer)
|
typeof(BottomHeaderContainer)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.Profile.Header
|
namespace osu.Game.Overlays.Profile.Header
|
||||||
{
|
{
|
||||||
public class CenterHeaderContainer : CompositeDrawable
|
public class CentreHeaderContainer : CompositeDrawable
|
||||||
{
|
{
|
||||||
public Action<bool> DetailsVisibilityAction;
|
public Action<bool> DetailsVisibilityAction;
|
||||||
private bool detailsVisible;
|
private bool detailsVisible;
|
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
|
|
||||||
public ProfileHeader()
|
public ProfileHeader()
|
||||||
{
|
{
|
||||||
CenterHeaderContainer centerHeaderContainer;
|
CentreHeaderContainer centreHeaderContainer;
|
||||||
DetailHeaderContainer detailHeaderContainer;
|
DetailHeaderContainer detailHeaderContainer;
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
@ -91,7 +91,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
User = { BindTarget = User },
|
User = { BindTarget = User },
|
||||||
},
|
},
|
||||||
centerHeaderContainer = new CenterHeaderContainer
|
centreHeaderContainer = new CentreHeaderContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
User = { BindTarget = User },
|
User = { BindTarget = User },
|
||||||
@ -118,7 +118,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
infoTabControl.AddItem("Info");
|
infoTabControl.AddItem("Info");
|
||||||
infoTabControl.AddItem("Modding");
|
infoTabControl.AddItem("Modding");
|
||||||
|
|
||||||
centerHeaderContainer.DetailsVisibilityAction = visible => detailHeaderContainer.Alpha = visible ? 0 : 1;
|
centreHeaderContainer.DetailsVisibilityAction = visible => detailHeaderContainer.Alpha = visible ? 0 : 1;
|
||||||
User.ValueChanged += e => updateDisplay(e.NewValue);
|
User.ValueChanged += e => updateDisplay(e.NewValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user