Content audio (#20862)

This commit is contained in:
metalgearsloth
2023-10-29 14:58:23 +11:00
committed by GitHub
parent cd280eef6b
commit 9b1b3e03ed
326 changed files with 890 additions and 436 deletions

View File

@@ -41,7 +41,7 @@ namespace Content.Client.Stylesheets
protected StyleBoxTexture BaseAngleRect { get; }
protected StyleBoxTexture AngleBorderRect { get; }
protected StyleBase(IResourceCache resCache)
protected StyleBase(IClientResourceCache resCache)
{
var notoSans12 = resCache.GetFont
(

View File

@@ -20,7 +20,7 @@ namespace Content.Client.Stylesheets
{
public static class ResCacheExtension
{
public static Font NotoStack(this IResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
public static Font NotoStack(this IClientResourceCache resCache, string variation = "Regular", int size = 10, bool display = false)
{
var ds = display ? "Display" : "";
var sv = variation.StartsWith("Bold", StringComparison.Ordinal) ? "Bold" : "Regular";
@@ -144,7 +144,7 @@ namespace Content.Client.Stylesheets
public override Stylesheet Stylesheet { get; }
public StyleNano(IResourceCache resCache) : base(resCache)
public StyleNano(IClientResourceCache resCache) : base(resCache)
{
var notoSans8 = resCache.NotoStack(size: 8);
var notoSans10 = resCache.NotoStack(size: 10);

View File

@@ -24,7 +24,7 @@ namespace Content.Client.Stylesheets
public override Stylesheet Stylesheet { get; }
public StyleSpace(IResourceCache resCache) : base(resCache)
public StyleSpace(IClientResourceCache resCache) : base(resCache)
{
var notoSans10 = resCache.GetFont
(

View File

@@ -7,7 +7,7 @@ namespace Content.Client.Stylesheets
public sealed class StylesheetManager : IStylesheetManager
{
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
[Dependency] private readonly IResourceCache _resourceCache = default!;
[Dependency] private readonly IClientResourceCache _resourceCache = default!;
public Stylesheet SheetNano { get; private set; } = default!;
public Stylesheet SheetSpace { get; private set; } = default!;