mirror of
https://github.com/ppy/osu
synced 2025-04-17 12:35:45 +00:00
Merge branch 'master' into correct-trail-animation-frame
This commit is contained in:
commit
8952eb2a01
@ -51,7 +51,7 @@
|
|||||||
<Reference Include="Java.Interop" />
|
<Reference Include="Java.Interop" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.315.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.314.0" />
|
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.314.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -185,7 +185,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
base.ApplySkin(skin, allowFallback);
|
base.ApplySkin(skin, allowFallback);
|
||||||
|
|
||||||
bool allowBallTint = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.AllowSliderBallTint)?.Value ?? false;
|
bool allowBallTint = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.AllowSliderBallTint)?.Value ?? false;
|
||||||
Ball.Colour = allowBallTint ? AccentColour.Value : Color4.White;
|
Ball.AccentColour = allowBallTint ? AccentColour.Value : Color4.White;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void CheckForResult(bool userTriggered, double timeOffset)
|
protected override void CheckForResult(bool userTriggered, double timeOffset)
|
||||||
|
@ -16,16 +16,24 @@ using osu.Game.Rulesets.Osu.Skinning;
|
|||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||||
{
|
{
|
||||||
public class SliderBall : CircularContainer, ISliderProgress, IRequireHighFrequencyMousePosition
|
public class SliderBall : CircularContainer, ISliderProgress, IRequireHighFrequencyMousePosition, IHasAccentColour
|
||||||
{
|
{
|
||||||
public Func<OsuAction?> GetInitialHitAction;
|
public Func<OsuAction?> GetInitialHitAction;
|
||||||
|
|
||||||
|
public Color4 AccentColour
|
||||||
|
{
|
||||||
|
get => ball.Colour;
|
||||||
|
set => ball.Colour = value;
|
||||||
|
}
|
||||||
|
|
||||||
private readonly Slider slider;
|
private readonly Slider slider;
|
||||||
private readonly Drawable followCircle;
|
private readonly Drawable followCircle;
|
||||||
private readonly DrawableSlider drawableSlider;
|
private readonly DrawableSlider drawableSlider;
|
||||||
|
private readonly CircularContainer ball;
|
||||||
|
|
||||||
public SliderBall(Slider slider, DrawableSlider drawableSlider = null)
|
public SliderBall(Slider slider, DrawableSlider drawableSlider = null)
|
||||||
{
|
{
|
||||||
@ -47,7 +55,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Child = new SkinnableDrawable(new OsuSkinComponent(OsuSkinComponents.SliderFollowCircle), _ => new DefaultFollowCircle()),
|
Child = new SkinnableDrawable(new OsuSkinComponent(OsuSkinComponents.SliderFollowCircle), _ => new DefaultFollowCircle()),
|
||||||
},
|
},
|
||||||
new CircularContainer
|
ball = new CircularContainer
|
||||||
{
|
{
|
||||||
Masking = true,
|
Masking = true,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
@ -12,7 +12,6 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
|
||||||
using osu.Game.Online.Chat;
|
using osu.Game.Online.Chat;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Chat;
|
using osu.Game.Overlays.Chat;
|
||||||
@ -78,7 +77,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
AddAssert($"msg #{index} has {linkAmount} link(s)", () => newLine.Message.Links.Count == linkAmount);
|
AddAssert($"msg #{index} has {linkAmount} link(s)", () => newLine.Message.Links.Count == linkAmount);
|
||||||
AddAssert($"msg #{index} has the right action", hasExpectedActions);
|
AddAssert($"msg #{index} has the right action", hasExpectedActions);
|
||||||
AddAssert($"msg #{index} is " + (isAction ? "italic" : "not italic"), () => newLine.ContentFlow.Any() && isAction == isItalic());
|
//AddAssert($"msg #{index} is " + (isAction ? "italic" : "not italic"), () => newLine.ContentFlow.Any() && isAction == isItalic());
|
||||||
AddAssert($"msg #{index} shows {linkAmount} link(s)", isShowingLinks);
|
AddAssert($"msg #{index} shows {linkAmount} link(s)", isShowingLinks);
|
||||||
|
|
||||||
bool hasExpectedActions()
|
bool hasExpectedActions()
|
||||||
@ -97,7 +96,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isItalic() => newLine.ContentFlow.Where(d => d is OsuSpriteText).Cast<OsuSpriteText>().All(sprite => sprite.Font.Italics);
|
//bool isItalic() => newLine.ContentFlow.Where(d => d is OsuSpriteText).Cast<OsuSpriteText>().All(sprite => sprite.Font.Italics);
|
||||||
|
|
||||||
bool isShowingLinks()
|
bool isShowingLinks()
|
||||||
{
|
{
|
||||||
|
@ -22,9 +22,9 @@ namespace osu.Game.Tournament.Components
|
|||||||
|
|
||||||
public ControlPanel()
|
public ControlPanel()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Y;
|
||||||
AlwaysPresent = true;
|
AlwaysPresent = true;
|
||||||
Width = 0.15f;
|
Width = TournamentSceneManager.CONTROL_AREA_WIDTH;
|
||||||
Anchor = Anchor.TopRight;
|
Anchor = Anchor.TopRight;
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
@ -47,8 +47,8 @@ namespace osu.Game.Tournament.Components
|
|||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Width = 0.75f,
|
|
||||||
Position = new Vector2(0, 35f),
|
Position = new Vector2(0, 35f),
|
||||||
|
Padding = new MarginPadding(5),
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Spacing = new Vector2(0, 5f),
|
Spacing = new Vector2(0, 5f),
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Configuration;
|
||||||
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;
|
||||||
@ -22,6 +25,7 @@ namespace osu.Game.Tournament.Screens
|
|||||||
private FillFlowContainer fillFlow;
|
private FillFlowContainer fillFlow;
|
||||||
|
|
||||||
private LoginOverlay loginOverlay;
|
private LoginOverlay loginOverlay;
|
||||||
|
private ActionableInfo resolution;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private MatchIPCInfo ipc { get; set; }
|
private MatchIPCInfo ipc { get; set; }
|
||||||
@ -32,9 +36,13 @@ namespace osu.Game.Tournament.Screens
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private RulesetStore rulesets { get; set; }
|
private RulesetStore rulesets { get; set; }
|
||||||
|
|
||||||
|
private Bindable<Size> windowSize;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(FrameworkConfigManager frameworkConfig)
|
||||||
{
|
{
|
||||||
|
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
||||||
|
|
||||||
InternalChild = fillFlow = new FillFlowContainer
|
InternalChild = fillFlow = new FillFlowContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -48,6 +56,9 @@ namespace osu.Game.Tournament.Screens
|
|||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private Framework.Game game { get; set; }
|
||||||
|
|
||||||
private void reload()
|
private void reload()
|
||||||
{
|
{
|
||||||
var fileBasedIpc = ipc as FileBasedIPC;
|
var fileBasedIpc = ipc as FileBasedIPC;
|
||||||
@ -97,9 +108,25 @@ namespace osu.Game.Tournament.Screens
|
|||||||
Items = rulesets.AvailableRulesets,
|
Items = rulesets.AvailableRulesets,
|
||||||
Current = LadderInfo.Ruleset,
|
Current = LadderInfo.Ruleset,
|
||||||
},
|
},
|
||||||
|
resolution = new ActionableInfo
|
||||||
|
{
|
||||||
|
Label = "Stream area resolution",
|
||||||
|
ButtonText = "Set to 1080p",
|
||||||
|
Action = () =>
|
||||||
|
{
|
||||||
|
windowSize.Value = new Size((int)(1920 / TournamentSceneManager.STREAM_AREA_WIDTH * TournamentSceneManager.REQUIRED_WIDTH), 1080);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
|
resolution.Value = $"{ScreenSpaceDrawQuad.Width:N0}x{ScreenSpaceDrawQuad.Height:N0}";
|
||||||
|
}
|
||||||
|
|
||||||
public class LabelledDropdown<T> : LabelledComponent<OsuDropdown<T>, T>
|
public class LabelledDropdown<T> : LabelledComponent<OsuDropdown<T>, T>
|
||||||
{
|
{
|
||||||
public LabelledDropdown()
|
public LabelledDropdown()
|
||||||
|
@ -65,7 +65,7 @@ namespace osu.Game.Tournament
|
|||||||
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
||||||
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
||||||
{
|
{
|
||||||
var minWidth = (int)(size.NewValue.Height / 9f * 16 + 400);
|
var minWidth = (int)(size.NewValue.Height / 768f * TournamentSceneManager.REQUIRED_WIDTH) - 1;
|
||||||
|
|
||||||
heightWarning.Alpha = size.NewValue.Width < minWidth ? 1 : 0;
|
heightWarning.Alpha = size.NewValue.Width < minWidth ? 1 : 0;
|
||||||
}), true);
|
}), true);
|
||||||
|
@ -33,6 +33,12 @@ namespace osu.Game.Tournament
|
|||||||
private Container screens;
|
private Container screens;
|
||||||
private TourneyVideo video;
|
private TourneyVideo video;
|
||||||
|
|
||||||
|
public const float CONTROL_AREA_WIDTH = 160;
|
||||||
|
|
||||||
|
public const float STREAM_AREA_WIDTH = 1366;
|
||||||
|
|
||||||
|
public const double REQUIRED_WIDTH = TournamentSceneManager.CONTROL_AREA_WIDTH * 2 + TournamentSceneManager.STREAM_AREA_WIDTH;
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay();
|
private TournamentMatchChatDisplay chat = new TournamentMatchChatDisplay();
|
||||||
|
|
||||||
@ -51,13 +57,13 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Y,
|
||||||
X = 200,
|
X = CONTROL_AREA_WIDTH,
|
||||||
FillMode = FillMode.Fit,
|
FillMode = FillMode.Fit,
|
||||||
FillAspectRatio = 16 / 9f,
|
FillAspectRatio = 16 / 9f,
|
||||||
Anchor = Anchor.TopLeft,
|
Anchor = Anchor.TopLeft,
|
||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
Size = new Vector2(0.8f, 1),
|
Width = STREAM_AREA_WIDTH,
|
||||||
//Masking = true,
|
//Masking = true,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -96,7 +102,7 @@ namespace osu.Game.Tournament
|
|||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Width = 200,
|
Width = CONTROL_AREA_WIDTH,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Box
|
new Box
|
||||||
@ -108,8 +114,8 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Spacing = new Vector2(2),
|
Spacing = new Vector2(5),
|
||||||
Padding = new MarginPadding(2),
|
Padding = new MarginPadding(5),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new ScreenButton(typeof(SetupScreen)) { Text = "Setup", RequestSelection = SetScreen },
|
new ScreenButton(typeof(SetupScreen)) { Text = "Setup", RequestSelection = SetScreen },
|
||||||
|
@ -30,8 +30,15 @@ namespace osu.Game.Graphics
|
|||||||
/// <param name="italics">Whether the font is italic.</param>
|
/// <param name="italics">Whether the font is italic.</param>
|
||||||
/// <param name="fixedWidth">Whether all characters should be spaced the same distance apart.</param>
|
/// <param name="fixedWidth">Whether all characters should be spaced the same distance apart.</param>
|
||||||
/// <returns>The <see cref="FontUsage"/>.</returns>
|
/// <returns>The <see cref="FontUsage"/>.</returns>
|
||||||
public static FontUsage GetFont(Typeface typeface = Typeface.Exo, float size = DEFAULT_FONT_SIZE, FontWeight weight = FontWeight.Medium, bool italics = false, bool fixedWidth = false)
|
public static FontUsage GetFont(Typeface typeface = Typeface.Torus, float size = DEFAULT_FONT_SIZE, FontWeight weight = FontWeight.Medium, bool italics = false, bool fixedWidth = false)
|
||||||
=> new FontUsage(GetFamilyString(typeface), size, GetWeightString(typeface, weight), italics, fixedWidth);
|
=> new FontUsage(GetFamilyString(typeface), size, GetWeightString(typeface, weight), getItalics(italics), fixedWidth);
|
||||||
|
|
||||||
|
private static bool getItalics(in bool italicsRequested)
|
||||||
|
{
|
||||||
|
// right now none of our fonts support italics.
|
||||||
|
// should add exceptions to this rule if they come up.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the string representation of a <see cref="Typeface"/>.
|
/// Retrieves the string representation of a <see cref="Typeface"/>.
|
||||||
@ -42,9 +49,6 @@ namespace osu.Game.Graphics
|
|||||||
{
|
{
|
||||||
switch (typeface)
|
switch (typeface)
|
||||||
{
|
{
|
||||||
case Typeface.Exo:
|
|
||||||
return "Exo2.0";
|
|
||||||
|
|
||||||
case Typeface.Venera:
|
case Typeface.Venera:
|
||||||
return "Venera";
|
return "Venera";
|
||||||
|
|
||||||
@ -62,7 +66,13 @@ namespace osu.Game.Graphics
|
|||||||
/// <param name="weight">The <see cref="FontWeight"/>.</param>
|
/// <param name="weight">The <see cref="FontWeight"/>.</param>
|
||||||
/// <returns>The string representation of <paramref name="weight"/> in the specified <paramref name="typeface"/>.</returns>
|
/// <returns>The string representation of <paramref name="weight"/> in the specified <paramref name="typeface"/>.</returns>
|
||||||
public static string GetWeightString(Typeface typeface, FontWeight weight)
|
public static string GetWeightString(Typeface typeface, FontWeight weight)
|
||||||
=> GetWeightString(GetFamilyString(typeface), weight);
|
{
|
||||||
|
if (typeface == Typeface.Torus && weight == FontWeight.Medium)
|
||||||
|
// torus doesn't have a medium; fallback to regular.
|
||||||
|
weight = FontWeight.Regular;
|
||||||
|
|
||||||
|
return GetWeightString(GetFamilyString(typeface), weight);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the string representation of a <see cref="FontWeight"/>.
|
/// Retrieves the string representation of a <see cref="FontWeight"/>.
|
||||||
@ -96,7 +106,6 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
public enum Typeface
|
public enum Typeface
|
||||||
{
|
{
|
||||||
Exo,
|
|
||||||
Venera,
|
Venera,
|
||||||
Torus
|
Torus
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
new HoverClickSounds()
|
new HoverClickSounds()
|
||||||
};
|
};
|
||||||
|
|
||||||
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Exo, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Torus, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnActivated() => fadeActive();
|
protected override void OnActivated() => fadeActive();
|
||||||
|
@ -78,7 +78,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
new HoverClickSounds()
|
new HoverClickSounds()
|
||||||
};
|
};
|
||||||
|
|
||||||
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Exo, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Torus, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string CreateText() => (Value as Enum)?.GetDescription() ?? Value.ToString();
|
protected virtual string CreateText() => (Value as Enum)?.GetDescription() ?? Value.ToString();
|
||||||
|
@ -138,30 +138,17 @@ namespace osu.Game
|
|||||||
dependencies.Cache(LocalConfig);
|
dependencies.Cache(LocalConfig);
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/osuFont");
|
AddFont(Resources, @"Fonts/osuFont");
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-Medium");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-MediumItalic");
|
AddFont(Resources, @"Fonts/Torus-Regular");
|
||||||
|
AddFont(Resources, @"Fonts/Torus-Light");
|
||||||
|
AddFont(Resources, @"Fonts/Torus-SemiBold");
|
||||||
|
AddFont(Resources, @"Fonts/Torus-Bold");
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/Noto-Basic");
|
AddFont(Resources, @"Fonts/Noto-Basic");
|
||||||
AddFont(Resources, @"Fonts/Noto-Hangul");
|
AddFont(Resources, @"Fonts/Noto-Hangul");
|
||||||
AddFont(Resources, @"Fonts/Noto-CJK-Basic");
|
AddFont(Resources, @"Fonts/Noto-CJK-Basic");
|
||||||
AddFont(Resources, @"Fonts/Noto-CJK-Compatibility");
|
AddFont(Resources, @"Fonts/Noto-CJK-Compatibility");
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-Regular");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-RegularItalic");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-SemiBold");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-SemiBoldItalic");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-Bold");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-BoldItalic");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-Light");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-LightItalic");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-Black");
|
|
||||||
AddFont(Resources, @"Fonts/Exo2.0-BlackItalic");
|
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/Torus-SemiBold");
|
|
||||||
AddFont(Resources, @"Fonts/Torus-Bold");
|
|
||||||
AddFont(Resources, @"Fonts/Torus-Regular");
|
|
||||||
AddFont(Resources, @"Fonts/Torus-Light");
|
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/Venera-Light");
|
AddFont(Resources, @"Fonts/Venera-Light");
|
||||||
AddFont(Resources, @"Fonts/Venera-Bold");
|
AddFont(Resources, @"Fonts/Venera-Bold");
|
||||||
AddFont(Resources, @"Fonts/Venera-Black");
|
AddFont(Resources, @"Fonts/Venera-Black");
|
||||||
|
@ -132,7 +132,7 @@ namespace osu.Game.Overlays.AccountCreation
|
|||||||
usernameDescription.AddText("This will be your public presence. No profanity, no impersonation. Avoid exposing your own personal details, too!");
|
usernameDescription.AddText("This will be your public presence. No profanity, no impersonation. Avoid exposing your own personal details, too!");
|
||||||
|
|
||||||
emailAddressDescription.AddText("Will be used for notifications, account verification and in the case you forget your password. No spam, ever.");
|
emailAddressDescription.AddText("Will be used for notifications, account verification and in the case you forget your password. No spam, ever.");
|
||||||
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = cp.Font.With(Typeface.Exo, weight: FontWeight.Bold));
|
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = cp.Font.With(Typeface.Torus, weight: FontWeight.Bold));
|
||||||
|
|
||||||
passwordDescription.AddText("At least ");
|
passwordDescription.AddText("At least ");
|
||||||
characterCheckText = passwordDescription.AddText("8 characters long");
|
characterCheckText = passwordDescription.AddText("8 characters long");
|
||||||
|
@ -93,6 +93,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
Direction = FillDirection.Full,
|
Direction = FillDirection.Full,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
TextAnchor = Anchor.BottomLeft,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -125,7 +126,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
|
|
||||||
title.AddText("by ", t =>
|
title.AddText("by ", t =>
|
||||||
{
|
{
|
||||||
t.Font = fontMedium.With(italics: true);
|
t.Font = fontMedium;
|
||||||
t.Colour = entryColour;
|
t.Colour = entryColour;
|
||||||
t.Padding = new MarginPadding { Left = 10 };
|
t.Padding = new MarginPadding { Left = 10 };
|
||||||
});
|
});
|
||||||
@ -138,7 +139,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
Id = entry.GithubUser.UserId.Value
|
Id = entry.GithubUser.UserId.Value
|
||||||
}, t =>
|
}, t =>
|
||||||
{
|
{
|
||||||
t.Font = fontMedium.With(italics: true);
|
t.Font = fontMedium;
|
||||||
t.Colour = entryColour;
|
t.Colour = entryColour;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -146,7 +147,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
title.AddLink(entry.GithubUser.DisplayName, entry.GithubUser.GithubUrl, t =>
|
title.AddLink(entry.GithubUser.DisplayName, entry.GithubUser.GithubUrl, t =>
|
||||||
{
|
{
|
||||||
t.Font = fontMedium.With(italics: true);
|
t.Font = fontMedium;
|
||||||
t.Colour = entryColour;
|
t.Colour = entryColour;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -154,7 +155,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
title.AddText(entry.GithubUser.DisplayName, t =>
|
title.AddText(entry.GithubUser.DisplayName, t =>
|
||||||
{
|
{
|
||||||
t.Font = fontMedium.With(italics: true);
|
t.Font = fontMedium;
|
||||||
t.Colour = entryColour;
|
t.Colour = entryColour;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Overlays.News
|
|||||||
Left = 25,
|
Left = 25,
|
||||||
Bottom = 50,
|
Bottom = 50,
|
||||||
},
|
},
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 24, FontWeight.Bold),
|
Font = OsuFont.GetFont(Typeface.Torus, 24, FontWeight.Bold),
|
||||||
Text = info.Title,
|
Text = info.Title,
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
@ -87,7 +87,7 @@ namespace osu.Game.Overlays.News
|
|||||||
Left = 25,
|
Left = 25,
|
||||||
Bottom = 30,
|
Bottom = 30,
|
||||||
},
|
},
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 16, FontWeight.Bold),
|
Font = OsuFont.GetFont(Typeface.Torus, 16, FontWeight.Bold),
|
||||||
Text = "by " + info.Author
|
Text = "by " + info.Author
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -148,7 +148,7 @@ namespace osu.Game.Overlays.News
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 12, FontWeight.Black, false, false),
|
Font = OsuFont.GetFont(Typeface.Torus, 12, FontWeight.Black, false, false),
|
||||||
Text = date.ToString("d MMM yyy").ToUpper(),
|
Text = date.ToString("d MMM yyy").ToUpper(),
|
||||||
Margin = new MarginPadding
|
Margin = new MarginPadding
|
||||||
{
|
{
|
||||||
|
@ -90,14 +90,14 @@ namespace osu.Game.Screens.Menu
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
textFlow.AddText("This project is an ongoing ", t => t.Font = t.Font.With(Typeface.Exo, 30, FontWeight.Light));
|
textFlow.AddText("This project is an ongoing ", t => t.Font = t.Font.With(Typeface.Torus, 30, FontWeight.Light));
|
||||||
textFlow.AddText("work in progress", t => t.Font = t.Font.With(Typeface.Exo, 30, FontWeight.SemiBold));
|
textFlow.AddText("work in progress", t => t.Font = t.Font.With(Typeface.Torus, 30, FontWeight.SemiBold));
|
||||||
|
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
|
||||||
static void format(SpriteText t) => t.Font = OsuFont.GetFont(size: 15, weight: FontWeight.SemiBold);
|
static void format(SpriteText t) => t.Font = OsuFont.GetFont(size: 15, weight: FontWeight.SemiBold);
|
||||||
|
|
||||||
textFlow.AddParagraph(getRandomTip(), t => t.Font = t.Font.With(Typeface.Exo, 20, FontWeight.SemiBold));
|
textFlow.AddParagraph(getRandomTip(), t => t.Font = t.Font.With(Typeface.Torus, 20, FontWeight.SemiBold));
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
|||||||
if (host.NewValue != null)
|
if (host.NewValue != null)
|
||||||
{
|
{
|
||||||
hostText.AddText("hosted by ");
|
hostText.AddText("hosted by ");
|
||||||
hostText.AddUserLink(host.NewValue, s => s.Font = s.Font.With(Typeface.Exo, weight: FontWeight.Bold, italics: true));
|
hostText.AddUserLink(host.NewValue, s => s.Font = s.Font.With(Typeface.Torus, weight: FontWeight.Bold, italics: true));
|
||||||
|
|
||||||
flagContainer.Child = new UpdateableFlag(host.NewValue.Country) { RelativeSizeAxes = Axes.Both };
|
flagContainer.Child = new UpdateableFlag(host.NewValue.Country) { RelativeSizeAxes = Axes.Both };
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Screens.Multi.Ranking.Pages
|
|||||||
|
|
||||||
rankText.AddText($"#{index + 1} ", s =>
|
rankText.AddText($"#{index + 1} ", s =>
|
||||||
{
|
{
|
||||||
s.Font = s.Font.With(Typeface.Exo, weight: FontWeight.Bold);
|
s.Font = s.Font.With(Typeface.Torus, weight: FontWeight.Bold);
|
||||||
s.Colour = colours.YellowDark;
|
s.Colour = colours.YellowDark;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.315.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2020.314.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2020.314.0" />
|
||||||
<PackageReference Include="Sentry" Version="2.1.0" />
|
<PackageReference Include="Sentry" Version="2.1.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Label="Package References">
|
<ItemGroup Label="Package References">
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.315.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.314.0" />
|
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.314.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2020.314.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2020.312.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
||||||
<PackageReference Include="NUnit" Version="3.12.0" />
|
<PackageReference Include="NUnit" Version="3.12.0" />
|
||||||
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
||||||
|
Loading…
Reference in New Issue
Block a user